; LLVM IR from sp-nitech/SPTK :: third_party/REAPER/epoch_tracker (lpc_analyzer)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper11LpcAnalyzer10HannWindowEPKfPfif(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, i32 noundef, float noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper11LpcAnalyzer5AutocEiPfiS2_S2_(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk6reaper11LpcAnalyzer6DurbinEPfS2_S2_iS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4sptk6reaper11LpcAnalyzer10ComputeLpcEifiPKfPfS4_S4_S4_S4_f(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1, float noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, float noundef %10) #0 align 2 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca float, align 4
  %24 = alloca [101 x float], align 16
  %25 = alloca [100 x float], align 16
  %26 = alloca [101 x float], align 16
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store i32 %1, ptr %14, align 4, !tbaa !9
  store float %2, ptr %15, align 4, !tbaa !11
  store i32 %3, ptr %16, align 4, !tbaa !9
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store float %10, ptr %23, align 4, !tbaa !11
  %37 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 404, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 400, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 404, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %38 = load i32, ptr %16, align 4, !tbaa !9
  %39 = icmp sle i32 %38, 0
  br i1 %39, label %46, label %40

40:                                               ; preds = %11
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %46

43:                                               ; preds = %40
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = icmp sgt i32 %44, 100
  br i1 %45, label %46, label %47

46:                                               ; preds = %43, %40, %11
  store i32 0, ptr %12, align 4
  store i32 1, ptr %32, align 4
  br label %163

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %48 = load i32, ptr %16, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %49, i64 4)
  %51 = extractvalue { i64, i1 } %50, 1
  %52 = extractvalue { i64, i1 } %50, 0
  %53 = select i1 %51, i64 -1, i64 %52
  %54 = call noalias noundef nonnull ptr @_Znam(i64 noundef %53) #8
  store ptr %54, ptr %33, align 8, !tbaa !5
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  %56 = load ptr, ptr %33, align 8, !tbaa !5
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = load float, ptr %23, align 4, !tbaa !11
  call void @_ZN4sptk6reaper11LpcAnalyzer10HannWindowEPKfPfif(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %55, ptr noundef %56, i32 noundef %57, float noundef %58)
  %59 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %59, ptr %27, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %63, label %61

61:                                               ; preds = %47
  %62 = getelementptr inbounds [101 x float], ptr %24, i64 0, i64 0
  store ptr %62, ptr %27, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %61, %47
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %64, ptr %28, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %68, label %66

66:                                               ; preds = %63
  %67 = getelementptr inbounds [100 x float], ptr %25, i64 0, i64 0
  store ptr %67, ptr %28, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %66, %63
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %69, ptr %29, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %73, label %71

71:                                               ; preds = %68
  %72 = getelementptr inbounds [101 x float], ptr %26, i64 0, i64 0
  store ptr %72, ptr %29, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %71, %68
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = load ptr, ptr %33, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = load ptr, ptr %27, align 8, !tbaa !5
  call void @_ZN4sptk6reaper11LpcAnalyzer5AutocEiPfiS2_S2_(ptr noundef nonnull align 8 dereferenceable(48) %37, i32 noundef %74, ptr noundef %75, i32 noundef %76, ptr noundef %77, ptr noundef %30)
  %78 = load float, ptr %15, align 4, !tbaa !11
  %79 = fpext float %78 to double
  %80 = fcmp ogt double %79, 1.000000e+00
  br i1 %80, label %81, label %137

81:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %82 = load float, ptr %15, align 4, !tbaa !11
  %83 = fneg float %82
  %84 = fpext float %83 to double
  %85 = fdiv double %84, 2.000000e+01
  %86 = call double @log(double noundef 1.000000e+01) #7
  %87 = fmul double %85, %86
  %88 = call double @exp(double noundef %87) #7
  %89 = fadd double 1.000000e+00, %88
  %90 = fdiv double 1.000000e+00, %89
  %91 = fptrunc double %90 to float
  store float %91, ptr %35, align 4, !tbaa !11
  store i32 1, ptr %34, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %107, %81
  %93 = load i32, ptr %34, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp sle i32 %93, %94
  br i1 %95, label %96, label %110

96:                                               ; preds = %92
  %97 = load float, ptr %35, align 4, !tbaa !11
  %98 = load ptr, ptr %27, align 8, !tbaa !5
  %99 = load i32, ptr %34, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds float, ptr %98, i64 %100
  %102 = load float, ptr %101, align 4, !tbaa !11
  %103 = fmul float %97, %102
  %104 = load i32, ptr %34, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [101 x float], ptr %24, i64 0, i64 %105
  store float %103, ptr %106, align 4, !tbaa !11
  br label %107

107:                                              ; preds = %96
  %108 = load i32, ptr %34, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %34, align 4, !tbaa !9
  br label %92, !llvm.loop !13

110:                                              ; preds = %92
  %111 = load ptr, ptr %27, align 8, !tbaa !5
  %112 = load float, ptr %111, align 4, !tbaa !11
  %113 = getelementptr inbounds [101 x float], ptr %24, i64 0, i64 0
  store float %112, ptr %113, align 16, !tbaa !11
  %114 = getelementptr inbounds [101 x float], ptr %24, i64 0, i64 0
  store ptr %114, ptr %27, align 8, !tbaa !5
  %115 = load ptr, ptr %19, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %136

117:                                              ; preds = %110
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %132, %117
  %119 = load i32, ptr %34, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %122, label %135

122:                                              ; preds = %118
  %123 = load ptr, ptr %27, align 8, !tbaa !5
  %124 = load i32, ptr %34, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = load ptr, ptr %19, align 8, !tbaa !5
  %129 = load i32, ptr %34, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds float, ptr %128, i64 %130
  store float %127, ptr %131, align 4, !tbaa !11
  br label %132

132:                                              ; preds = %122
  %133 = load i32, ptr %34, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %34, align 4, !tbaa !9
  br label %118, !llvm.loop !15

135:                                              ; preds = %118
  br label %136

136:                                              ; preds = %135, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %137

137:                                              ; preds = %136, %73
  %138 = load ptr, ptr %27, align 8, !tbaa !5
  %139 = load ptr, ptr %28, align 8, !tbaa !5
  %140 = load ptr, ptr %29, align 8, !tbaa !5
  %141 = getelementptr inbounds float, ptr %140, i64 1
  %142 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN4sptk6reaper11LpcAnalyzer6DurbinEPfS2_S2_iS2_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef %138, ptr noundef %139, ptr noundef %141, i32 noundef %142, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store float 0x3FE3988D20000000, ptr %36, align 4, !tbaa !11
  %143 = load ptr, ptr %29, align 8, !tbaa !5
  %144 = getelementptr inbounds float, ptr %143, i64 0
  store float 1.000000e+00, ptr %144, align 4, !tbaa !11
  %145 = load ptr, ptr %22, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %152

147:                                              ; preds = %137
  %148 = load float, ptr %30, align 4, !tbaa !11
  %149 = load float, ptr %36, align 4, !tbaa !11
  %150 = fdiv float %148, %149
  %151 = load ptr, ptr %22, align 8, !tbaa !5
  store float %150, ptr %151, align 4, !tbaa !11
  br label %152

152:                                              ; preds = %147, %137
  %153 = load ptr, ptr %21, align 8, !tbaa !5
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %158

155:                                              ; preds = %152
  %156 = load float, ptr %31, align 4, !tbaa !11
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  store float %156, ptr %157, align 4, !tbaa !11
  br label %158

158:                                              ; preds = %155, %152
  %159 = load ptr, ptr %33, align 8, !tbaa !5
  %160 = icmp eq ptr %159, null
  br i1 %160, label %162, label %161

161:                                              ; preds = %158
  call void @_ZdaPv(ptr noundef %159) #9
  br label %162

162:                                              ; preds = %161, %158
  store i32 1, ptr %12, align 4
  store i32 1, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %163

163:                                              ; preds = %162, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 404, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 400, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 404, ptr %24) #7
  %164 = load i32, ptr %12, align 4
  ret i32 %164
}

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #5

; Function Attrs: nounwind
declare double @log(double noundef) #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { nobuiltin 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper11LpcAnalyzer10HannWindowEPKfPfif(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, i32 noundef, float noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper11LpcAnalyzer5AutocEiPfiS2_S2_(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk6reaper11LpcAnalyzer6DurbinEPfS2_S2_iS2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN4sptk6reaper11LpcAnalyzer10ComputeLpcEifiPKfPfS4_S4_S4_S4_f(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %1, float noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef writeonly %8, ptr noundef writeonly %9, float noundef %10) local_unnamed_addr #0 align 2 {
  %12 = alloca [101 x float], align 16
  %13 = ptrtoint ptr %12 to i64
  %14 = alloca [100 x float], align 16
  %15 = alloca [101 x float], align 16
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 404, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 404, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %18 = icmp slt i32 %3, 1
  %19 = icmp eq ptr %4, null
  %or.cond.not61 = or i1 %18, %19
  %20 = icmp sgt i32 %1, 100
  %or.cond3 = or i1 %20, %or.cond.not61
  br i1 %or.cond3, label %80, label %21

21:                                               ; preds = %11
  %22 = zext nneg i32 %3 to i64
  %23 = shl nuw nsw i64 %22, 2
  %24 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #8
  tail call void @_ZN4sptk6reaper11LpcAnalyzer10HannWindowEPKfPfif(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %4, ptr noundef nonnull %24, i32 noundef %3, float noundef %10)
  %.not = icmp eq ptr %6, null
  %spec.select = select i1 %.not, ptr %12, ptr %6
  %spec.select79 = ptrtoint ptr %spec.select to i64
  %.not62 = icmp eq ptr %7, null
  %.051 = select i1 %.not62, ptr %14, ptr %7
  %.not63 = icmp eq ptr %5, null
  %.052 = select i1 %.not63, ptr %15, ptr %5
  call void @_ZN4sptk6reaper11LpcAnalyzer5AutocEiPfiS2_S2_(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %3, ptr noundef nonnull %24, i32 noundef %1, ptr noundef nonnull %spec.select, ptr noundef nonnull %16)
  %25 = fcmp ogt float %2, 1.000000e+00
  br i1 %25, label %26, label %.loopexit

26:                                               ; preds = %21
  %27 = fneg float %2
  %28 = fpext float %27 to double
  %29 = fdiv double %28, 2.000000e+01
  %30 = fmul double %29, 0x40026BB1BBB55516
  %31 = call double @exp(double noundef %30) #7
  %32 = fadd double %31, 1.000000e+00
  %33 = fdiv double 1.000000e+00, %32
  %34 = fptrunc double %33 to float
  %.not6469 = icmp slt i32 %1, 1
  br i1 %.not6469, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %26
  %35 = add nuw nsw i32 %1, 1
  %wide.trip.count = zext nneg i32 %35 to i64
  %36 = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 8
  %37 = sub i64 %13, %spec.select79
  %diff.check = icmp ult i64 %37, 32
  %or.cond81 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond81, label %.lr.ph.preheader82, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %36, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <4 x float> poison, float %34, 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 ]
  %offset.idx = or disjoint i64 %index, 1
  %38 = getelementptr inbounds float, ptr %spec.select, i64 %offset.idx
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %wide.load = load <4 x float>, ptr %38, align 4, !tbaa !5
  %wide.load80 = load <4 x float>, ptr %39, align 4, !tbaa !5
  %40 = fmul <4 x float> %wide.load, %broadcast.splat
  %41 = fmul <4 x float> %wide.load80, %broadcast.splat
  %42 = getelementptr inbounds [101 x float], ptr %12, i64 0, i64 %offset.idx
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  store <4 x float> %40, ptr %42, align 4, !tbaa !5
  store <4 x float> %41, ptr %43, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %36
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader82

.lr.ph.preheader82:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %45 = sub nsw i64 %wide.trip.count, %indvars.iv.ph
  %46 = zext nneg i32 %1 to i64
  %47 = sub nsw i64 %46, %indvars.iv.ph
  %xtraiter = and i64 %45, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader82, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader82 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader82 ]
  %48 = getelementptr inbounds float, ptr %spec.select, i64 %indvars.iv.prol
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = fmul float %49, %34
  %51 = getelementptr inbounds [101 x float], ptr %12, i64 0, i64 %indvars.iv.prol
  store float %50, ptr %51, align 4, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !13

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader82
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader82 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %52 = icmp ult i64 %47, 3
  br i1 %52, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %53 = getelementptr inbounds float, ptr %spec.select, i64 %indvars.iv
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fmul float %54, %34
  %56 = getelementptr inbounds [101 x float], ptr %12, i64 0, i64 %indvars.iv
  store float %55, ptr %56, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = getelementptr inbounds float, ptr %spec.select, i64 %indvars.iv.next
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fmul float %58, %34
  %60 = getelementptr inbounds [101 x float], ptr %12, i64 0, i64 %indvars.iv.next
  store float %59, ptr %60, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %61 = getelementptr inbounds float, ptr %spec.select, i64 %indvars.iv.next.1
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = fmul float %62, %34
  %64 = getelementptr inbounds [101 x float], ptr %12, i64 0, i64 %indvars.iv.next.1
  store float %63, ptr %64, align 4, !tbaa !5
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %65 = getelementptr inbounds float, ptr %spec.select, i64 %indvars.iv.next.2
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = fmul float %66, %34
  %68 = getelementptr inbounds [101 x float], ptr %12, i64 0, i64 %indvars.iv.next.2
  store float %67, ptr %68, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %26
  %69 = load float, ptr %spec.select, align 4, !tbaa !5
  store float %69, ptr %12, align 16, !tbaa !5
  %.not6571 = icmp slt i32 %1, 0
  %or.cond = or i1 %.not, %.not6571
  br i1 %or.cond, label %.loopexit, label %.lr.ph73.preheader

.lr.ph73.preheader:                               ; preds = %._crit_edge
  %70 = add nuw i32 %1, 1
  %71 = zext i32 %70 to i64
  %72 = shl nuw nsw i64 %71, 2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %6, ptr noundef nonnull align 16 dereferenceable(1) %12, i64 %72, i1 false), !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph73.preheader, %._crit_edge, %21
  %.1 = phi ptr [ %spec.select, %21 ], [ %12, %._crit_edge ], [ %12, %.lr.ph73.preheader ]
  %.052.sroa.sel.v.sroa.sel.v.sroa.sel.v = select i1 %.not63, ptr %15, ptr %5
  %.052.sroa.sel.v.sroa.sel.v.sroa.sel = getelementptr inbounds i8, ptr %.052.sroa.sel.v.sroa.sel.v.sroa.sel.v, i64 4
  call void @_ZN4sptk6reaper11LpcAnalyzer6DurbinEPfS2_S2_iS2_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %.1, ptr noundef nonnull %.051, ptr noundef nonnull %.052.sroa.sel.v.sroa.sel.v.sroa.sel, i32 noundef %1, ptr noundef nonnull %17)
  store float 1.000000e+00, ptr %.052, align 4, !tbaa !5
  %.not66 = icmp eq ptr %9, null
  br i1 %.not66, label %76, label %73

73:                                               ; preds = %.loopexit
  %74 = load float, ptr %16, align 4, !tbaa !5
  %75 = fdiv float %74, 0x3FE3988D20000000
  store float %75, ptr %9, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %73, %.loopexit
  %.not67 = icmp eq ptr %8, null
  br i1 %.not67, label %79, label %77

77:                                               ; preds = %76
  %78 = load float, ptr %17, align 4, !tbaa !5
  store float %78, ptr %8, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %76, %77
  call void @_ZdaPv(ptr noundef nonnull %24) #9
  br label %80

80:                                               ; preds = %11, %79
  %.0 = phi i32 [ 1, %79 ], [ 0, %11 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 404, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 404, ptr nonnull %12) #7
  ret i32 %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nobuiltin 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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++ 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, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10, !11}


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