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

; 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 [83 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [45 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 memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #2

declare <2 x float> @__divsc3(float, float, float, float)

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

; Function Attrs: nounwind uwtable
define dso_local float @iir_group_delay(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, float noundef %4) #3 {
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca float, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca i32, align 4
  %26 = alloca { float, float }, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store float %4, ptr %11, align 4, !tbaa !11
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %5
  %30 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 72, ptr noundef @.str.3)
  store float 0.000000e+00, ptr %6, align 4
  br label %208

31:                                               ; preds = %5
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 75, ptr noundef @.str.4)
  store float 0.000000e+00, ptr %6, align 4
  br label %208

36:                                               ; preds = %31
  %37 = load float, ptr %11, align 4, !tbaa !11
  %38 = fpext float %37 to double
  %39 = fcmp olt double %38, -5.000000e-01
  br i1 %39, label %44, label %40

40:                                               ; preds = %36
  %41 = load float, ptr %11, align 4, !tbaa !11
  %42 = fpext float %41 to double
  %43 = fcmp ogt double %42, 5.000000e-01
  br i1 %43, label %44, label %46

44:                                               ; preds = %40, %36
  %45 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str, i32 noundef 78, ptr noundef @.str.5)
  store float 0.000000e+00, ptr %6, align 4
  br label %208

46:                                               ; preds = %40
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = add i32 %49, %50
  %52 = sub i32 %51, 1
  store i32 %52, ptr %12, align 4, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = call ptr @llvm.stacksave.p0()
  store ptr %55, ptr %13, align 8
  %56 = alloca float, i64 %54, align 16
  store i64 %54, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %65, %48
  %58 = load i32, ptr %15, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = icmp ult i32 %58, %59
  br i1 %60, label %61, label %68

61:                                               ; preds = %57
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %56, i64 %63
  store float 0.000000e+00, ptr %64, align 4, !tbaa !11
  br label %65

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

68:                                               ; preds = %57
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %106, %68
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = icmp ult i32 %70, %71
  br i1 %72, label %73, label %109

73:                                               ; preds = %69
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %102, %73
  %75 = load i32, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = icmp ult i32 %75, %76
  br i1 %77, label %78, label %105

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = sub i32 %80, %81
  %83 = sub i32 %82, 1
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %79, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !11
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = fmul float %86, %91
  %93 = fmul float -0.000000e+00, %91
  store float %92, ptr %17, align 4, !tbaa !11
  %94 = load float, ptr %17, align 4, !tbaa !11
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = add i32 %95, %96
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds float, ptr %56, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = fadd float %100, %94
  store float %101, ptr %99, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %102

102:                                              ; preds = %78
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = add i32 %103, 1
  store i32 %104, ptr %16, align 4, !tbaa !9
  br label %74, !llvm.loop !15

105:                                              ; preds = %74
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = add i32 %107, 1
  store i32 %108, ptr %15, align 4, !tbaa !9
  br label %69, !llvm.loop !16

109:                                              ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %110 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %111 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float 0.000000e+00, ptr %110, align 4
  store float 0.000000e+00, ptr %111, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %112 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %113 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float 0.000000e+00, ptr %112, align 4
  store float 0.000000e+00, ptr %113, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %173, %109
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = icmp ult i32 %115, %116
  br i1 %117, label %118, label %176

118:                                              ; preds = %114
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds float, ptr %56, i64 %120
  %122 = load float, ptr %121, align 4, !tbaa !11
  %123 = load float, ptr %11, align 4, !tbaa !11
  %124 = fpext float %123 to double
  %125 = fmul double 0.000000e+00, %124
  %126 = fmul double 0x401921FB54442D18, %124
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = uitofp i32 %127 to double
  %129 = fmul double %125, %128
  %130 = fmul double %126, %128
  %131 = fptrunc double %129 to float
  %132 = fptrunc double %130 to float
  %133 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %134 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %131, ptr %133, align 4
  store float %132, ptr %134, align 4
  %135 = load <2 x float>, ptr %21, align 4
  %136 = call <2 x float> @cexpf(<2 x float> noundef %135) #5
  store <2 x float> %136, ptr %22, align 4
  %137 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %138 = load float, ptr %137, align 4
  %139 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  %140 = load float, ptr %139, align 4
  %141 = fmul float %122, %138
  %142 = fmul float %122, %140
  %143 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %144 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %141, ptr %143, align 4
  store float %142, ptr %144, align 4
  %145 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %146 = load float, ptr %145, align 4
  %147 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  %148 = load float, ptr %147, align 4
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = uitofp i32 %149 to float
  %151 = fmul float %146, %150
  %152 = fmul float %148, %150
  %153 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %154 = load float, ptr %153, align 4
  %155 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  %157 = fadd float %154, %151
  %158 = fadd float %156, %152
  %159 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %160 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %157, ptr %159, align 4
  store float %158, ptr %160, align 4
  %161 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %162 = load float, ptr %161, align 4
  %163 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  %164 = load float, ptr %163, align 4
  %165 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %166 = load float, ptr %165, align 4
  %167 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %168 = load float, ptr %167, align 4
  %169 = fadd float %166, %162
  %170 = fadd float %168, %164
  %171 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %172 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %169, ptr %171, align 4
  store float %170, ptr %172, align 4
  br label %173

173:                                              ; preds = %118
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = add i32 %174, 1
  store i32 %175, ptr %15, align 4, !tbaa !9
  br label %114, !llvm.loop !17

176:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store float 0x3EE4F8B580000000, ptr %23, align 4, !tbaa !11
  %177 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %178 = load float, ptr %177, align 4
  %179 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %180 = load float, ptr %179, align 4
  %181 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %182 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  store float %178, ptr %181, align 4
  store float %180, ptr %182, align 4
  %183 = load <2 x float>, ptr %24, align 4
  %184 = call float @cabsf(<2 x float> noundef %183) #5
  %185 = load float, ptr %23, align 4, !tbaa !11
  %186 = fcmp olt float %184, %185
  br i1 %186, label %187, label %188

187:                                              ; preds = %176
  store float 0.000000e+00, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %206

188:                                              ; preds = %176
  %189 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %190 = load float, ptr %189, align 4
  %191 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  %192 = load float, ptr %191, align 4
  %193 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %194 = load float, ptr %193, align 4
  %195 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %196 = load float, ptr %195, align 4
  %197 = call <2 x float> @__divsc3(float noundef %190, float noundef %192, float noundef %194, float noundef %196) #5
  store <2 x float> %197, ptr %26, align 4
  %198 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %199 = load float, ptr %198, align 4
  %200 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  %201 = load float, ptr %200, align 4
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = sub i32 %202, 1
  %204 = uitofp i32 %203 to float
  %205 = fsub float %199, %204
  store float %205, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %206

206:                                              ; preds = %188, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %207 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %207)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %208

208:                                              ; preds = %206, %44, %34, %29
  %209 = load float, ptr %6, align 4
  ret float %209
}

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #2

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

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 memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "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 }
attributes #5 = { 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 [83 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [45 x i8], align 1

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

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #1

declare <2 x float> @__divsc3(float, float, float, float) local_unnamed_addr

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

7:                                                ; preds = %5
  %8 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 72, ptr noundef nonnull @.str.3) #6
  br label %115

9:                                                ; preds = %5
  %10 = icmp eq i32 %3, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %9
  %12 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 75, ptr noundef nonnull @.str.4) #6
  br label %115

13:                                               ; preds = %9
  %14 = fpext float %4 to double
  %15 = tail call float @llvm.fabs.f32(float %4)
  %or.cond = fcmp ogt float %15, 5.000000e-01
  br i1 %or.cond, label %16, label %18

16:                                               ; preds = %13
  %17 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str, i32 noundef 78, ptr noundef nonnull @.str.5) #6
  br label %115

18:                                               ; preds = %13
  %19 = add i32 %3, -1
  %20 = add i32 %19, %1
  %21 = zext i32 %20 to i64
  %22 = tail call ptr @llvm.stacksave.p0()
  %23 = alloca float, i64 %21, align 16
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %.preheader59, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %18
  %24 = add i32 %3, %1
  %25 = add i32 %24, -2
  %26 = zext i32 %25 to i64
  %27 = shl nuw nsw i64 %26, 2
  %28 = add nuw nsw i64 %27, 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %23, i8 0, i64 %28, i1 false), !tbaa !5
  br label %.preheader59

.preheader59:                                     ; preds = %.lr.ph.preheader, %18
  %wide.trip.count82 = zext i32 %3 to i64
  %wide.trip.count = zext i32 %1 to i64
  %29 = add nsw i64 %wide.trip.count, -1
  %min.iters.check = icmp ult i32 %1, 8
  %30 = trunc i64 %29 to i32
  %31 = icmp ugt i64 %29, 4294967295
  %n.vec = and i64 %wide.trip.count, 4294967288
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %32 = add nsw i64 %wide.trip.count, -1
  br label %.preheader58

.preheader58:                                     ; preds = %.preheader59, %.loopexit
  %indvars.iv78 = phi i64 [ 0, %.preheader59 ], [ %indvars.iv.next79, %.loopexit ]
  %33 = trunc nuw i64 %indvars.iv78 to i32
  %34 = xor i32 %33, -1
  %35 = add i32 %34, %3
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds float, ptr %2, i64 %36
  %38 = load float, ptr %37, align 4, !tbaa !5
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.scevcheck, %.preheader58
  %indvars.iv.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %.preheader58 ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %39 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.ph
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fmul float %38, %40
  %42 = add nuw i64 %indvars.iv.ph, %indvars.iv78
  %43 = and i64 %42, 4294967295
  %44 = getelementptr inbounds float, ptr %23, i64 %43
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = fadd float %45, %41
  store float %46, ptr %44, align 4, !tbaa !5
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %47 = icmp eq i64 %indvars.iv.ph, %32
  br i1 %47, label %.loopexit, label %scalar.ph

vector.scevcheck:                                 ; preds = %.preheader58
  %48 = trunc i64 %indvars.iv78 to i32
  %49 = xor i32 %48, -1
  %50 = icmp ult i32 %49, %30
  %51 = or i1 %50, %31
  br i1 %51, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.scevcheck
  %broadcast.splatinsert = insertelement <4 x float> poison, float %38, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> 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 ]
  %52 = getelementptr inbounds float, ptr %0, i64 %index
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %wide.load = load <4 x float>, ptr %52, align 4, !tbaa !5
  %wide.load95 = load <4 x float>, ptr %53, align 4, !tbaa !5
  %54 = fmul <4 x float> %broadcast.splat, %wide.load
  %55 = fmul <4 x float> %broadcast.splat, %wide.load95
  %56 = add nuw i64 %index, %indvars.iv78
  %57 = and i64 %56, 4294967295
  %58 = getelementptr inbounds float, ptr %23, i64 %57
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load96 = load <4 x float>, ptr %58, align 4, !tbaa !5
  %wide.load97 = load <4 x float>, ptr %59, align 4, !tbaa !5
  %60 = fadd <4 x float> %wide.load96, %54
  %61 = fadd <4 x float> %wide.load97, %55
  store <4 x float> %60, ptr %58, align 4, !tbaa !5
  store <4 x float> %61, ptr %59, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %62 = icmp eq i64 %index.next, %n.vec
  br i1 %62, label %middle.block, label %vector.body, !llvm.loop !9

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

.preheader:                                       ; preds = %.loopexit
  br i1 %.not, label %._crit_edge, label %.lr.ph68

.lr.ph68:                                         ; preds = %.preheader
  %63 = insertelement <2 x double> poison, double %14, i64 0
  %64 = shufflevector <2 x double> %63, <2 x double> poison, <2 x i32> zeroinitializer
  %65 = fmul <2 x double> %64, <double 0.000000e+00, double 0x401921FB54442D18>
  br label %82

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %66 = getelementptr inbounds float, ptr %0, i64 %indvars.iv
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = fmul float %38, %67
  %69 = add nuw i64 %indvars.iv, %indvars.iv78
  %70 = and i64 %69, 4294967295
  %71 = getelementptr inbounds float, ptr %23, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !5
  %73 = fadd float %72, %68
  store float %73, ptr %71, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = getelementptr inbounds float, ptr %0, i64 %indvars.iv.next
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = fmul float %38, %75
  %77 = add nuw i64 %indvars.iv.next, %indvars.iv78
  %78 = and i64 %77, 4294967295
  %79 = getelementptr inbounds float, ptr %23, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = fadd float %80, %76
  store float %81, ptr %79, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !13

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next79, %wide.trip.count82
  br i1 %exitcond83.not, label %.preheader, label %.preheader58, !llvm.loop !14

82:                                               ; preds = %.lr.ph68, %82
  %indvars.iv84 = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next85, %82 ]
  %83 = phi <2 x float> [ zeroinitializer, %.lr.ph68 ], [ %102, %82 ]
  %84 = phi <2 x float> [ zeroinitializer, %.lr.ph68 ], [ %101, %82 ]
  %85 = getelementptr inbounds float, ptr %23, i64 %indvars.iv84
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = trunc nuw i64 %indvars.iv84 to i32
  %88 = uitofp i32 %87 to double
  %89 = insertelement <2 x double> poison, double %88, i64 0
  %90 = shufflevector <2 x double> %89, <2 x double> poison, <2 x i32> zeroinitializer
  %91 = fmul <2 x double> %65, %90
  %92 = fptrunc <2 x double> %91 to <2 x float>
  %93 = tail call <2 x float> @cexpf(<2 x float> noundef %92) #6
  %94 = insertelement <2 x float> poison, float %86, i64 0
  %95 = shufflevector <2 x float> %94, <2 x float> poison, <2 x i32> zeroinitializer
  %96 = fmul <2 x float> %95, %93
  %97 = uitofp i32 %87 to float
  %98 = insertelement <2 x float> poison, float %97, i64 0
  %99 = shufflevector <2 x float> %98, <2 x float> poison, <2 x i32> zeroinitializer
  %100 = fmul <2 x float> %96, %99
  %101 = fadd <2 x float> %84, %100
  %102 = fadd <2 x float> %83, %96
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %21
  br i1 %exitcond88.not, label %._crit_edge.loopexit, label %82, !llvm.loop !15

._crit_edge.loopexit:                             ; preds = %82
  %103 = extractelement <2 x float> %101, i64 1
  %104 = extractelement <2 x float> %101, i64 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %.sroa.014.0.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %104, %._crit_edge.loopexit ]
  %.sroa.6.0.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %103, %._crit_edge.loopexit ]
  %105 = phi <2 x float> [ zeroinitializer, %.preheader ], [ %102, %._crit_edge.loopexit ]
  %106 = tail call float @cabsf(<2 x float> noundef %105) #6
  %107 = fcmp olt float %106, 0x3EE4F8B580000000
  br i1 %107, label %114, label %108

108:                                              ; preds = %._crit_edge
  %109 = extractelement <2 x float> %105, i64 0
  %110 = extractelement <2 x float> %105, i64 1
  %111 = tail call <2 x float> @__divsc3(float noundef %.sroa.014.0.lcssa, float noundef %.sroa.6.0.lcssa, float noundef %109, float noundef %110) #6
  %.sroa.0.0.vec.extract = extractelement <2 x float> %111, i64 0
  %112 = uitofp i32 %19 to float
  %113 = fsub float %.sroa.0.0.vec.extract, %112
  br label %114

114:                                              ; preds = %._crit_edge, %108
  %.0 = phi float [ %113, %108 ], [ 0.000000e+00, %._crit_edge ]
  tail call void @llvm.stackrestore.p0(ptr %22)
  br label %115

115:                                              ; preds = %114, %16, %11, %7
  %.1 = phi float [ 0.000000e+00, %7 ], [ 0.000000e+00, %11 ], [ 0.000000e+00, %16 ], [ %.0, %114 ]
  ret float %.1
}

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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #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 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "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 willreturn }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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