; LLVM IR from jgaeddert/liquid-dsp :: src/equalization/src (equalizer_rrrf)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.eqrls_rrrf_s = type { i32, float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, float, ptr, ptr, i32, ptr }

@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [58 x i8], align 1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

declare ptr @windowf_create(i32 noundef) #2

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

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @eqrls_rrrf_create(ptr noundef %0, i32 noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %8 = load i32, ptr %5, align 4, !tbaa !9
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %12

10:                                               ; preds = %2
  %11 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str.14, i32 noundef 61, ptr noundef @.str.15, ptr noundef @.str.2)
  store ptr %11, ptr %3, align 8
  br label %158

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %13 = call noalias ptr @malloc(i64 noundef 112) #6
  store ptr %13, ptr %6, align 8, !tbaa !5
  %14 = load i32, ptr %5, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %15, i32 0, i32 0
  store i32 %14, ptr %16, align 8, !tbaa !11
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %17, i32 0, i32 1
  store float 0x3FEFAE1480000000, ptr %18, align 4, !tbaa !14
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %19, i32 0, i32 2
  store float 0x3FB99999A0000000, ptr %20, align 8, !tbaa !15
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %21, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = zext i32 %23 to i64
  %25 = mul i64 %24, 4
  %26 = call noalias ptr @malloc(i64 noundef %25) #6
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %27, i32 0, i32 3
  store ptr %26, ptr %28, align 8, !tbaa !16
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = zext i32 %31 to i64
  %33 = mul i64 %32, 4
  %34 = call noalias ptr @malloc(i64 noundef %33) #6
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %35, i32 0, i32 4
  store ptr %34, ptr %36, align 8, !tbaa !17
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = zext i32 %39 to i64
  %41 = mul i64 %40, 4
  %42 = call noalias ptr @malloc(i64 noundef %41) #6
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %43, i32 0, i32 5
  store ptr %42, ptr %44, align 8, !tbaa !18
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !11
  %51 = mul i32 %47, %50
  %52 = zext i32 %51 to i64
  %53 = mul i64 %52, 4
  %54 = call noalias ptr @malloc(i64 noundef %53) #6
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %55, i32 0, i32 6
  store ptr %54, ptr %56, align 8, !tbaa !19
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 8, !tbaa !11
  %63 = mul i32 %59, %62
  %64 = zext i32 %63 to i64
  %65 = mul i64 %64, 4
  %66 = call noalias ptr @malloc(i64 noundef %65) #6
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %67, i32 0, i32 7
  store ptr %66, ptr %68, align 8, !tbaa !20
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !11
  %72 = zext i32 %71 to i64
  %73 = mul i64 %72, 4
  %74 = call noalias ptr @malloc(i64 noundef %73) #6
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %75, i32 0, i32 8
  store ptr %74, ptr %76, align 8, !tbaa !21
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !11
  %80 = zext i32 %79 to i64
  %81 = mul i64 %80, 4
  %82 = call noalias ptr @malloc(i64 noundef %81) #6
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %83, i32 0, i32 9
  store ptr %82, ptr %84, align 8, !tbaa !22
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !11
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !11
  %91 = mul i32 %87, %90
  %92 = zext i32 %91 to i64
  %93 = mul i64 %92, 4
  %94 = call noalias ptr @malloc(i64 noundef %93) #6
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %95, i32 0, i32 11
  store ptr %94, ptr %96, align 8, !tbaa !23
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 8, !tbaa !11
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 8, !tbaa !11
  %103 = mul i32 %99, %102
  %104 = zext i32 %103 to i64
  %105 = mul i64 %104, 4
  %106 = call noalias ptr @malloc(i64 noundef %105) #6
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %107, i32 0, i32 12
  store ptr %106, ptr %108, align 8, !tbaa !24
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !11
  %112 = call ptr @windowf_create(i32 noundef %111)
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %113, i32 0, i32 14
  store ptr %112, ptr %114, align 8, !tbaa !25
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = icmp eq ptr %115, null
  br i1 %116, label %117, label %144

117:                                              ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %140, %117
  %119 = load i32, ptr %7, align 4, !tbaa !9
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 8, !tbaa !11
  %123 = icmp ult i32 %119, %122
  br i1 %123, label %124, label %143

124:                                              ; preds = %118
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 8, !tbaa !11
  %129 = sub i32 %128, 1
  %130 = icmp eq i32 %125, %129
  %131 = zext i1 %130 to i64
  %132 = select i1 %130, double 1.000000e+00, double 0.000000e+00
  %133 = fptrunc double %132 to float
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !16
  %137 = load i32, ptr %7, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds float, ptr %136, i64 %138
  store float %133, ptr %139, align 4, !tbaa !26
  br label %140

140:                                              ; preds = %124
  %141 = load i32, ptr %7, align 4, !tbaa !9
  %142 = add i32 %141, 1
  store i32 %142, ptr %7, align 4, !tbaa !9
  br label %118, !llvm.loop !27

143:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %154

144:                                              ; preds = %12
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %145, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !16
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.eqrls_rrrf_s, ptr %149, i32 0, i32 0
  %151 = load i32, ptr %150, align 8, !tbaa !11
  %152 = zext i32 %151 to i64
  %153 = mul i64 %152, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %147, ptr align 4 %148, i64 %153, i1 false)
  br label %154

154:                                              ; preds = %144, %143
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = call i32 @eqrls_rrrf_reset(ptr noundef %155)
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %157, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %158

158:                                              ; preds = %154, %10
  %159 = load ptr, ptr %3, align 8
  ret ptr %159
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @eqrls_rrrf_reset(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind 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 #2 = { "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 nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #6 = { nounwind 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 = !{!"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, !10, i64 0}
!12 = !{!"eqrls_rrrf_s", !10, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !13, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !6, i64 104}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 8}
!16 = !{!12, !6, i64 16}
!17 = !{!12, !6, i64 24}
!18 = !{!12, !6, i64 32}
!19 = !{!12, !6, i64 40}
!20 = !{!12, !6, i64 48}
!21 = !{!12, !6, i64 56}
!22 = !{!12, !6, i64 64}
!23 = !{!12, !6, i64 80}
!24 = !{!12, !6, i64 88}
!25 = !{!12, !6, i64 104}
!26 = !{!13, !13, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; 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.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [58 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

declare ptr @windowf_create(i32 noundef) local_unnamed_addr #1

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @eqrls_rrrf_create(ptr noundef readonly %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = icmp eq i32 %1, 0
  br i1 %3, label %4, label %6

4:                                                ; preds = %2
  %5 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str.14, i32 noundef 61, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.2) #4
  br label %49

6:                                                ; preds = %2
  %7 = tail call noalias dereferenceable_or_null(112) ptr @malloc(i64 noundef 112) #5
  store i32 %1, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 4
  store <2 x float> <float 0x3FEFAE1480000000, float 0x3FB99999A0000000>, ptr %8, align 4, !tbaa !12
  %9 = zext i32 %1 to i64
  %10 = shl nuw nsw i64 %9, 2
  %11 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %12 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %11, ptr %12, align 8, !tbaa !13
  %13 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %14 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %13, ptr %14, align 8, !tbaa !14
  %15 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %16 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %15, ptr %16, align 8, !tbaa !15
  %17 = mul i32 %1, %1
  %18 = zext i32 %17 to i64
  %19 = shl nuw nsw i64 %18, 2
  %20 = tail call noalias ptr @malloc(i64 noundef %19) #5
  %21 = getelementptr inbounds i8, ptr %7, i64 40
  store ptr %20, ptr %21, align 8, !tbaa !16
  %22 = tail call noalias ptr @malloc(i64 noundef %19) #5
  %23 = getelementptr inbounds i8, ptr %7, i64 48
  store ptr %22, ptr %23, align 8, !tbaa !17
  %24 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %25 = getelementptr inbounds i8, ptr %7, i64 56
  store ptr %24, ptr %25, align 8, !tbaa !18
  %26 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %27 = getelementptr inbounds i8, ptr %7, i64 64
  store ptr %26, ptr %27, align 8, !tbaa !19
  %28 = tail call noalias ptr @malloc(i64 noundef %19) #5
  %29 = getelementptr inbounds i8, ptr %7, i64 80
  store ptr %28, ptr %29, align 8, !tbaa !20
  %30 = tail call noalias ptr @malloc(i64 noundef %19) #5
  %31 = getelementptr inbounds i8, ptr %7, i64 88
  store ptr %30, ptr %31, align 8, !tbaa !21
  %32 = tail call ptr @windowf_create(i32 noundef %1) #4
  %33 = getelementptr inbounds i8, ptr %7, i64 104
  store ptr %32, ptr %33, align 8, !tbaa !22
  %34 = icmp eq ptr %0, null
  br i1 %34, label %.lr.ph, label %47

.lr.ph:                                           ; preds = %6
  %35 = add i32 %1, -1
  %36 = zext i32 %35 to i64
  %min.iters.check = icmp ult i32 %1, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %9, 4294967288
  %broadcast.splatinsert = insertelement <4 x i64> poison, i64 %36, i64 0
  %broadcast.splat = shufflevector <4 x i64> %broadcast.splatinsert, <4 x i64> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i64> %vec.ind, <i64 4, i64 4, i64 4, i64 4>
  %37 = icmp eq <4 x i64> %vec.ind, %broadcast.splat
  %38 = icmp eq <4 x i64> %step.add, %broadcast.splat
  %39 = select <4 x i1> %37, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float> zeroinitializer
  %40 = select <4 x i1> %38, <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float> zeroinitializer
  %41 = getelementptr inbounds float, ptr %11, i64 %index
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store <4 x float> %39, ptr %41, align 4, !tbaa !12
  store <4 x float> %40, ptr %42, align 4, !tbaa !12
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i64> %vec.ind, <i64 8, i64 8, i64 8, i64 8>
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %9
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %44 = icmp eq i64 %indvars.iv, %36
  %45 = select i1 %44, float 1.000000e+00, float 0.000000e+00
  %46 = getelementptr inbounds float, ptr %11, i64 %indvars.iv
  store float %45, ptr %46, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %9
  br i1 %exitcond.not, label %.loopexit, label %scalar.ph, !llvm.loop !27

47:                                               ; preds = %6
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr nonnull align 4 %0, i64 %10, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %scalar.ph, %middle.block, %47
  %48 = tail call i32 @eqrls_rrrf_reset(ptr noundef nonnull %7)
  br label %49

49:                                               ; preds = %.loopexit, %4
  %.042 = phi ptr [ %5, %4 ], [ %7, %.loopexit ]
  ret ptr %.042
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @eqrls_rrrf_reset(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 = { 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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
attributes #5 = { nounwind 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, !7, i64 0}
!6 = !{!"eqrls_rrrf_s", !7, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !10, i64 72, !11, i64 80, !11, i64 88, !7, i64 96, !11, i64 104}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !11, i64 24}
!15 = !{!6, !11, i64 32}
!16 = !{!6, !11, i64 40}
!17 = !{!6, !11, i64 48}
!18 = !{!6, !11, i64 56}
!19 = !{!6, !11, i64 64}
!20 = !{!6, !11, i64 80}
!21 = !{!6, !11, i64 88}
!22 = !{!6, !11, i64 104}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !24, !26, !25}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass