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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.21 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [40 x i8], align 1

; 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
declare ptr @llvm.stacksave.p0() #1

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #2

declare void @liquid_autotest_passed(...) #2

declare ptr @firdecim_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) #2

declare i32 @firdecim_crcf_set_scale(ptr noundef, float noundef) #2

declare i32 @firdecim_crcf_get_scale(ptr noundef, ptr noundef) #2

declare i32 @firdecim_crcf_destroy(ptr noundef) #2

; 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 willreturn
declare void @llvm.stackrestore.p0(ptr) #1

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

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

; Function Attrs: nounwind
declare float @cosf(float noundef) #3

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

declare i32 @firdecim_crcf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) #2

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) #2

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @autotest_firdecim_copy() #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca float, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca { float, float }, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 4, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 12, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store float 0x3FD3333340000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load float, ptr %3, align 4, !tbaa !9
  %21 = call ptr @firdecim_crcf_create_prototype(i32 noundef 7, i32 noundef %18, i32 noundef %19, float noundef %20, float noundef 0.000000e+00)
  store ptr %21, ptr %4, align 8, !tbaa !11
  %22 = load ptr, ptr %4, align 8, !tbaa !11
  %23 = call i32 @firdecim_crcf_set_scale(ptr noundef %22, float noundef 0x3FBF9A6B60000000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = add i32 10, %24
  store i32 %25, ptr %5, align 4, !tbaa !5
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = mul i32 %26, %27
  %29 = zext i32 %28 to i64
  %30 = call ptr @llvm.stacksave.p0()
  store ptr %30, ptr %6, align 8
  %31 = alloca { float, float }, i64 %29, align 16
  store i64 %29, ptr %7, align 8
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = alloca { float, float }, i64 %33, align 16
  store i64 %33, ptr %8, align 8
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = zext i32 %35 to i64
  %37 = alloca { float, float }, i64 %36, align 16
  store i64 %36, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %77, %0
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = load i32, ptr %1, align 4, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = mul i32 %40, %41
  %43 = icmp ult i32 %39, %42
  br i1 %43, label %44, label %80

44:                                               ; preds = %38
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = uitofp i32 %45 to float
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = uitofp i32 %47 to float
  %49 = fmul float 0x3EE4F8B580000000, %48
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = uitofp i32 %50 to float
  %52 = fmul float %49, %51
  %53 = call float @llvm.fmuladd.f32(float 0x3FC99999A0000000, float %46, float %52)
  %54 = fpext float %53 to double
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = uitofp i32 %55 to float
  %57 = call float @cosf(float noundef %56) #6
  %58 = fpext float %57 to double
  %59 = call double @llvm.fmuladd.f64(double 1.000000e-01, double %58, double %54)
  %60 = fmul double 0.000000e+00, %59
  %61 = fmul double 1.000000e+00, %59
  %62 = fptrunc double %60 to float
  %63 = fptrunc double %61 to float
  %64 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %65 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %62, ptr %64, align 4
  store float %63, ptr %65, align 4
  %66 = load <2 x float>, ptr %11, align 4
  %67 = call <2 x float> @cexpf(<2 x float> noundef %66) #6
  store <2 x float> %67, ptr %12, align 4
  %68 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %69 = load float, ptr %68, align 4
  %70 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  %71 = load float, ptr %70, align 4
  %72 = load i32, ptr %10, align 4, !tbaa !5
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds { float, float }, ptr %31, i64 %73
  %75 = getelementptr inbounds { float, float }, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds { float, float }, ptr %74, i32 0, i32 1
  store float %69, ptr %75, align 8
  store float %71, ptr %76, align 4
  br label %77

77:                                               ; preds = %44
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = add i32 %78, 1
  store i32 %79, ptr %10, align 4, !tbaa !5
  br label %38, !llvm.loop !13

80:                                               ; preds = %38
  %81 = load ptr, ptr %4, align 8, !tbaa !11
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = call i32 @firdecim_crcf_execute_block(ptr noundef %81, ptr noundef %31, i32 noundef %82, ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %84 = load ptr, ptr %4, align 8, !tbaa !11
  %85 = call ptr @firdecim_crcf_copy(ptr noundef %84)
  store ptr %85, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store float 1.000000e+00, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store float 0.000000e+00, ptr %15, align 4, !tbaa !9
  %86 = load ptr, ptr %4, align 8, !tbaa !11
  %87 = call i32 @firdecim_crcf_get_scale(ptr noundef %86, ptr noundef %14)
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %93

89:                                               ; preds = %80
  %90 = load ptr, ptr %4, align 8, !tbaa !11
  %91 = call i32 @firdecim_crcf_get_scale(ptr noundef %90, ptr noundef %14)
  %92 = sitofp i32 %91 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 132, ptr noundef @.str.21, double noundef %92, ptr noundef @.str.3, ptr noundef @.str.15, double noundef 0.000000e+00)
  br label %94

93:                                               ; preds = %80
  call void (...) @liquid_autotest_passed()
  br label %94

94:                                               ; preds = %93, %89
  %95 = load ptr, ptr %13, align 8, !tbaa !11
  %96 = call i32 @firdecim_crcf_get_scale(ptr noundef %95, ptr noundef %15)
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %94
  %99 = load ptr, ptr %13, align 8, !tbaa !11
  %100 = call i32 @firdecim_crcf_get_scale(ptr noundef %99, ptr noundef %15)
  %101 = sitofp i32 %100 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 133, ptr noundef @.str.22, double noundef %101, ptr noundef @.str.3, ptr noundef @.str.15, double noundef 0.000000e+00)
  br label %103

102:                                              ; preds = %94
  call void (...) @liquid_autotest_passed()
  br label %103

103:                                              ; preds = %102, %98
  %104 = load float, ptr %14, align 4, !tbaa !9
  %105 = load float, ptr %15, align 4, !tbaa !9
  %106 = fcmp une float %104, %105
  br i1 %106, label %107, label %112

107:                                              ; preds = %103
  %108 = load float, ptr %14, align 4, !tbaa !9
  %109 = fpext float %108 to double
  %110 = load float, ptr %15, align 4, !tbaa !9
  %111 = fpext float %110 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 134, ptr noundef @.str.23, double noundef %109, ptr noundef @.str.3, ptr noundef @.str.24, double noundef %111)
  br label %113

112:                                              ; preds = %103
  call void (...) @liquid_autotest_passed()
  br label %113

113:                                              ; preds = %112, %107
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %154, %113
  %115 = load i32, ptr %10, align 4, !tbaa !5
  %116 = load i32, ptr %1, align 4, !tbaa !5
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = mul i32 %116, %117
  %119 = icmp ult i32 %115, %118
  br i1 %119, label %120, label %157

120:                                              ; preds = %114
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = uitofp i32 %121 to float
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = uitofp i32 %123 to float
  %125 = fmul float 0x3EF4F8B580000000, %124
  %126 = load i32, ptr %10, align 4, !tbaa !5
  %127 = uitofp i32 %126 to float
  %128 = fmul float %125, %127
  %129 = call float @llvm.fmuladd.f32(float 0xBFC99999A0000000, float %122, float %128)
  %130 = fpext float %129 to double
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = uitofp i32 %131 to float
  %133 = fmul float %132, 0x3FE6666660000000
  %134 = call float @cosf(float noundef %133) #6
  %135 = fpext float %134 to double
  %136 = call double @llvm.fmuladd.f64(double 1.300000e-01, double %135, double %130)
  %137 = fmul double 0.000000e+00, %136
  %138 = fmul double 1.000000e+00, %136
  %139 = fptrunc double %137 to float
  %140 = fptrunc double %138 to float
  %141 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %142 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %139, ptr %141, align 4
  store float %140, ptr %142, align 4
  %143 = load <2 x float>, ptr %16, align 4
  %144 = call <2 x float> @cexpf(<2 x float> noundef %143) #6
  store <2 x float> %144, ptr %17, align 4
  %145 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %146 = load float, ptr %145, align 4
  %147 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  %148 = load float, ptr %147, align 4
  %149 = load i32, ptr %10, align 4, !tbaa !5
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds { float, float }, ptr %31, i64 %150
  %152 = getelementptr inbounds { float, float }, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds { float, float }, ptr %151, i32 0, i32 1
  store float %146, ptr %152, align 8
  store float %148, ptr %153, align 4
  br label %154

154:                                              ; preds = %120
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = add i32 %155, 1
  store i32 %156, ptr %10, align 4, !tbaa !5
  br label %114, !llvm.loop !15

157:                                              ; preds = %114
  %158 = load ptr, ptr %4, align 8, !tbaa !11
  %159 = load i32, ptr %5, align 4, !tbaa !5
  %160 = call i32 @firdecim_crcf_execute_block(ptr noundef %158, ptr noundef %31, i32 noundef %159, ptr noundef %34)
  %161 = load ptr, ptr %13, align 8, !tbaa !11
  %162 = load i32, ptr %5, align 4, !tbaa !5
  %163 = call i32 @firdecim_crcf_execute_block(ptr noundef %161, ptr noundef %31, i32 noundef %162, ptr noundef %37)
  %164 = load i32, ptr %5, align 4, !tbaa !5
  %165 = call i32 @liquid_autotest_same_data(ptr noundef %34, ptr noundef %37, i32 noundef %164)
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %174, label %167

167:                                              ; preds = %157
  call void @liquid_autotest_failed_msg(ptr noundef @.str.1, i32 noundef 145, ptr noundef @.str.25)
  %168 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  %171 = load i32, ptr %5, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %34, i32 noundef %171)
  %172 = load i32, ptr %5, align 4, !tbaa !5
  call void @liquid_autotest_print_array(ptr noundef %37, i32 noundef %172)
  br label %173

173:                                              ; preds = %170, %167
  br label %175

174:                                              ; preds = %157
  call void (...) @liquid_autotest_passed()
  br label %175

175:                                              ; preds = %174, %173
  %176 = load ptr, ptr %4, align 8, !tbaa !11
  %177 = call i32 @firdecim_crcf_destroy(ptr noundef %176)
  %178 = load ptr, ptr %13, align 8, !tbaa !11
  %179 = call i32 @firdecim_crcf_destroy(ptr noundef %178)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %180 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %180)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

declare ptr @firdecim_crcf_copy(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !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"

@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.21 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #1

declare void @liquid_autotest_passed(...) local_unnamed_addr #1

declare ptr @firdecim_crcf_create_prototype(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #1

declare i32 @firdecim_crcf_set_scale(ptr noundef, float noundef) local_unnamed_addr #1

declare i32 @firdecim_crcf_get_scale(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @firdecim_crcf_destroy(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

declare i32 @firdecim_crcf_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_firdecim_copy() local_unnamed_addr #5 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = tail call ptr @firdecim_crcf_create_prototype(i32 noundef 7, i32 noundef 4, i32 noundef 12, float noundef 0x3FD3333340000000, float noundef 0.000000e+00) #6
  %4 = tail call i32 @firdecim_crcf_set_scale(ptr noundef %3, float noundef 0x3FBF9A6B60000000) #6
  %5 = alloca [88 x { float, float }], align 16
  %6 = alloca [22 x { float, float }], align 16
  %7 = alloca [22 x { float, float }], align 16
  br label %8

8:                                                ; preds = %0, %8
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %8 ]
  %9 = trunc nuw nsw i64 %indvars.iv to i32
  %10 = uitofp nneg i32 %9 to float
  %11 = fmul float %10, 0x3EE4F8B580000000
  %12 = fmul float %11, %10
  %13 = tail call float @llvm.fmuladd.f32(float %10, float 0x3FC99999A0000000, float %12)
  %14 = fpext float %13 to double
  %15 = tail call float @cosf(float noundef %10) #6
  %16 = fpext float %15 to double
  %17 = tail call double @llvm.fmuladd.f64(double %16, double 1.000000e-01, double %14)
  %18 = fmul double %17, 0.000000e+00
  %19 = insertelement <2 x double> poison, double %18, i64 0
  %20 = insertelement <2 x double> %19, double %17, i64 1
  %21 = fptrunc <2 x double> %20 to <2 x float>
  %22 = tail call <2 x float> @cexpf(<2 x float> noundef %21) #6
  %23 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv
  store <2 x float> %22, ptr %23, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 88
  br i1 %exitcond.not, label %24, label %8, !llvm.loop !5

24:                                               ; preds = %8
  %25 = call i32 @firdecim_crcf_execute_block(ptr noundef %3, ptr noundef nonnull %5, i32 noundef 22, ptr noundef nonnull %6) #6
  %26 = call ptr @firdecim_crcf_copy(ptr noundef %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store float 1.000000e+00, ptr %1, align 4, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store float 0.000000e+00, ptr %2, align 4, !tbaa !7
  %27 = call i32 @firdecim_crcf_get_scale(ptr noundef %3, ptr noundef nonnull %1) #6
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %31, label %28

28:                                               ; preds = %24
  %29 = call i32 @firdecim_crcf_get_scale(ptr noundef %3, ptr noundef nonnull %1) #6
  %30 = sitofp i32 %29 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 132, ptr noundef nonnull @.str.21, double noundef %30, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.15, double noundef 0.000000e+00) #6
  br label %32

31:                                               ; preds = %24
  call void (...) @liquid_autotest_passed() #6
  br label %32

32:                                               ; preds = %31, %28
  %33 = call i32 @firdecim_crcf_get_scale(ptr noundef %26, ptr noundef nonnull %2) #6
  %.not50 = icmp eq i32 %33, 0
  br i1 %.not50, label %37, label %34

34:                                               ; preds = %32
  %35 = call i32 @firdecim_crcf_get_scale(ptr noundef %26, ptr noundef nonnull %2) #6
  %36 = sitofp i32 %35 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 133, ptr noundef nonnull @.str.22, double noundef %36, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.15, double noundef 0.000000e+00) #6
  br label %38

37:                                               ; preds = %32
  call void (...) @liquid_autotest_passed() #6
  br label %38

38:                                               ; preds = %37, %34
  %39 = load float, ptr %1, align 4, !tbaa !7
  %40 = load float, ptr %2, align 4, !tbaa !7
  %41 = fcmp une float %39, %40
  br i1 %41, label %42, label %45

42:                                               ; preds = %38
  %43 = fpext float %39 to double
  %44 = fpext float %40 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 134, ptr noundef nonnull @.str.23, double noundef %43, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.24, double noundef %44) #6
  br label %.preheader

45:                                               ; preds = %38
  call void (...) @liquid_autotest_passed() #6
  br label %.preheader

.preheader:                                       ; preds = %45, %42
  br label %46

46:                                               ; preds = %.preheader, %46
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %46 ], [ 0, %.preheader ]
  %47 = trunc nuw nsw i64 %indvars.iv56 to i32
  %48 = uitofp nneg i32 %47 to float
  %49 = fmul float %48, 0x3EF4F8B580000000
  %50 = fmul float %49, %48
  %51 = call float @llvm.fmuladd.f32(float %48, float 0xBFC99999A0000000, float %50)
  %52 = fpext float %51 to double
  %53 = fmul float %48, 0x3FE6666660000000
  %54 = call float @cosf(float noundef %53) #6
  %55 = fpext float %54 to double
  %56 = call double @llvm.fmuladd.f64(double %55, double 1.300000e-01, double %52)
  %57 = fmul double %56, 0.000000e+00
  %58 = insertelement <2 x double> poison, double %57, i64 0
  %59 = insertelement <2 x double> %58, double %56, i64 1
  %60 = fptrunc <2 x double> %59 to <2 x float>
  %61 = call <2 x float> @cexpf(<2 x float> noundef %60) #6
  %62 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv56
  store <2 x float> %61, ptr %62, align 8
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next57, 88
  br i1 %exitcond59.not, label %63, label %46, !llvm.loop !11

63:                                               ; preds = %46
  %64 = call i32 @firdecim_crcf_execute_block(ptr noundef %3, ptr noundef nonnull %5, i32 noundef 22, ptr noundef nonnull %6) #6
  %65 = call i32 @firdecim_crcf_execute_block(ptr noundef %26, ptr noundef nonnull %5, i32 noundef 22, ptr noundef nonnull %7) #6
  %66 = call i32 @liquid_autotest_same_data(ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef 22) #6
  %.not51 = icmp eq i32 %66, 0
  br i1 %.not51, label %67, label %70

67:                                               ; preds = %63
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str.1, i32 noundef 145, ptr noundef nonnull @.str.25) #6
  %68 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !12
  %.not52 = icmp eq i32 %68, 0
  br i1 %.not52, label %71, label %69

69:                                               ; preds = %67
  call void @liquid_autotest_print_array(ptr noundef nonnull %6, i32 noundef 22) #6
  call void @liquid_autotest_print_array(ptr noundef nonnull %7, i32 noundef 22) #6
  br label %71

70:                                               ; preds = %63
  call void (...) @liquid_autotest_passed() #6
  br label %71

71:                                               ; preds = %67, %69, %70
  %72 = call i32 @firdecim_crcf_destroy(ptr noundef %3) #6
  %73 = call i32 @firdecim_crcf_destroy(ptr noundef %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret void
}

declare ptr @firdecim_crcf_copy(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { 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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass