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

; 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.firdespm_s = type { i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, i32, ptr, ptr }

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @firdespm_compute_interp(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %6

6:                                                ; preds = %35, %1
  %7 = load i32, ptr %3, align 4, !tbaa !9
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.firdespm_s, ptr %8, i32 0, i32 3
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %11 = add i32 %10, 1
  %12 = icmp ult i32 %7, %11
  br i1 %12, label %13, label %38

13:                                               ; preds = %6
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.firdespm_s, ptr %14, i32 0, i32 12
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.firdespm_s, ptr %17, i32 0, i32 20
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = getelementptr inbounds i32, ptr %19, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !9
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %16, i64 %24
  %26 = load double, ptr %25, align 8, !tbaa !16
  %27 = fmul double 0x401921FB54442D18, %26
  %28 = call double @cos(double noundef %27) #5
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.firdespm_s, ptr %29, i32 0, i32 16
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %31, i64 %33
  store double %28, ptr %34, align 8, !tbaa !16
  br label %35

35:                                               ; preds = %13
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = add i32 %36, 1
  store i32 %37, ptr %3, align 4, !tbaa !9
  br label %6, !llvm.loop !18

38:                                               ; preds = %6
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.firdespm_s, ptr %39, i32 0, i32 16
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.firdespm_s, ptr %42, i32 0, i32 3
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = add i32 %44, 1
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.firdespm_s, ptr %46, i32 0, i32 17
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = call i32 @poly_fit_lagrange_barycentric(ptr noundef %41, i32 noundef %45, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store double 0.000000e+00, ptr %4, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store double 0.000000e+00, ptr %5, align 8, !tbaa !16
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %108, %38
  %51 = load i32, ptr %3, align 4, !tbaa !9
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.firdespm_s, ptr %52, i32 0, i32 3
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = add i32 %54, 1
  %56 = icmp ult i32 %51, %55
  br i1 %56, label %57, label %111

57:                                               ; preds = %50
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.firdespm_s, ptr %58, i32 0, i32 17
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = load i32, ptr %3, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.firdespm_s, ptr %65, i32 0, i32 13
  %67 = load ptr, ptr %66, align 8, !tbaa !21
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.firdespm_s, ptr %68, i32 0, i32 20
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = load i32, ptr %3, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %70, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %67, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !16
  %78 = load double, ptr %4, align 8, !tbaa !16
  %79 = call double @llvm.fmuladd.f64(double %64, double %77, double %78)
  store double %79, ptr %4, align 8, !tbaa !16
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.firdespm_s, ptr %80, i32 0, i32 17
  %82 = load ptr, ptr %81, align 8, !tbaa !20
  %83 = load i32, ptr %3, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !16
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.firdespm_s, ptr %87, i32 0, i32 14
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.firdespm_s, ptr %90, i32 0, i32 20
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = load i32, ptr %3, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %89, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !16
  %100 = fdiv double %86, %99
  %101 = load i32, ptr %3, align 4, !tbaa !9
  %102 = urem i32 %101, 2
  %103 = icmp ne i32 %102, 0
  %104 = zext i1 %103 to i64
  %105 = select i1 %103, double -1.000000e+00, double 1.000000e+00
  %106 = load double, ptr %5, align 8, !tbaa !16
  %107 = call double @llvm.fmuladd.f64(double %100, double %105, double %106)
  store double %107, ptr %5, align 8, !tbaa !16
  br label %108

108:                                              ; preds = %57
  %109 = load i32, ptr %3, align 4, !tbaa !9
  %110 = add i32 %109, 1
  store i32 %110, ptr %3, align 4, !tbaa !9
  br label %50, !llvm.loop !23

111:                                              ; preds = %50
  %112 = load double, ptr %4, align 8, !tbaa !16
  %113 = load double, ptr %5, align 8, !tbaa !16
  %114 = fdiv double %112, %113
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.firdespm_s, ptr %115, i32 0, i32 19
  store double %114, ptr %116, align 8, !tbaa !24
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %169, %111
  %118 = load i32, ptr %3, align 4, !tbaa !9
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.firdespm_s, ptr %119, i32 0, i32 3
  %121 = load i32, ptr %120, align 4, !tbaa !11
  %122 = add i32 %121, 1
  %123 = icmp ult i32 %118, %122
  br i1 %123, label %124, label %172

124:                                              ; preds = %117
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.firdespm_s, ptr %125, i32 0, i32 13
  %127 = load ptr, ptr %126, align 8, !tbaa !21
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.firdespm_s, ptr %128, i32 0, i32 20
  %130 = load ptr, ptr %129, align 8, !tbaa !15
  %131 = load i32, ptr %3, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %130, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %127, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !16
  %138 = load i32, ptr %3, align 4, !tbaa !9
  %139 = urem i32 %138, 2
  %140 = icmp ne i32 %139, 0
  %141 = zext i1 %140 to i64
  %142 = select i1 %140, i32 -1, i32 1
  %143 = sitofp i32 %142 to double
  %144 = load ptr, ptr %2, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.firdespm_s, ptr %144, i32 0, i32 19
  %146 = load double, ptr %145, align 8, !tbaa !24
  %147 = fmul double %143, %146
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.firdespm_s, ptr %148, i32 0, i32 14
  %150 = load ptr, ptr %149, align 8, !tbaa !22
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.firdespm_s, ptr %151, i32 0, i32 20
  %153 = load ptr, ptr %152, align 8, !tbaa !15
  %154 = load i32, ptr %3, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %153, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %150, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !16
  %161 = fdiv double %147, %160
  %162 = fsub double %137, %161
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.firdespm_s, ptr %163, i32 0, i32 18
  %165 = load ptr, ptr %164, align 8, !tbaa !25
  %166 = load i32, ptr %3, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds double, ptr %165, i64 %167
  store double %162, ptr %168, align 8, !tbaa !16
  br label %169

169:                                              ; preds = %124
  %170 = load i32, ptr %3, align 4, !tbaa !9
  %171 = add i32 %170, 1
  store i32 %171, ptr %3, align 4, !tbaa !9
  br label %117, !llvm.loop !26

172:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret i32 0
}

; Function Attrs: nounwind
declare double @cos(double noundef) #3

declare i32 @poly_fit_lagrange_barycentric(ptr noundef, i32 noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #4 = { "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 }

!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 12}
!12 = !{!"firdespm_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !13, i64 120, !6, i64 128, !10, i64 136, !6, i64 144, !6, i64 152}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !6, i64 64}
!15 = !{!12, !6, i64 128}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !6, i64 96}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !6, i64 104}
!21 = !{!12, !6, i64 72}
!22 = !{!12, !6, i64 80}
!23 = distinct !{!23, !19}
!24 = !{!12, !13, i64 120}
!25 = !{!12, !6, i64 112}
!26 = distinct !{!26, !19}


; 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: nounwind uwtable
define dso_local noundef i32 @firdespm_compute_interp(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 12
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %.not62 = icmp eq i32 %3, -1
  br i1 %.not62, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %1
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 96
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !12
  br label %._crit_edge

.lr.ph:                                           ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  %5 = getelementptr inbounds i8, ptr %0, i64 128
  %6 = getelementptr inbounds i8, ptr %0, i64 96
  br label %7

7:                                                ; preds = %.lr.ph, %7
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %7 ]
  %8 = load ptr, ptr %4, align 8, !tbaa !13
  %9 = load ptr, ptr %5, align 8, !tbaa !14
  %10 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %11 = load i32, ptr %10, align 4, !tbaa !15
  %12 = zext i32 %11 to i64
  %13 = getelementptr inbounds double, ptr %8, i64 %12
  %14 = load double, ptr %13, align 8, !tbaa !16
  %15 = fmul double %14, 0x401921FB54442D18
  %16 = tail call double @cos(double noundef %15) #4
  %17 = load ptr, ptr %6, align 8, !tbaa !12
  %18 = getelementptr inbounds double, ptr %17, i64 %indvars.iv
  store double %16, ptr %18, align 8, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = add i32 %19, 1
  %21 = zext i32 %20 to i64
  %22 = icmp ult i64 %indvars.iv.next, %21
  br i1 %22, label %7, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %7, %.._crit_edge_crit_edge
  %23 = phi ptr [ %.pre, %.._crit_edge_crit_edge ], [ %17, %7 ]
  %.lcssa46 = phi i32 [ 0, %.._crit_edge_crit_edge ], [ %20, %7 ]
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = load ptr, ptr %24, align 8, !tbaa !19
  %26 = tail call i32 @poly_fit_lagrange_barycentric(ptr noundef %23, i32 noundef %.lcssa46, ptr noundef %25) #4
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = add i32 %27, 1
  %.not63 = icmp eq i32 %28, 0
  br i1 %.not63, label %._crit_edge54.thread, label %.lr.ph53

._crit_edge54.thread:                             ; preds = %._crit_edge
  %29 = getelementptr inbounds i8, ptr %0, i64 120
  store double 0x7FF8000000000000, ptr %29, align 8, !tbaa !20
  br label %._crit_edge61

.lr.ph53:                                         ; preds = %._crit_edge
  %30 = load ptr, ptr %24, align 8, !tbaa !19
  %31 = getelementptr inbounds i8, ptr %0, i64 72
  %32 = load ptr, ptr %31, align 8, !tbaa !21
  %33 = getelementptr inbounds i8, ptr %0, i64 128
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = getelementptr inbounds i8, ptr %0, i64 80
  %36 = load ptr, ptr %35, align 8, !tbaa !22
  %wide.trip.count = zext i32 %28 to i64
  br label %37

37:                                               ; preds = %.lr.ph53, %37
  %indvars.iv68 = phi i64 [ 0, %.lr.ph53 ], [ %indvars.iv.next69, %37 ]
  %38 = phi <2 x double> [ zeroinitializer, %.lr.ph53 ], [ %55, %37 ]
  %39 = getelementptr inbounds double, ptr %30, i64 %indvars.iv68
  %40 = load double, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv68
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %32, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds double, ptr %36, i64 %43
  %47 = load double, ptr %46, align 8, !tbaa !16
  %48 = fdiv double %40, %47
  %49 = and i64 %indvars.iv68, 1
  %.not45 = icmp eq i64 %49, 0
  %50 = select i1 %.not45, double 1.000000e+00, double -1.000000e+00
  %51 = insertelement <2 x double> poison, double %48, i64 0
  %52 = insertelement <2 x double> %51, double %40, i64 1
  %53 = insertelement <2 x double> poison, double %50, i64 0
  %54 = insertelement <2 x double> %53, double %45, i64 1
  %55 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %52, <2 x double> %54, <2 x double> %38)
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge54, label %37, !llvm.loop !23

._crit_edge54:                                    ; preds = %37
  %56 = extractelement <2 x double> %55, i64 0
  %57 = extractelement <2 x double> %55, i64 1
  %58 = fdiv double %57, %56
  %59 = getelementptr inbounds i8, ptr %0, i64 120
  store double %58, ptr %59, align 8, !tbaa !20
  br i1 %.not63, label %._crit_edge61, label %.lr.ph60

.lr.ph60:                                         ; preds = %._crit_edge54
  %60 = getelementptr inbounds i8, ptr %0, i64 72
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  %62 = getelementptr inbounds i8, ptr %0, i64 128
  %63 = load ptr, ptr %62, align 8, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %0, i64 80
  %65 = load ptr, ptr %64, align 8, !tbaa !22
  %66 = getelementptr inbounds i8, ptr %0, i64 112
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %wide.trip.count74 = zext i32 %28 to i64
  br label %68

68:                                               ; preds = %.lr.ph60, %68
  %indvars.iv71 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next72, %68 ]
  %69 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv71
  %70 = load i32, ptr %69, align 4, !tbaa !15
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds double, ptr %61, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !16
  %74 = and i64 %indvars.iv71, 1
  %.not = icmp eq i64 %74, 0
  %75 = load double, ptr %59, align 8, !tbaa !20
  %76 = fneg double %75
  %77 = select i1 %.not, double %75, double %76
  %78 = getelementptr inbounds double, ptr %65, i64 %71
  %79 = load double, ptr %78, align 8, !tbaa !16
  %80 = fdiv double %77, %79
  %81 = fsub double %73, %80
  %82 = getelementptr inbounds double, ptr %67, i64 %indvars.iv71
  store double %81, ptr %82, align 8, !tbaa !16
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count74
  br i1 %exitcond75.not, label %._crit_edge61, label %68, !llvm.loop !25

._crit_edge61:                                    ; preds = %68, %._crit_edge54.thread, %._crit_edge54
  ret i32 0
}

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

declare i32 @poly_fit_lagrange_barycentric(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { 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 #1 = { 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 #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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !7, i64 12}
!6 = !{!"firdespm_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !11, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !10, i64 96}
!13 = !{!6, !10, i64 64}
!14 = !{!6, !10, i64 128}
!15 = !{!7, !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !10, i64 104}
!20 = !{!6, !11, i64 120}
!21 = !{!6, !10, i64 72}
!22 = !{!6, !10, i64 80}
!23 = distinct !{!23, !18}
!24 = !{!6, !10, i64 112}
!25 = distinct !{!25, !18}


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