; LLVM IR from sp-nitech/SPTK :: src/conversion (mel_generalized_line_spectral_pairs_to_spectrum)

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

%"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum" = type <{ ptr, i32, [4 x i8], double, double, i32, i8, [3 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk41MelGeneralizedLineSpectralPairsToSpectrum3RunERKSt6vectorIdSaIdEEPS3_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) #0 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8
  %26 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 6
  %27 = load i8, ptr %26, align 4, !tbaa !9, !range !14, !noundef !15
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %40

29:                                               ; preds = %3
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !16
  %34 = add nsw i32 %33, 1
  %35 = sext i32 %34 to i64
  %36 = icmp ne i64 %31, %35
  br i1 %36, label %40, label %37

37:                                               ; preds = %29
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = icmp eq ptr null, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %37, %29, %3
  store i1 false, ptr %4, align 1
  br label %190

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %42 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 5
  %43 = load i32, ptr %42, align 8, !tbaa !17
  %44 = sdiv i32 %43, 2
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %8, align 4, !tbaa !18
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = load i32, ptr %8, align 4, !tbaa !18
  %49 = sext i32 %48 to i64
  %50 = icmp ne i64 %47, %49
  br i1 %50, label %51, label %55

51:                                               ; preds = %41
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !18
  %54 = sext i32 %53 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54)
  br label %55

55:                                               ; preds = %51, %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef 0) #6
  store ptr %57, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef 0) #6
  store ptr %59, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %60 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !16
  %62 = call noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %61)
  %63 = xor i1 %62, true
  %64 = zext i1 %63 to i8
  store i8 %64, ptr %11, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 0
  %67 = load double, ptr %66, align 8, !tbaa !20
  %68 = call noundef double @_ZN4sptk8FloorLogEd(double noundef %67)
  store double %68, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %69 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 4
  %70 = load double, ptr %69, align 8, !tbaa !21
  %71 = fdiv double 5.000000e-01, %70
  store double %71, ptr %13, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %72 = load i8, ptr %11, align 1, !tbaa !19, !range !14, !noundef !15
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %80

74:                                               ; preds = %55
  %75 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !16
  %77 = sub nsw i32 %76, 1
  %78 = sitofp i32 %77 to double
  %79 = fmul double %78, 0x3FE62E42FEFA39EC
  br label %85

80:                                               ; preds = %55
  %81 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !16
  %83 = sitofp i32 %82 to double
  %84 = fmul double %83, 0x3FE62E42FEFA39EC
  br label %85

85:                                               ; preds = %80, %74
  %86 = phi double [ %79, %74 ], [ %84, %80 ]
  store double %86, ptr %14, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %87 = load i32, ptr %8, align 4, !tbaa !18
  %88 = sub nsw i32 %87, 1
  %89 = sitofp i32 %88 to double
  %90 = fdiv double 0x400921FB54442D18, %89
  store double %90, ptr %15, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 0.000000e+00, ptr %16, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !18
  br label %91

91:                                               ; preds = %183, %85
  %92 = load i32, ptr %17, align 4, !tbaa !18
  %93 = load i32, ptr %8, align 4, !tbaa !18
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %189

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store double 0.000000e+00, ptr %19, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 0.000000e+00, ptr %20, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %97 = load double, ptr %16, align 8, !tbaa !20
  %98 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 3
  %99 = load double, ptr %98, align 8, !tbaa !22
  %100 = call noundef double @_ZN4sptk4WarpEdd(double noundef %97, double noundef %99)
  store double %100, ptr %21, align 8, !tbaa !20
  %101 = load i8, ptr %11, align 1, !tbaa !19, !range !14, !noundef !15
  %102 = trunc i8 %101 to i1
  br i1 %102, label %103, label %109

103:                                              ; preds = %96
  %104 = load double, ptr %21, align 8, !tbaa !20
  %105 = call double @sin(double noundef %104) #6
  %106 = call noundef double @_ZN4sptk8FloorLogEd(double noundef %105)
  %107 = load double, ptr %19, align 8, !tbaa !20
  %108 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %106, double %107)
  store double %108, ptr %19, align 8, !tbaa !20
  br label %122

109:                                              ; preds = %96
  %110 = load double, ptr %21, align 8, !tbaa !20
  %111 = fmul double %110, 5.000000e-01
  %112 = call double @sin(double noundef %111) #6
  %113 = call noundef double @_ZN4sptk8FloorLogEd(double noundef %112)
  %114 = load double, ptr %19, align 8, !tbaa !20
  %115 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %113, double %114)
  store double %115, ptr %19, align 8, !tbaa !20
  %116 = load double, ptr %21, align 8, !tbaa !20
  %117 = fmul double %116, 5.000000e-01
  %118 = call double @cos(double noundef %117) #6
  %119 = call noundef double @_ZN4sptk8FloorLogEd(double noundef %118)
  %120 = load double, ptr %20, align 8, !tbaa !20
  %121 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %119, double %120)
  store double %121, ptr %20, align 8, !tbaa !20
  br label %122

122:                                              ; preds = %109, %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %123 = load double, ptr %21, align 8, !tbaa !20
  %124 = call double @cos(double noundef %123) #6
  store double %124, ptr %22, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 2, ptr %23, align 4, !tbaa !18
  br label %125

125:                                              ; preds = %144, %122
  %126 = load i32, ptr %23, align 4, !tbaa !18
  %127 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 1
  %128 = load i32, ptr %127, align 8, !tbaa !16
  %129 = icmp sle i32 %126, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %125
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %147

131:                                              ; preds = %125
  %132 = load double, ptr %22, align 8, !tbaa !20
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load i32, ptr %23, align 4, !tbaa !18
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !20
  %138 = call double @cos(double noundef %137) #6
  %139 = fsub double %132, %138
  %140 = call double @llvm.fabs.f64(double %139)
  %141 = call noundef double @_ZN4sptk8FloorLogEd(double noundef %140)
  %142 = load double, ptr %19, align 8, !tbaa !20
  %143 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %141, double %142)
  store double %143, ptr %19, align 8, !tbaa !20
  br label %144

144:                                              ; preds = %131
  %145 = load i32, ptr %23, align 4, !tbaa !18
  %146 = add nsw i32 %145, 2
  store i32 %146, ptr %23, align 4, !tbaa !18
  br label %125, !llvm.loop !23

147:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 1, ptr %24, align 4, !tbaa !18
  br label %148

148:                                              ; preds = %167, %147
  %149 = load i32, ptr %24, align 4, !tbaa !18
  %150 = getelementptr inbounds %"class.sptk::MelGeneralizedLineSpectralPairsToSpectrum", ptr %25, i32 0, i32 1
  %151 = load i32, ptr %150, align 8, !tbaa !16
  %152 = icmp sle i32 %149, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %148
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %170

154:                                              ; preds = %148
  %155 = load double, ptr %22, align 8, !tbaa !20
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = load i32, ptr %24, align 4, !tbaa !18
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !20
  %161 = call double @cos(double noundef %160) #6
  %162 = fsub double %155, %161
  %163 = call double @llvm.fabs.f64(double %162)
  %164 = call noundef double @_ZN4sptk8FloorLogEd(double noundef %163)
  %165 = load double, ptr %20, align 8, !tbaa !20
  %166 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %164, double %165)
  store double %166, ptr %20, align 8, !tbaa !20
  br label %167

167:                                              ; preds = %154
  %168 = load i32, ptr %24, align 4, !tbaa !18
  %169 = add nsw i32 %168, 2
  store i32 %169, ptr %24, align 4, !tbaa !18
  br label %148, !llvm.loop !25

170:                                              ; preds = %153
  %171 = load double, ptr %12, align 8, !tbaa !20
  %172 = load double, ptr %13, align 8, !tbaa !20
  %173 = load double, ptr %14, align 8, !tbaa !20
  %174 = load double, ptr %19, align 8, !tbaa !20
  %175 = load double, ptr %20, align 8, !tbaa !20
  %176 = call noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef %174, double noundef %175)
  %177 = fadd double %173, %176
  %178 = call double @llvm.fmuladd.f64(double %172, double %177, double %171)
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = load i32, ptr %17, align 4, !tbaa !18
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %179, i64 %181
  store double %178, ptr %182, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %183

183:                                              ; preds = %170
  %184 = load i32, ptr %17, align 4, !tbaa !18
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %17, align 4, !tbaa !18
  %186 = load double, ptr %15, align 8, !tbaa !20
  %187 = load double, ptr %16, align 8, !tbaa !20
  %188 = fadd double %187, %186
  store double %188, ptr %16, align 8, !tbaa !20
  br label %91, !llvm.loop !26

189:                                              ; preds = %95
  store i1 true, ptr %4, align 1
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %190

190:                                              ; preds = %189, %40
  %191 = load i1, ptr %4, align 1
  ret i1 %191
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) #3

declare noundef double @_ZN4sptk8FloorLogEd(double noundef) #3

declare noundef double @_ZN4sptk4WarpEdd(double noundef, double noundef) #3

; Function Attrs: nounwind
declare double @sin(double noundef) #4

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

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

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

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

declare noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef, double noundef) #3

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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 36}
!10 = !{!"_ZTSN4sptk41MelGeneralizedLineSpectralPairsToSpectrumE", !11, i64 8, !12, i64 16, !12, i64 24, !11, i64 32, !13, i64 36}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !11, i64 32}
!18 = !{!11, !11, i64 0}
!19 = !{!13, !13, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !12, i64 24}
!22 = !{!10, !12, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


; 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
define dso_local noundef zeroext i1 @_ZNK4sptk41MelGeneralizedLineSpectralPairsToSpectrum3RunERKSt6vectorIdSaIdEEPS3_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 36
  %5 = load i8, ptr %4, align 4, !tbaa !5, !range !12, !noundef !13
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %7, label %.loopexit

7:                                                ; preds = %3
  %8 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !14
  %11 = add nsw i32 %10, 1
  %12 = sext i32 %11 to i64
  %13 = icmp ne i64 %8, %12
  %14 = icmp eq ptr %2, null
  %or.cond = or i1 %14, %13
  br i1 %or.cond, label %.loopexit, label %15

15:                                               ; preds = %7
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  %17 = load i32, ptr %16, align 8, !tbaa !15
  %18 = sdiv i32 %17, 2
  %19 = add nsw i32 %18, 1
  %20 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %21 = sext i32 %19 to i64
  %.not = icmp eq i64 %20, %21
  br i1 %.not, label %23, label %22

22:                                               ; preds = %15
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %21)
  br label %23

23:                                               ; preds = %22, %15
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #6
  %26 = load i32, ptr %9, align 8, !tbaa !14
  %27 = tail call noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %26)
  %28 = load double, ptr %24, align 8, !tbaa !16
  %29 = tail call noundef double @_ZN4sptk8FloorLogEd(double noundef %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load double, ptr %30, align 8, !tbaa !17
  %32 = fdiv double 5.000000e-01, %31
  %33 = load i32, ptr %9, align 8
  %not. = xor i1 %27, true
  %34 = sext i1 %not. to i32
  %.in.in = add nsw i32 %33, %34
  %.in = sitofp i32 %.in.in to double
  %35 = fmul double %.in, 0x3FE62E42FEFA39EC
  %36 = sitofp i32 %18 to double
  %37 = fdiv double 0x400921FB54442D18, %36
  %.not5566 = icmp slt i32 %17, -1
  br i1 %.not5566, label %.loopexit, label %.lr.ph70

.lr.ph70:                                         ; preds = %23
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %wide.trip.count = zext i32 %19 to i64
  br label %39

39:                                               ; preds = %.lr.ph70, %._crit_edge
  %indvars.iv76 = phi i64 [ 0, %.lr.ph70 ], [ %indvars.iv.next77, %._crit_edge ]
  %.04868 = phi double [ 0.000000e+00, %.lr.ph70 ], [ %76, %._crit_edge ]
  %40 = load double, ptr %38, align 8, !tbaa !18
  %41 = tail call noundef double @_ZN4sptk4WarpEdd(double noundef %.04868, double noundef %40)
  br i1 %27, label %47, label %42

42:                                               ; preds = %39
  %43 = tail call double @sin(double noundef %41) #6
  %44 = tail call noundef double @_ZN4sptk8FloorLogEd(double noundef %43)
  %45 = tail call double @llvm.fmuladd.f64(double %44, double 2.000000e+00, double 0.000000e+00)
  %46 = insertelement <2 x double> <double poison, double 0.000000e+00>, double %45, i64 0
  br label %56

47:                                               ; preds = %39
  %48 = fmul double %41, 5.000000e-01
  %49 = tail call double @sin(double noundef %48) #6
  %50 = tail call noundef double @_ZN4sptk8FloorLogEd(double noundef %49)
  %51 = tail call double @cos(double noundef %48) #6
  %52 = tail call noundef double @_ZN4sptk8FloorLogEd(double noundef %51)
  %53 = insertelement <2 x double> poison, double %50, i64 0
  %54 = insertelement <2 x double> %53, double %52, i64 1
  %55 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %54, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> zeroinitializer)
  br label %56

56:                                               ; preds = %47, %42
  %57 = phi <2 x double> [ %46, %42 ], [ %55, %47 ]
  %58 = tail call double @cos(double noundef %41) #6
  %59 = load i32, ptr %9, align 8, !tbaa !14
  %.not5658 = icmp slt i32 %59, 2
  %60 = extractelement <2 x double> %57, i64 0
  br i1 %.not5658, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %56
  %61 = phi i32 [ %59, %56 ], [ %70, %.lr.ph ]
  %.151.lcssa = phi double [ %60, %56 ], [ %69, %.lr.ph ]
  %.not5761 = icmp slt i32 %61, 1
  %62 = extractelement <2 x double> %57, i64 1
  br i1 %.not5761, label %._crit_edge, label %.lr.ph64

.lr.ph:                                           ; preds = %56, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 2, %56 ]
  %.15159 = phi double [ %69, %.lr.ph ], [ %60, %56 ]
  %63 = getelementptr inbounds double, ptr %24, i64 %indvars.iv
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = tail call double @cos(double noundef %64) #6
  %66 = fsub double %58, %65
  %67 = tail call double @llvm.fabs.f64(double %66)
  %68 = tail call noundef double @_ZN4sptk8FloorLogEd(double noundef %67)
  %69 = tail call double @llvm.fmuladd.f64(double %68, double 2.000000e+00, double %.15159)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %70 = load i32, ptr %9, align 8, !tbaa !14
  %71 = trunc nuw i64 %indvars.iv.next to i32
  %.not56 = icmp slt i32 %70, %71
  br i1 %.not56, label %.preheader, label %.lr.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph64, %.preheader
  %.1.lcssa = phi double [ %62, %.preheader ], [ %83, %.lr.ph64 ]
  %72 = tail call noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef %.151.lcssa, double noundef %.1.lcssa)
  %73 = fadd double %35, %72
  %74 = tail call double @llvm.fmuladd.f64(double %32, double %73, double %29)
  %75 = getelementptr inbounds double, ptr %25, i64 %indvars.iv76
  store double %74, ptr %75, align 8, !tbaa !16
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %76 = fadd double %37, %.04868
  %exitcond.not = icmp eq i64 %indvars.iv.next77, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %39, !llvm.loop !21

.lr.ph64:                                         ; preds = %.preheader, %.lr.ph64
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %.lr.ph64 ], [ 1, %.preheader ]
  %.162 = phi double [ %83, %.lr.ph64 ], [ %62, %.preheader ]
  %77 = getelementptr inbounds double, ptr %24, i64 %indvars.iv73
  %78 = load double, ptr %77, align 8, !tbaa !16
  %79 = tail call double @cos(double noundef %78) #6
  %80 = fsub double %58, %79
  %81 = tail call double @llvm.fabs.f64(double %80)
  %82 = tail call noundef double @_ZN4sptk8FloorLogEd(double noundef %81)
  %83 = tail call double @llvm.fmuladd.f64(double %82, double 2.000000e+00, double %.162)
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 2
  %84 = load i32, ptr %9, align 8, !tbaa !14
  %85 = trunc nuw i64 %indvars.iv.next74 to i32
  %.not57 = icmp slt i32 %84, %85
  br i1 %.not57, label %._crit_edge, label %.lr.ph64, !llvm.loop !22

.loopexit:                                        ; preds = %._crit_edge, %23, %3, %7
  %.047 = phi i1 [ false, %7 ], [ false, %3 ], [ true, %23 ], [ true, %._crit_edge ]
  ret i1 %.047
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) local_unnamed_addr #2

declare noundef double @_ZN4sptk8FloorLogEd(double noundef) local_unnamed_addr #2

declare noundef double @_ZN4sptk4WarpEdd(double noundef, double noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

declare noundef double @_ZN4sptk13AddInLogSpaceEdd(double noundef, double 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>) #5

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 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 #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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 36}
!6 = !{!"_ZTSN4sptk41MelGeneralizedLineSpectralPairsToSpectrumE", !7, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !11, i64 36}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !7, i64 32}
!16 = !{!10, !10, i64 0}
!17 = !{!6, !10, i64 24}
!18 = !{!6, !10, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


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