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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6SoLoud23DCRemovalFilterInstance6filterEPfjjjfd(ptr noundef nonnull align 8 dereferenceable(68) %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::DCRemovalFilterInstance", 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 %90

30:                                               ; preds = %7
  %31 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 5
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = getelementptr inbounds %"class.SoLoud::DCRemovalFilter", ptr %32, i32 0, i32 1
  %34 = load float, ptr %33, align 8, !tbaa !21
  %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::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  store i32 %38, ptr %39, align 8, !tbaa !24
  %40 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !24
  %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::DCRemovalFilterInstance", ptr %22, i32 0, i32 1
  store ptr %49, ptr %50, align 8, !tbaa !17
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %52, i64 4)
  %54 = extractvalue { i64, i1 } %53, 1
  %55 = extractvalue { i64, i1 } %53, 0
  %56 = select i1 %54, i64 -1, i64 %55
  %57 = call noalias noundef nonnull ptr @_Znam(i64 noundef %56) #5
  %58 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 2
  store ptr %57, ptr %58, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %69, %30
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %63, label %72

63:                                               ; preds = %59
  %64 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !25
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %65, i64 %67
  store float 0.000000e+00, ptr %68, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %63
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = add i32 %70, 1
  store i32 %71, ptr %15, align 4, !tbaa !9
  br label %59, !llvm.loop !26

72:                                               ; preds = %59
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %86, %72
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  %76 = load i32, ptr %75, align 8, !tbaa !24
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = mul i32 %76, %77
  %79 = icmp ult i32 %74, %78
  br i1 %79, label %80, label %89

80:                                               ; preds = %73
  %81 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %82, i64 %84
  store float 0.000000e+00, ptr %85, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %80
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = add i32 %87, 1
  store i32 %88, ptr %15, align 4, !tbaa !9
  br label %73, !llvm.loop !28

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

90:                                               ; preds = %89, %7
  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
  %91 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 6
  %92 = load i32, ptr %91, align 8, !tbaa !29
  %93 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  %94 = load i32, ptr %93, align 8, !tbaa !24
  %95 = add nsw i32 %92, %94
  %96 = sub nsw i32 %95, 1
  %97 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  %98 = load i32, ptr %97, align 8, !tbaa !24
  %99 = srem i32 %96, %98
  store i32 %99, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %203, %90
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = icmp ult i32 %101, %102
  br i1 %103, label %104, label %206

104:                                              ; preds = %100
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %190, %104
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = icmp ult i32 %106, %107
  br i1 %108, label %109, label %193

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %110 = load i32, ptr %17, align 4, !tbaa !9
  %111 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  %112 = load i32, ptr %111, align 8, !tbaa !24
  %113 = mul i32 %110, %112
  store i32 %113, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %114 = load i32, ptr %17, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = mul i32 %114, %115
  store i32 %116, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %20, align 4, !tbaa !9
  %120 = add i32 %118, %119
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %117, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !11
  store float %123, ptr %21, align 4, !tbaa !11
  %124 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !17
  %126 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 6
  %127 = load i32, ptr %126, align 8, !tbaa !29
  %128 = load i32, ptr %19, align 4, !tbaa !9
  %129 = add nsw i32 %127, %128
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds float, ptr %125, i64 %130
  %132 = load float, ptr %131, align 4, !tbaa !11
  %133 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 2
  %134 = load ptr, ptr %133, align 8, !tbaa !25
  %135 = load i32, ptr %17, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds float, ptr %134, i64 %136
  %138 = load float, ptr %137, align 4, !tbaa !11
  %139 = fsub float %138, %132
  store float %139, ptr %137, align 4, !tbaa !11
  %140 = load float, ptr %21, align 4, !tbaa !11
  %141 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 2
  %142 = load ptr, ptr %141, align 8, !tbaa !25
  %143 = load i32, ptr %17, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds float, ptr %142, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !11
  %147 = fadd float %146, %140
  store float %147, ptr %145, align 4, !tbaa !11
  %148 = load float, ptr %21, align 4, !tbaa !11
  %149 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !17
  %151 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 6
  %152 = load i32, ptr %151, align 8, !tbaa !29
  %153 = load i32, ptr %19, align 4, !tbaa !9
  %154 = add nsw i32 %152, %153
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %150, i64 %155
  store float %148, ptr %156, align 4, !tbaa !11
  %157 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !25
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %158, i64 %160
  %162 = load float, ptr %161, align 4, !tbaa !11
  %163 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  %164 = load i32, ptr %163, align 8, !tbaa !24
  %165 = sitofp i32 %164 to float
  %166 = fdiv float %162, %165
  %167 = load float, ptr %21, align 4, !tbaa !11
  %168 = fsub float %167, %166
  store float %168, ptr %21, align 4, !tbaa !11
  %169 = load float, ptr %21, align 4, !tbaa !11
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = load i32, ptr %16, align 4, !tbaa !9
  %172 = load i32, ptr %20, align 4, !tbaa !9
  %173 = add i32 %171, %172
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %170, i64 %174
  %176 = load float, ptr %175, align 4, !tbaa !11
  %177 = fsub float %169, %176
  %178 = getelementptr inbounds %"class.SoLoud::FilterInstance", ptr %22, i32 0, i32 3
  %179 = load ptr, ptr %178, align 8, !tbaa !30
  %180 = getelementptr inbounds float, ptr %179, i64 0
  %181 = load float, ptr %180, align 4, !tbaa !11
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = load i32, ptr %16, align 4, !tbaa !9
  %184 = load i32, ptr %20, align 4, !tbaa !9
  %185 = add i32 %183, %184
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds float, ptr %182, i64 %186
  %188 = load float, ptr %187, align 4, !tbaa !11
  %189 = call float @llvm.fmuladd.f32(float %177, float %181, float %188)
  store float %189, ptr %187, 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 %190

190:                                              ; preds = %109
  %191 = load i32, ptr %17, align 4, !tbaa !9
  %192 = add i32 %191, 1
  store i32 %192, ptr %17, align 4, !tbaa !9
  br label %105, !llvm.loop !31

193:                                              ; preds = %105
  %194 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 6
  %195 = load i32, ptr %194, align 8, !tbaa !29
  store i32 %195, ptr %18, align 4, !tbaa !9
  %196 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 6
  %197 = load i32, ptr %196, align 8, !tbaa !29
  %198 = add nsw i32 %197, 1
  %199 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 3
  %200 = load i32, ptr %199, align 8, !tbaa !24
  %201 = srem i32 %198, %200
  %202 = getelementptr inbounds %"class.SoLoud::DCRemovalFilterInstance", ptr %22, i32 0, i32 6
  store i32 %201, ptr %202, align 8, !tbaa !29
  br label %203

203:                                              ; preds = %193
  %204 = load i32, ptr %16, align 4, !tbaa !9
  %205 = add i32 %204, 1
  store i32 %205, ptr %16, align 4, !tbaa !9
  br label %100, !llvm.loop !32

206:                                              ; preds = %100
  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 = !{!"_ZTSN6SoLoud23DCRemovalFilterInstanceE", !19, i64 0, !6, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64}
!19 = !{!"_ZTSN6SoLoud14FilterInstanceE", !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!20 = !{!18, !6, i64 56}
!21 = !{!22, !12, i64 8}
!22 = !{!"_ZTSN6SoLoud15DCRemovalFilterE", !23, i64 0, !12, i64 8}
!23 = !{!"_ZTSN6SoLoud6FilterE"}
!24 = !{!18, !10, i64 48}
!25 = !{!18, !6, i64 40}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!18, !10, i64 64}
!30 = !{!19, !6, i64 16}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}


; 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 @_ZN6SoLoud23DCRemovalFilterInstance6filterEPfjjjfd(ptr noundef nonnull align 8 dereferenceable(68) %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
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %.loopexit

14:                                               ; preds = %7
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !8
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load float, ptr %17, align 8, !tbaa !14
  %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 48
  store i32 %21, ptr %22, align 8, !tbaa !18
  %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 !19
  %27 = zext i32 %4 to i64
  %28 = shl nuw nsw i64 %27, 2
  %29 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %28) #6
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %29, ptr %30, align 8, !tbaa !20
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.loopexit, label %.preheader42

.preheader42:                                     ; preds = %14
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %29, i8 0, i64 %28, i1 false), !tbaa !21
  %.not50 = icmp eq i32 %23, 0
  br i1 %.not50, label %.loopexit, label %.lr.ph45.preheader

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

.loopexit:                                        ; preds = %14, %.lr.ph45.preheader, %.preheader42, %7
  %31 = phi ptr [ %26, %.lr.ph45.preheader ], [ %26, %.preheader42 ], [ %12, %7 ], [ %26, %14 ]
  %32 = getelementptr inbounds i8, ptr %0, i64 64
  %.not51 = icmp eq i32 %2, 0
  br i1 %.not51, label %114, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.loopexit
  %.promoted = load i32, ptr %32, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %0, i64 48
  %.not52 = icmp eq i32 %4, 0
  %34 = load i32, ptr %33, align 8
  %35 = getelementptr inbounds i8, ptr %0, i64 40
  %36 = load ptr, ptr %35, align 8
  %37 = sitofp i32 %34 to float
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %39 = load ptr, ptr %38, align 8
  br i1 %.not52, label %.preheader.preheader, label %.preheader.us.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %xtraiter = and i32 %2, 3
  %40 = icmp ult i32 %2, 4
  br i1 %40, label %._crit_edge49.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
  %41 = add i32 %4, -1
  %42 = zext i32 %41 to i64
  %43 = shl nuw nsw i64 %42, 2
  %44 = add nuw nsw i64 %43, 4
  %scevgep = getelementptr i8, ptr %36, i64 %44
  %scevgep65 = getelementptr i8, ptr %39, i64 4
  %scevgep67 = getelementptr i8, ptr %31, i64 %44
  %45 = add i32 %2, -1
  %46 = zext i32 %45 to i64
  %47 = add nuw nsw i64 %46, %42
  %48 = shl nuw nsw i64 %47, 2
  %49 = getelementptr i8, ptr %1, i64 %48
  %scevgep69 = getelementptr i8, ptr %49, i64 4
  %min.iters.check = icmp ult i32 %4, 8
  %ident.check = icmp ne i32 %3, 1
  %ident.check64 = icmp ne i32 %34, 1
  %50 = or i1 %ident.check, %ident.check64
  %bound0 = icmp ult ptr %36, %scevgep65
  %bound1 = icmp ult ptr %39, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound073 = icmp ult ptr %36, %scevgep69
  %bound174 = icmp ugt ptr %scevgep, %1
  %found.conflict75 = and i1 %bound073, %bound174
  %bound081 = icmp ult ptr %39, %scevgep69
  %bound182 = icmp ugt ptr %scevgep65, %1
  %found.conflict83 = and i1 %bound081, %bound182
  %n.vec = and i32 %4, -4
  %broadcast.splatinsert = insertelement <4 x float> poison, float %37, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i32 %n.vec, %4
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.03948.us = phi i32 [ %101, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %51 = phi i32 [ %100, %._crit_edge.us ], [ %.promoted, %.preheader.us.preheader ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.preheader.us
  %52 = add i32 %51, %41
  %53 = icmp slt i32 %52, %51
  %54 = xor i32 %.03948.us, -1
  %55 = icmp ugt i32 %41, %54
  %56 = or i1 %50, %53
  %57 = or i1 %56, %55
  br i1 %57, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %58 = sext i32 %51 to i64
  %59 = shl nsw i64 %58, 2
  %scevgep66 = getelementptr i8, ptr %31, i64 %59
  %scevgep68 = getelementptr i8, ptr %scevgep67, i64 %59
  %bound070 = icmp ult ptr %36, %scevgep68
  %bound171 = icmp ult ptr %scevgep66, %scevgep
  %found.conflict72 = and i1 %bound070, %bound171
  %conflict.rdx = or i1 %found.conflict, %found.conflict72
  %conflict.rdx76 = or i1 %conflict.rdx, %found.conflict75
  %bound077 = icmp ult ptr %39, %scevgep68
  %bound178 = icmp ult ptr %scevgep66, %scevgep65
  %found.conflict79 = and i1 %bound077, %bound178
  %conflict.rdx80 = or i1 %conflict.rdx76, %found.conflict79
  %conflict.rdx84 = or i1 %conflict.rdx80, %found.conflict83
  %bound085 = icmp ult ptr %scevgep66, %scevgep69
  %bound186 = icmp ugt ptr %scevgep68, %1
  %found.conflict87 = and i1 %bound085, %bound186
  %conflict.rdx88 = or i1 %conflict.rdx84, %found.conflict87
  br i1 %conflict.rdx88, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %60 = load float, ptr %39, align 4, !tbaa !21, !alias.scope !23, !noalias !26
  %broadcast.splatinsert93 = insertelement <4 x float> poison, float %60, i64 0
  %broadcast.splat94 = shufflevector <4 x float> %broadcast.splatinsert93, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %61 = add i32 %index, %.03948.us
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %1, i64 %62
  %wide.load = load <4 x float>, ptr %63, align 4, !tbaa !21, !alias.scope !29
  %64 = add nsw i32 %51, %index
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds float, ptr %31, i64 %65
  %wide.load89 = load <4 x float>, ptr %66, align 4, !tbaa !21, !alias.scope !30, !noalias !29
  %67 = zext i32 %index to i64
  %68 = getelementptr inbounds float, ptr %36, i64 %67
  %wide.load90 = load <4 x float>, ptr %68, align 4, !tbaa !21, !alias.scope !31, !noalias !33
  %69 = fsub <4 x float> %wide.load90, %wide.load89
  %70 = fadd <4 x float> %wide.load, %69
  store <4 x float> %70, ptr %68, align 4, !tbaa !21, !alias.scope !31, !noalias !33
  store <4 x float> %wide.load, ptr %66, align 4, !tbaa !21, !alias.scope !30, !noalias !29
  %71 = fdiv <4 x float> %70, %broadcast.splat
  %72 = fsub <4 x float> %wide.load, %71
  %wide.load92 = load <4 x float>, ptr %63, align 4, !tbaa !21, !alias.scope !29
  %73 = fsub <4 x float> %72, %wide.load92
  %74 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %73, <4 x float> %broadcast.splat94, <4 x float> %wide.load92)
  store <4 x float> %74, ptr %63, align 4, !tbaa !21, !alias.scope !29
  %index.next = add nuw i32 %index, 4
  %75 = icmp eq i32 %index.next, %n.vec
  br i1 %75, label %middle.block, label %vector.body, !llvm.loop !34

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.preheader.us
  %.04046.us.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %vector.scevcheck ], [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.04046.us = phi i32 [ %98, %scalar.ph ], [ %.04046.us.ph, %scalar.ph.preheader ]
  %76 = mul i32 %34, %.04046.us
  %77 = mul i32 %.04046.us, %3
  %78 = add i32 %77, %.03948.us
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %1, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !21
  %82 = add nsw i32 %51, %76
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds float, ptr %31, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !21
  %86 = zext i32 %.04046.us to i64
  %87 = getelementptr inbounds float, ptr %36, i64 %86
  %88 = load float, ptr %87, align 4, !tbaa !21
  %89 = fsub float %88, %85
  %90 = fadd float %81, %89
  store float %90, ptr %87, align 4, !tbaa !21
  store float %81, ptr %84, align 4, !tbaa !21
  %91 = load float, ptr %87, align 4, !tbaa !21
  %92 = fdiv float %91, %37
  %93 = fsub float %81, %92
  %94 = load float, ptr %80, align 4, !tbaa !21
  %95 = fsub float %93, %94
  %96 = load float, ptr %39, align 4, !tbaa !21
  %97 = tail call float @llvm.fmuladd.f32(float %95, float %96, float %94)
  store float %97, ptr %80, align 4, !tbaa !21
  %98 = add nuw i32 %.04046.us, 1
  %exitcond.not = icmp eq i32 %98, %4
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !38

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %99 = add nsw i32 %51, 1
  %100 = srem i32 %99, %34
  %101 = add nuw i32 %.03948.us, 1
  %exitcond57.not = icmp eq i32 %101, %2
  br i1 %exitcond57.not, label %._crit_edge49, label %.preheader.us, !llvm.loop !39

.preheader:                                       ; preds = %.preheader, %.preheader.preheader.new
  %102 = phi i32 [ %.promoted, %.preheader.preheader.new ], [ %110, %.preheader ]
  %niter = phi i32 [ 0, %.preheader.preheader.new ], [ %niter.next.3, %.preheader ]
  %103 = add nsw i32 %102, 1
  %104 = srem i32 %103, %34
  %105 = add nsw i32 %104, 1
  %106 = srem i32 %105, %34
  %107 = add nsw i32 %106, 1
  %108 = srem i32 %107, %34
  %109 = add nsw i32 %108, 1
  %110 = srem i32 %109, %34
  %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_edge49.loopexit.unr-lcssa, label %.preheader, !llvm.loop !39

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

.preheader.epil:                                  ; preds = %._crit_edge49.loopexit.unr-lcssa, %.preheader.epil
  %111 = phi i32 [ %113, %.preheader.epil ], [ %.unr, %._crit_edge49.loopexit.unr-lcssa ]
  %epil.iter = phi i32 [ %epil.iter.next, %.preheader.epil ], [ 0, %._crit_edge49.loopexit.unr-lcssa ]
  %112 = add nsw i32 %111, 1
  %113 = srem i32 %112, %34
  %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_edge49, label %.preheader.epil, !llvm.loop !40

._crit_edge49:                                    ; preds = %._crit_edge.us, %._crit_edge49.loopexit.unr-lcssa, %.preheader.epil
  %.us-phi = phi i32 [ %.lcssa.ph, %._crit_edge49.loopexit.unr-lcssa ], [ %113, %.preheader.epil ], [ %100, %._crit_edge.us ]
  store i32 %.us-phi, ptr %32, align 8, !tbaa !22
  br label %114

114:                                              ; preds = %._crit_edge49, %.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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #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 nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 56}
!9 = !{!"_ZTSN6SoLoud23DCRemovalFilterInstanceE", !10, i64 0, !13, i64 32, !13, i64 40, !11, i64 48, !13, i64 56, !11, 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 = !{!15, !17, i64 8}
!15 = !{!"_ZTSN6SoLoud15DCRemovalFilterE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN6SoLoud6FilterE"}
!17 = !{!"float", !12, i64 0}
!18 = !{!9, !11, i64 48}
!19 = !{!9, !13, i64 32}
!20 = !{!9, !13, i64 40}
!21 = !{!17, !17, i64 0}
!22 = !{!9, !11, i64 64}
!23 = !{!24}
!24 = distinct !{!24, !25}
!25 = distinct !{!25, !"LVerDomain"}
!26 = !{!27, !28}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = !{!28}
!30 = !{!27}
!31 = !{!32}
!32 = distinct !{!32, !25}
!33 = !{!24, !27, !28}
!34 = distinct !{!34, !35, !36, !37}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!"llvm.loop.isvectorized", i32 1}
!37 = !{!"llvm.loop.unroll.runtime.disable"}
!38 = distinct !{!38, !35, !36}
!39 = distinct !{!39, !35}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.unroll.disable"}


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