; LLVM IR from sp-nitech/SPTK :: src/check (linear_predictive_coefficients_stability_check)

; 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::LinearPredictiveCoefficientsStabilityCheck" = type <{ ptr, i32, [4 x i8], double, %"class.sptk::LinearPredictiveCoefficientsToParcorCoefficients", %"class.sptk::ParcorCoefficientsToLinearPredictiveCoefficients", i8, [7 x i8] }>
%"class.sptk::LinearPredictiveCoefficientsToParcorCoefficients" = type <{ ptr, i32, [4 x i8], double, i8, [7 x i8] }>
%"class.sptk::ParcorCoefficientsToLinearPredictiveCoefficients" = type <{ ptr, i32, i8, [3 x i8] }>
%"class.sptk::LinearPredictiveCoefficientsStabilityCheck::Buffer" = type { ptr, %"class.sptk::LinearPredictiveCoefficientsToParcorCoefficients::Buffer", %"class.sptk::ParcorCoefficientsToLinearPredictiveCoefficients::Buffer", %"class.std::vector" }
%"class.sptk::LinearPredictiveCoefficientsToParcorCoefficients::Buffer" = type { ptr, %"class.std::vector" }
%"class.sptk::ParcorCoefficientsToLinearPredictiveCoefficients::Buffer" = type { ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk42LinearPredictiveCoefficientsStabilityCheck3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %16 = load ptr, ptr %7, align 8
  %17 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 6
  %18 = load i8, ptr %17, align 8, !tbaa !9, !range !16, !noundef !17
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %34

20:                                               ; preds = %5
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %23 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %25 = add nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = icmp ne i64 %22, %26
  br i1 %27, label %34, label %28

28:                                               ; preds = %20
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = icmp eq ptr null, %29
  br i1 %30, label %34, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = icmp eq ptr null, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %31, %28, %20, %5
  store i1 false, ptr %6, align 1
  br label %138

35:                                               ; preds = %31
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = icmp ne ptr null, %36
  br i1 %37, label %38, label %52

38:                                               ; preds = %35
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #5
  %41 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !18
  %43 = add nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = icmp ne i64 %40, %44
  br i1 %45, label %46, label %52

46:                                               ; preds = %38
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !18
  %50 = add nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %51)
  br label %52

52:                                               ; preds = %46, %38, %35
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  store i8 1, ptr %53, align 1, !tbaa !19
  %54 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !18
  %56 = icmp eq i32 0, %55
  br i1 %56, label %57, label %67

57:                                               ; preds = %52
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = icmp ne ptr null, %58
  br i1 %59, label %60, label %66

60:                                               ; preds = %57
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef 0) #5
  %63 = load double, ptr %62, align 8, !tbaa !20
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef 0) #5
  store double %63, ptr %65, align 8, !tbaa !20
  br label %66

66:                                               ; preds = %60, %57
  store i1 true, ptr %6, align 1
  br label %138

67:                                               ; preds = %52
  %68 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 4
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck::Buffer", ptr %70, i32 0, i32 3
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck::Buffer", ptr %73, i32 0, i32 1
  %75 = call noundef zeroext i1 @_ZNK4sptk48LinearPredictiveCoefficientsToParcorCoefficients3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(25) %68, ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef %71, ptr noundef %72, ptr noundef %74)
  br i1 %75, label %77, label %76

76:                                               ; preds = %67
  store i1 false, ptr %6, align 1
  br label %138

77:                                               ; preds = %67
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = icmp ne ptr null, %78
  br i1 %79, label %80, label %137

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck::Buffer", ptr %81, i32 0, i32 3
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 0) #5
  store ptr %83, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %84 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 3
  %85 = load double, ptr %84, align 8, !tbaa !21
  %86 = fsub double 1.000000e+00, %85
  store double %86, ptr %13, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !22
  br label %87

87:                                               ; preds = %121, %80
  %88 = load i32, ptr %14, align 4, !tbaa !22
  %89 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !18
  %91 = icmp sle i32 %88, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %124

93:                                               ; preds = %87
  %94 = load double, ptr %13, align 8, !tbaa !20
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load i32, ptr %14, align 4, !tbaa !22
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !20
  %100 = call double @llvm.fabs.f64(double %99)
  %101 = fcmp olt double %94, %100
  br i1 %101, label %102, label %120

102:                                              ; preds = %93
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load i32, ptr %14, align 4, !tbaa !22
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %103, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !20
  %108 = fcmp olt double 0.000000e+00, %107
  br i1 %108, label %109, label %111

109:                                              ; preds = %102
  %110 = load double, ptr %13, align 8, !tbaa !20
  br label %114

111:                                              ; preds = %102
  %112 = load double, ptr %13, align 8, !tbaa !20
  %113 = fneg double %112
  br label %114

114:                                              ; preds = %111, %109
  %115 = phi double [ %110, %109 ], [ %113, %111 ]
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load i32, ptr %14, align 4, !tbaa !22
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  store double %115, ptr %119, align 8, !tbaa !20
  br label %120

120:                                              ; preds = %114, %93
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %14, align 4, !tbaa !22
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %14, align 4, !tbaa !22
  br label %87, !llvm.loop !23

124:                                              ; preds = %92
  %125 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck", ptr %16, i32 0, i32 5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck::Buffer", ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.sptk::LinearPredictiveCoefficientsStabilityCheck::Buffer", ptr %129, i32 0, i32 2
  %131 = call noundef zeroext i1 @_ZNK4sptk48ParcorCoefficientsToLinearPredictiveCoefficients3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(13) %125, ptr noundef nonnull align 8 dereferenceable(24) %127, ptr noundef %128, ptr noundef %130)
  br i1 %131, label %133, label %132

132:                                              ; preds = %124
  store i1 false, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %134

133:                                              ; preds = %124
  store i32 0, ptr %15, align 4
  br label %134

134:                                              ; preds = %133, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %135 = load i32, ptr %15, align 4
  switch i32 %135, label %140 [
    i32 0, label %136
    i32 1, label %138
  ]

136:                                              ; preds = %134
  br label %137

137:                                              ; preds = %136, %77
  store i1 true, ptr %6, align 1
  br label %138

138:                                              ; preds = %137, %134, %76, %66, %34
  %139 = load i1, ptr %6, align 1
  ret i1 %139

140:                                              ; preds = %134
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 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 @_ZNK4sptk48LinearPredictiveCoefficientsToParcorCoefficients3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

declare noundef zeroext i1 @_ZNK4sptk48ParcorCoefficientsToLinearPredictiveCoefficients3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(13), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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++ TBAA"}
!9 = !{!10, !14, i64 72}
!10 = !{!"_ZTSN4sptk42LinearPredictiveCoefficientsStabilityCheckE", !11, i64 8, !12, i64 16, !13, i64 24, !15, i64 56, !14, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTSN4sptk48LinearPredictiveCoefficientsToParcorCoefficientsE", !11, i64 8, !12, i64 16, !14, i64 24}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN4sptk48ParcorCoefficientsToLinearPredictiveCoefficientsE", !11, i64 8, !14, i64 12}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!10, !11, i64 8}
!19 = !{!14, !14, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !12, i64 16}
!22 = !{!11, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk42LinearPredictiveCoefficientsStabilityCheck3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 align 2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 72
  %7 = load i8, ptr %6, align 8, !tbaa !5, !range !14, !noundef !15
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %9, label %93

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

18:                                               ; preds = %9
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %24, label %19

19:                                               ; preds = %18
  %20 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %21 = load i32, ptr %11, align 8, !tbaa !16
  %22 = add nsw i32 %21, 1
  %23 = sext i32 %22 to i64
  %.not43 = icmp eq i64 %20, %23
  br i1 %.not43, label %.thread, label %.thread48

24:                                               ; preds = %18
  store i8 1, ptr %3, align 1, !tbaa !17
  %25 = icmp eq i32 %12, 0
  br i1 %25, label %93, label %31

.thread48:                                        ; preds = %19
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %23)
  %.pr49 = load i32, ptr %11, align 8, !tbaa !16
  store i8 1, ptr %3, align 1, !tbaa !17
  %26 = icmp eq i32 %.pr49, 0
  br i1 %26, label %.thread45, label %.thread51

.thread:                                          ; preds = %19
  store i8 1, ptr %3, align 1, !tbaa !17
  %27 = icmp eq i32 %21, 0
  br i1 %27, label %.thread45, label %.thread46

.thread45:                                        ; preds = %.thread48, %.thread
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #5
  %29 = load double, ptr %28, align 8, !tbaa !18
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #5
  store double %29, ptr %30, align 8, !tbaa !18
  br label %93

31:                                               ; preds = %24
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = getelementptr inbounds i8, ptr %4, i64 72
  %34 = getelementptr inbounds i8, ptr %4, i64 8
  %35 = tail call noundef zeroext i1 @_ZNK4sptk48LinearPredictiveCoefficientsToParcorCoefficients3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(25) %32, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %33, ptr noundef nonnull %3, ptr noundef nonnull %34)
  br i1 %35, label %92, label %93

.thread51:                                        ; preds = %.thread48
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = getelementptr inbounds i8, ptr %4, i64 72
  %38 = getelementptr inbounds i8, ptr %4, i64 8
  %39 = tail call noundef zeroext i1 @_ZNK4sptk48LinearPredictiveCoefficientsToParcorCoefficients3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(25) %36, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %37, ptr noundef nonnull %3, ptr noundef nonnull %38)
  br i1 %39, label %.thread47, label %93

.thread46:                                        ; preds = %.thread
  %40 = getelementptr inbounds i8, ptr %0, i64 24
  %41 = getelementptr inbounds i8, ptr %4, i64 72
  %42 = getelementptr inbounds i8, ptr %4, i64 8
  %43 = tail call noundef zeroext i1 @_ZNK4sptk48LinearPredictiveCoefficientsToParcorCoefficients3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(25) %40, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull %41, ptr noundef nonnull %3, ptr noundef nonnull %42)
  br i1 %43, label %.thread47, label %93

.thread47:                                        ; preds = %.thread51, %.thread46
  %44 = phi ptr [ %41, %.thread46 ], [ %37, %.thread51 ]
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #5
  %46 = getelementptr inbounds i8, ptr %0, i64 16
  %47 = load double, ptr %46, align 8, !tbaa !19
  %48 = fsub double 1.000000e+00, %47
  %49 = load i32, ptr %11, align 8, !tbaa !16
  %.not4453 = icmp slt i32 %49, 1
  br i1 %.not4453, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.thread47
  %50 = fneg double %48
  %51 = add nuw i32 %49, 1
  %wide.trip.count = zext i32 %51 to i64
  %52 = zext nneg i32 %49 to i64
  %min.iters.check = icmp ult i32 %49, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %52, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <2 x double> poison, double %48, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %invariant.gep = getelementptr i8, ptr %45, i64 32
  br label %vector.body

vector.body:                                      ; preds = %pred.store.continue62, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue62 ]
  %offset.idx = or disjoint i64 %index, 1
  %53 = or disjoint i64 %index, 3
  %54 = getelementptr inbounds double, ptr %45, i64 %offset.idx
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %wide.load = load <2 x double>, ptr %54, align 8, !tbaa !18
  %wide.load56 = load <2 x double>, ptr %55, align 8, !tbaa !18
  %56 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %wide.load)
  %57 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %wide.load56)
  %58 = fcmp olt <2 x double> %broadcast.splat, %56
  %59 = fcmp olt <2 x double> %broadcast.splat, %57
  %60 = extractelement <2 x i1> %58, i64 0
  br i1 %60, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %61 = extractelement <2 x double> %wide.load, i64 0
  %62 = fcmp ogt double %61, 0.000000e+00
  %63 = getelementptr inbounds double, ptr %45, i64 %offset.idx
  %64 = select i1 %62, double %48, double %50
  store double %64, ptr %63, align 8, !tbaa !18
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %65 = extractelement <2 x i1> %58, i64 1
  br i1 %65, label %pred.store.if57, label %pred.store.continue58

pred.store.if57:                                  ; preds = %pred.store.continue
  %66 = or disjoint i64 %index, 2
  %67 = extractelement <2 x double> %wide.load, i64 1
  %68 = fcmp ogt double %67, 0.000000e+00
  %69 = getelementptr inbounds double, ptr %45, i64 %66
  %70 = select i1 %68, double %48, double %50
  store double %70, ptr %69, align 8, !tbaa !18
  br label %pred.store.continue58

pred.store.continue58:                            ; preds = %pred.store.if57, %pred.store.continue
  %71 = extractelement <2 x i1> %59, i64 0
  br i1 %71, label %pred.store.if59, label %pred.store.continue60

pred.store.if59:                                  ; preds = %pred.store.continue58
  %72 = extractelement <2 x double> %wide.load56, i64 0
  %73 = fcmp ogt double %72, 0.000000e+00
  %74 = getelementptr inbounds double, ptr %45, i64 %53
  %75 = select i1 %73, double %48, double %50
  store double %75, ptr %74, align 8, !tbaa !18
  br label %pred.store.continue60

pred.store.continue60:                            ; preds = %pred.store.if59, %pred.store.continue58
  %76 = extractelement <2 x i1> %59, i64 1
  br i1 %76, label %pred.store.if61, label %pred.store.continue62

pred.store.if61:                                  ; preds = %pred.store.continue60
  %77 = extractelement <2 x double> %wide.load56, i64 1
  %78 = fcmp ogt double %77, 0.000000e+00
  %gep = getelementptr double, ptr %invariant.gep, i64 %index
  %79 = select i1 %78, double %48, double %50
  store double %79, ptr %gep, align 8, !tbaa !18
  br label %pred.store.continue62

pred.store.continue62:                            ; preds = %pred.store.if61, %pred.store.continue60
  %index.next = add nuw i64 %index, 4
  %80 = icmp eq i64 %index.next, %n.vec
  br i1 %80, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %pred.store.continue62
  %cmp.n = icmp eq i64 %n.vec, %52
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %91, %middle.block, %.thread47
  %81 = getelementptr inbounds i8, ptr %0, i64 56
  %82 = getelementptr inbounds i8, ptr %4, i64 40
  %83 = tail call noundef zeroext i1 @_ZNK4sptk48ParcorCoefficientsToLinearPredictiveCoefficients3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(13) %81, ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull %2, ptr noundef nonnull %82)
  br i1 %83, label %92, label %93

scalar.ph:                                        ; preds = %scalar.ph.preheader, %91
  %indvars.iv = phi i64 [ %indvars.iv.next, %91 ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %84 = getelementptr inbounds double, ptr %45, i64 %indvars.iv
  %85 = load double, ptr %84, align 8, !tbaa !18
  %86 = tail call double @llvm.fabs.f64(double %85)
  %87 = fcmp olt double %48, %86
  br i1 %87, label %88, label %91

88:                                               ; preds = %scalar.ph
  %89 = fcmp ogt double %85, 0.000000e+00
  %90 = select i1 %89, double %48, double %50
  store double %90, ptr %84, align 8, !tbaa !18
  br label %91

91:                                               ; preds = %scalar.ph, %88
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !24

92:                                               ; preds = %31, %._crit_edge
  br label %93

93:                                               ; preds = %.thread51, %24, %.thread46, %._crit_edge, %31, %.thread45, %5, %9, %92
  %.1 = phi i1 [ false, %._crit_edge ], [ true, %92 ], [ false, %9 ], [ false, %5 ], [ true, %.thread45 ], [ false, %31 ], [ false, %.thread46 ], [ true, %24 ], [ false, %.thread51 ]
  ret i1 %.1
}

; 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 @_ZNK4sptk48LinearPredictiveCoefficientsToParcorCoefficients3RunERKSt6vectorIdSaIdEEPS3_PbPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare noundef zeroext i1 @_ZNK4sptk48ParcorCoefficientsToLinearPredictiveCoefficients3RunERKSt6vectorIdSaIdEEPS3_PNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(13), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #2

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !12, i64 72}
!6 = !{!"_ZTSN4sptk42LinearPredictiveCoefficientsStabilityCheckE", !7, i64 8, !10, i64 16, !11, i64 24, !13, i64 56, !12, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"_ZTSN4sptk48LinearPredictiveCoefficientsToParcorCoefficientsE", !7, i64 8, !10, i64 16, !12, i64 24}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN4sptk48ParcorCoefficientsToLinearPredictiveCoefficientsE", !7, i64 8, !12, i64 12}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !7, i64 8}
!17 = !{!12, !12, i64 0}
!18 = !{!10, !10, i64 0}
!19 = !{!6, !10, i64 16}
!20 = distinct !{!20, !21, !22, !23}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !21, !23, !22}


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