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

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

@.str = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [58 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #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.start.p0(i64 immarg, ptr nocapture) #2

; 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @liquid_levinson(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = icmp ugt i32 %17, 256
  br i1 %18, label %19, label %22

19:                                               ; preds = %4
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 89, ptr noundef @.str.3, i32 noundef %20, i32 noundef 256)
  br label %180

22:                                               ; preds = %4
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = add i32 %23, 1
  %25 = zext i32 %24 to i64
  %26 = call ptr @llvm.stacksave.p0()
  store ptr %26, ptr %9, align 8
  %27 = alloca float, i64 %25, align 16
  store i64 %25, ptr %10, align 8
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = add i32 %28, 1
  %30 = zext i32 %29 to i64
  %31 = alloca float, i64 %30, align 16
  store i64 %30, ptr %11, align 8
  %32 = load i32, ptr %6, align 4, !tbaa !9
  %33 = add i32 %32, 1
  %34 = zext i32 %33 to i64
  %35 = alloca float, i64 %34, align 16
  store i64 %34, ptr %12, align 8
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = add i32 %36, 1
  %38 = zext i32 %37 to i64
  %39 = alloca float, i64 %38, align 16
  store i64 %38, ptr %13, align 8
  %40 = getelementptr inbounds float, ptr %39, i64 0
  store float 1.000000e+00, ptr %40, align 16, !tbaa !11
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds float, ptr %41, i64 0
  %43 = load float, ptr %42, align 4, !tbaa !11
  %44 = getelementptr inbounds float, ptr %35, i64 0
  store float %43, ptr %44, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %65, %22
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = add i32 %47, 1
  %49 = icmp ult i32 %46, %48
  br i1 %49, label %50, label %68

50:                                               ; preds = %45
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 0
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, float 1.000000e+00, float 0.000000e+00
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %27, i64 %56
  store float %54, ptr %57, align 4, !tbaa !11
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = icmp eq i32 %58, 0
  %60 = zext i1 %59 to i64
  %61 = select i1 %59, float 1.000000e+00, float 0.000000e+00
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %31, i64 %63
  store float %61, ptr %64, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %50
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = add i32 %66, 1
  store i32 %67, ptr %14, align 4, !tbaa !9
  br label %45, !llvm.loop !13

68:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %165, %68
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = add i32 %71, 1
  %73 = icmp ult i32 %70, %72
  br i1 %73, label %74, label %168

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 0.000000e+00, ptr %16, align 4, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %93, %74
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %15, align 4, !tbaa !9
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %79, label %96

79:                                               ; preds = %75
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %27, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !11
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = sub i32 %85, %86
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds float, ptr %84, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !11
  %91 = load float, ptr %16, align 4, !tbaa !11
  %92 = call float @llvm.fmuladd.f32(float %83, float %90, float %91)
  store float %92, ptr %16, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %79
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = add i32 %94, 1
  store i32 %95, ptr %14, align 4, !tbaa !9
  br label %75, !llvm.loop !15

96:                                               ; preds = %75
  %97 = load float, ptr %16, align 4, !tbaa !11
  %98 = fneg float %97
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = sub i32 %99, 1
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds float, ptr %35, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !11
  %104 = fdiv float %98, %103
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %39, i64 %106
  store float %104, ptr %107, align 4, !tbaa !11
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = sub i32 %108, 1
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %35, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !11
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = getelementptr inbounds float, ptr %39, i64 %114
  %116 = load float, ptr %115, align 4, !tbaa !11
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %39, i64 %118
  %120 = load float, ptr %119, align 4, !tbaa !11
  %121 = fneg float %116
  %122 = call float @llvm.fmuladd.f32(float %121, float %120, float 1.000000e+00)
  %123 = fmul float %112, %122
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %35, i64 %125
  store float %123, ptr %126, align 4, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %150, %96
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = icmp ult i32 %128, %129
  br i1 %130, label %131, label %153

131:                                              ; preds = %127
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %27, i64 %133
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds float, ptr %39, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !11
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = load i32, ptr %14, align 4, !tbaa !9
  %142 = sub i32 %140, %141
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %27, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = call float @llvm.fmuladd.f32(float %139, float %145, float %135)
  %147 = load i32, ptr %14, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds float, ptr %31, i64 %148
  store float %146, ptr %149, align 4, !tbaa !11
  br label %150

150:                                              ; preds = %131
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = add i32 %151, 1
  store i32 %152, ptr %14, align 4, !tbaa !9
  br label %127, !llvm.loop !16

153:                                              ; preds = %127
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %39, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !11
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds float, ptr %31, i64 %159
  store float %157, ptr %160, align 4, !tbaa !11
  %161 = load i32, ptr %6, align 4, !tbaa !9
  %162 = add i32 %161, 1
  %163 = zext i32 %162 to i64
  %164 = mul i64 %163, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 16 %27, ptr align 16 %31, i64 %164, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %165

165:                                              ; preds = %153
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = add i32 %166, 1
  store i32 %167, ptr %15, align 4, !tbaa !9
  br label %69, !llvm.loop !17

168:                                              ; preds = %69
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = load i32, ptr %6, align 4, !tbaa !9
  %171 = add i32 %170, 1
  %172 = zext i32 %171 to i64
  %173 = mul i64 %172, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %169, ptr align 16 %31, i64 %173, i1 false)
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = load i32, ptr %6, align 4, !tbaa !9
  %176 = add i32 %175, 1
  %177 = zext i32 %176 to i64
  %178 = mul i64 %177, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %174, ptr align 16 %35, i64 %178, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %179 = load ptr, ptr %9, align 8
  call void @llvm.stackrestore.p0(ptr %179)
  br label %180

180:                                              ; preds = %168, %19
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #1

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

attributes #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 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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

@.str = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [58 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #1

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

; Function Attrs: nounwind uwtable
define dso_local void @liquid_levinson(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #3 {
  %5 = icmp ugt i32 %1, 256
  br i1 %5, label %6, label %.peel.begin

6:                                                ; preds = %4
  %7 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 89, ptr noundef nonnull @.str.3, i32 noundef %1, i32 noundef 256) #6
  br label %98

.peel.begin:                                      ; preds = %4
  %8 = add nuw nsw i32 %1, 1
  %9 = zext nneg i32 %8 to i64
  %10 = tail call ptr @llvm.stacksave.p0()
  %11 = alloca float, i64 %9, align 16
  %12 = alloca float, i64 %9, align 16
  %13 = alloca float, i64 %9, align 16
  %14 = load float, ptr %0, align 4, !tbaa !5
  store float %14, ptr %13, align 16, !tbaa !5
  store float 1.000000e+00, ptr %11, align 16, !tbaa !5
  store float 1.000000e+00, ptr %12, align 16, !tbaa !5
  %exitcond.peel.not = icmp eq i32 %1, 0
  br i1 %exitcond.peel.not, label %._crit_edge, label %.peel.next.preheader

.peel.next.preheader:                             ; preds = %.peel.begin
  %15 = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 8
  br i1 %min.iters.check, label %.peel.next.preheader93, label %vector.ph

.peel.next.preheader93:                           ; preds = %middle.block, %.peel.next.preheader
  %indvars.iv.ph = phi i64 [ 1, %.peel.next.preheader ], [ %ind.end, %middle.block ]
  br label %.peel.next

vector.ph:                                        ; preds = %.peel.next.preheader
  %n.vec = and i64 %15, 504
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %16 = getelementptr inbounds float, ptr %11, i64 %offset.idx
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x float> zeroinitializer, ptr %16, align 4, !tbaa !5
  store <4 x float> zeroinitializer, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds float, ptr %12, i64 %offset.idx
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x float> zeroinitializer, ptr %18, align 4, !tbaa !5
  store <4 x float> zeroinitializer, ptr %19, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %15
  br i1 %cmp.n, label %.preheader.lr.ph, label %.peel.next.preheader93

.preheader.lr.ph:                                 ; preds = %.peel.next, %middle.block
  %21 = shl nuw nsw i64 %9, 2
  br label %.preheader

.peel.next:                                       ; preds = %.peel.next.preheader93, %.peel.next
  %indvars.iv = phi i64 [ %indvars.iv.next, %.peel.next ], [ %indvars.iv.ph, %.peel.next.preheader93 ]
  %22 = getelementptr inbounds float, ptr %11, i64 %indvars.iv
  store float 0.000000e+00, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds float, ptr %12, i64 %indvars.iv
  store float 0.000000e+00, ptr %23, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %9
  br i1 %exitcond.not, label %.preheader.lr.ph, label %.peel.next, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.lr.ph, %.loopexit
  %indvar = phi i64 [ 0, %.preheader.lr.ph ], [ %indvar.next, %.loopexit ]
  %24 = phi float [ %14, %.preheader.lr.ph ], [ %54, %.loopexit ]
  %indvars.iv72 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next73, %.loopexit ]
  %25 = trunc i64 %indvars.iv72 to i32
  %xtraiter = and i64 %indvars.iv72, 1
  %26 = icmp eq i64 %indvar, 0
  br i1 %26, label %.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader
  %unroll_iter = and i64 %indvars.iv72, 9223372036854775806
  br label %27

27:                                               ; preds = %27, %.preheader.new
  %indvars.iv62 = phi i64 [ 0, %.preheader.new ], [ %indvars.iv.next63.1, %27 ]
  %.056 = phi float [ 0.000000e+00, %.preheader.new ], [ %41, %27 ]
  %niter = phi i64 [ 0, %.preheader.new ], [ %niter.next.1, %27 ]
  %28 = getelementptr inbounds float, ptr %11, i64 %indvars.iv62
  %29 = load float, ptr %28, align 8, !tbaa !5
  %30 = sub nsw i64 %indvars.iv72, %indvars.iv62
  %31 = and i64 %30, 4294967295
  %32 = getelementptr inbounds float, ptr %0, i64 %31
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = tail call float @llvm.fmuladd.f32(float %29, float %33, float %.056)
  %indvars.iv.next63 = or disjoint i64 %indvars.iv62, 1
  %35 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.next63
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = sub nsw i64 %indvars.iv72, %indvars.iv.next63
  %38 = and i64 %37, 4294967295
  %39 = getelementptr inbounds float, ptr %0, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = tail call float @llvm.fmuladd.f32(float %36, float %40, float %34)
  %indvars.iv.next63.1 = add nuw nsw i64 %indvars.iv62, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %27, !llvm.loop !15

.unr-lcssa:                                       ; preds = %27, %.preheader
  %.lcssa.ph = phi float [ poison, %.preheader ], [ %41, %27 ]
  %indvars.iv62.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next63.1, %27 ]
  %.056.unr = phi float [ 0.000000e+00, %.preheader ], [ %41, %27 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %49, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %42 = getelementptr inbounds float, ptr %11, i64 %indvars.iv62.unr
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = sub nsw i64 %indvars.iv72, %indvars.iv62.unr
  %45 = and i64 %44, 4294967295
  %46 = getelementptr inbounds float, ptr %0, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = tail call float @llvm.fmuladd.f32(float %43, float %47, float %.056.unr)
  br label %49

49:                                               ; preds = %.unr-lcssa, %.epilog-lcssa
  %.lcssa = phi float [ %.lcssa.ph, %.unr-lcssa ], [ %48, %.epilog-lcssa ]
  %50 = fneg float %.lcssa
  %51 = fdiv float %50, %24
  %52 = fneg float %51
  %53 = tail call float @llvm.fmuladd.f32(float %52, float %51, float 1.000000e+00)
  %54 = fmul float %24, %53
  %55 = getelementptr inbounds float, ptr %13, i64 %indvars.iv72
  store float %54, ptr %55, align 4, !tbaa !5
  %min.iters.check80 = icmp ult i64 %indvars.iv72, 8
  br i1 %min.iters.check80, label %scalar.ph79.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %49
  %56 = trunc i64 %indvar to i32
  %57 = icmp ugt i32 %56, %25
  %58 = icmp ugt i64 %indvar, 4294967295
  %59 = or i1 %57, %58
  br i1 %59, label %scalar.ph79.preheader, label %vector.ph81

vector.ph81:                                      ; preds = %vector.scevcheck
  %n.vec83 = and i64 %indvars.iv72, 9223372036854775800
  %broadcast.splatinsert = insertelement <4 x float> poison, float %51, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body85

vector.body85:                                    ; preds = %vector.body85, %vector.ph81
  %index86 = phi i64 [ 0, %vector.ph81 ], [ %index.next91, %vector.body85 ]
  %60 = getelementptr inbounds float, ptr %11, i64 %index86
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  %wide.load = load <4 x float>, ptr %60, align 16, !tbaa !5
  %wide.load87 = load <4 x float>, ptr %61, align 16, !tbaa !5
  %62 = sub nsw i64 %indvars.iv72, %index86
  %63 = and i64 %62, 4294967295
  %64 = getelementptr inbounds float, ptr %11, i64 %63
  %65 = getelementptr inbounds i8, ptr %64, i64 -12
  %66 = getelementptr inbounds i8, ptr %64, i64 -28
  %wide.load88 = load <4 x float>, ptr %65, align 4, !tbaa !5
  %reverse = shufflevector <4 x float> %wide.load88, <4 x float> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %wide.load89 = load <4 x float>, ptr %66, align 4, !tbaa !5
  %reverse90 = shufflevector <4 x float> %wide.load89, <4 x float> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  %67 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %reverse, <4 x float> %wide.load)
  %68 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %reverse90, <4 x float> %wide.load87)
  %69 = getelementptr inbounds float, ptr %12, i64 %index86
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  store <4 x float> %67, ptr %69, align 16, !tbaa !5
  store <4 x float> %68, ptr %70, align 16, !tbaa !5
  %index.next91 = add nuw i64 %index86, 8
  %71 = icmp eq i64 %index.next91, %n.vec83
  br i1 %71, label %middle.block78, label %vector.body85, !llvm.loop !16

middle.block78:                                   ; preds = %vector.body85
  %cmp.n92 = icmp eq i64 %indvars.iv72, %n.vec83
  br i1 %cmp.n92, label %.loopexit, label %scalar.ph79.preheader

scalar.ph79.preheader:                            ; preds = %middle.block78, %vector.scevcheck, %49
  %indvars.iv67.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %49 ], [ %n.vec83, %middle.block78 ]
  %xtraiter95 = and i64 %indvars.iv72, 1
  %lcmp.mod96.not = icmp eq i64 %xtraiter95, 0
  br i1 %lcmp.mod96.not, label %scalar.ph79.prol.loopexit, label %scalar.ph79.prol

scalar.ph79.prol:                                 ; preds = %scalar.ph79.preheader
  %72 = getelementptr inbounds float, ptr %11, i64 %indvars.iv67.ph
  %73 = load float, ptr %72, align 16, !tbaa !5
  %74 = sub nsw i64 %indvars.iv72, %indvars.iv67.ph
  %75 = and i64 %74, 4294967295
  %76 = getelementptr inbounds float, ptr %11, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = tail call float @llvm.fmuladd.f32(float %51, float %77, float %73)
  %79 = getelementptr inbounds float, ptr %12, i64 %indvars.iv67.ph
  store float %78, ptr %79, align 16, !tbaa !5
  %indvars.iv.next68.prol = or disjoint i64 %indvars.iv67.ph, 1
  br label %scalar.ph79.prol.loopexit

scalar.ph79.prol.loopexit:                        ; preds = %scalar.ph79.prol, %scalar.ph79.preheader
  %indvars.iv67.unr = phi i64 [ %indvars.iv67.ph, %scalar.ph79.preheader ], [ %indvars.iv.next68.prol, %scalar.ph79.prol ]
  %80 = icmp eq i64 %indvar, %indvars.iv67.ph
  br i1 %80, label %.loopexit, label %scalar.ph79

scalar.ph79:                                      ; preds = %scalar.ph79.prol.loopexit, %scalar.ph79
  %indvars.iv67 = phi i64 [ %indvars.iv.next68.1, %scalar.ph79 ], [ %indvars.iv67.unr, %scalar.ph79.prol.loopexit ]
  %81 = getelementptr inbounds float, ptr %11, i64 %indvars.iv67
  %82 = load float, ptr %81, align 4, !tbaa !5
  %83 = sub nsw i64 %indvars.iv72, %indvars.iv67
  %84 = and i64 %83, 4294967295
  %85 = getelementptr inbounds float, ptr %11, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = tail call float @llvm.fmuladd.f32(float %51, float %86, float %82)
  %88 = getelementptr inbounds float, ptr %12, i64 %indvars.iv67
  store float %87, ptr %88, align 4, !tbaa !5
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %89 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.next68
  %90 = load float, ptr %89, align 4, !tbaa !5
  %91 = sub nsw i64 %indvars.iv72, %indvars.iv.next68
  %92 = and i64 %91, 4294967295
  %93 = getelementptr inbounds float, ptr %11, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !5
  %95 = tail call float @llvm.fmuladd.f32(float %51, float %94, float %90)
  %96 = getelementptr inbounds float, ptr %12, i64 %indvars.iv.next68
  store float %95, ptr %96, align 4, !tbaa !5
  %indvars.iv.next68.1 = add nuw nsw i64 %indvars.iv67, 2
  %exitcond71.not.1 = icmp eq i64 %indvars.iv.next68.1, %indvars.iv72
  br i1 %exitcond71.not.1, label %.loopexit, label %scalar.ph79, !llvm.loop !17

.loopexit:                                        ; preds = %scalar.ph79.prol.loopexit, %scalar.ph79, %middle.block78
  %97 = getelementptr inbounds float, ptr %12, i64 %indvars.iv72
  store float %51, ptr %97, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %11, ptr noundef nonnull align 16 dereferenceable(1) %12, i64 %21, i1 false)
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next73, %9
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond76.not, label %._crit_edge, label %.preheader, !llvm.loop !18

._crit_edge:                                      ; preds = %.loopexit, %.peel.begin
  %.pre-phi = phi i64 [ 4, %.peel.begin ], [ %21, %.loopexit ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %2, ptr noundef nonnull align 16 dereferenceable(1) %12, i64 %.pre-phi, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %3, ptr noundef nonnull align 16 dereferenceable(1) %13, i64 %.pre-phi, i1 false)
  tail call void @llvm.stackrestore.p0(ptr %10)
  br label %98

98:                                               ; preds = %._crit_edge, %6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, 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 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #2 = { mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12, !13}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !11, !13, !12}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !12, !13}
!17 = distinct !{!17, !10, !12}
!18 = distinct !{!18, !10}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass