; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (firhilb_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"

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@liquid_autotest_verbose = external global i32, align 4
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 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

declare ptr @firhilbf_create(i32 noundef, float noundef) #1

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

declare i32 @firhilbf_destroy(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_firhilbf_psd() #3 {
  %1 = alloca float, align 4
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca float, align 4
  %16 = alloca [3 x %struct.autotest_psd_s], align 16
  %17 = alloca [5 x %struct.autotest_psd_s], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store float 1.000000e+00, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store float 0x3FD99999A0000000, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store float 6.000000e+01, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 40, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 25, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = load float, ptr %3, align 4, !tbaa !5
  %20 = call ptr @firhilbf_create(i32 noundef %18, float noundef %19)
  store ptr %20, ptr %6, align 8, !tbaa !11
  %21 = load ptr, ptr %6, align 8, !tbaa !11
  %22 = call i32 @firhilbf_print(ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %23 = load i32, ptr %4, align 4, !tbaa !9
  %24 = mul i32 2, %23
  %25 = add i32 %24, 1
  store i32 %25, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = mul i32 2, %27
  %29 = add i32 %26, %28
  %30 = add i32 %29, 8
  store i32 %30, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = call ptr @llvm.stacksave.p0()
  store ptr %33, ptr %10, align 8
  %34 = alloca { float, float }, i64 %32, align 16
  store i64 %32, ptr %11, align 8
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = mul i32 %35, 2
  %37 = zext i32 %36 to i64
  %38 = alloca float, i64 %37, align 16
  store i64 %37, ptr %12, align 8
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = alloca { float, float }, i64 %40, align 16
  store i64 %40, ptr %13, align 8
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = alloca float, i64 %43, align 16
  store i64 %43, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %45 = load float, ptr %2, align 4, !tbaa !5
  %46 = fmul float 0x3FD70A3D80000000, %45
  store float %46, ptr %15, align 4, !tbaa !5
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = load float, ptr %15, align 4, !tbaa !5
  %49 = call i32 @liquid_firdes_kaiser(i32 noundef %47, float noundef %48, float noundef 8.000000e+01, float noundef 0.000000e+00, ptr noundef %44)
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %74, %0
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %54, label %77

54:                                               ; preds = %50
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %58, label %66

58:                                               ; preds = %54
  %59 = load float, ptr %15, align 4, !tbaa !5
  %60 = fmul float 2.000000e+00, %59
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %44, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = fmul float %60, %64
  br label %67

66:                                               ; preds = %54
  br label %67

67:                                               ; preds = %66, %58
  %68 = phi float [ %65, %58 ], [ 0.000000e+00, %66 ]
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds { float, float }, ptr %34, i64 %70
  %72 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 1
  store float %68, ptr %72, align 8
  store float 0.000000e+00, ptr %73, align 4
  br label %74

74:                                               ; preds = %67
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = add i32 %75, 1
  store i32 %76, ptr %9, align 4, !tbaa !9
  br label %50, !llvm.loop !13

77:                                               ; preds = %50
  %78 = load ptr, ptr %6, align 8, !tbaa !11
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = call i32 @firhilbf_interp_execute_block(ptr noundef %78, ptr noundef %34, i32 noundef %79, ptr noundef %38)
  %81 = load ptr, ptr %6, align 8, !tbaa !11
  %82 = call i32 @firhilbf_reset(ptr noundef %81)
  %83 = load ptr, ptr %6, align 8, !tbaa !11
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = call i32 @firhilbf_decim_execute_block(ptr noundef %83, ptr noundef %38, i32 noundef %84, ptr noundef %41)
  call void @llvm.lifetime.start.p0(i64 72, ptr %16) #5
  %86 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 0
  store float -5.000000e-01, ptr %86, align 8, !tbaa !15
  %87 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 1
  %88 = load float, ptr %2, align 4, !tbaa !5
  %89 = fpext float %88 to double
  %90 = fmul double -5.000000e-01, %89
  %91 = fptrunc double %90 to float
  store float %91, ptr %87, align 4, !tbaa !17
  %92 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 2
  store float 0.000000e+00, ptr %92, align 8, !tbaa !18
  %93 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 3
  %94 = load float, ptr %3, align 4, !tbaa !5
  %95 = fneg float %94
  %96 = load float, ptr %1, align 4, !tbaa !5
  %97 = fadd float %95, %96
  store float %97, ptr %93, align 4, !tbaa !19
  %98 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 4
  store i32 0, ptr %98, align 8, !tbaa !20
  %99 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i32 0, i32 5
  store i32 1, ptr %99, align 4, !tbaa !21
  %100 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i64 1
  %101 = getelementptr inbounds %struct.autotest_psd_s, ptr %100, i32 0, i32 0
  %102 = load float, ptr %2, align 4, !tbaa !5
  %103 = fpext float %102 to double
  %104 = fmul double -3.000000e-01, %103
  %105 = fptrunc double %104 to float
  store float %105, ptr %101, align 8, !tbaa !15
  %106 = getelementptr inbounds %struct.autotest_psd_s, ptr %100, i32 0, i32 1
  %107 = load float, ptr %2, align 4, !tbaa !5
  %108 = fpext float %107 to double
  %109 = fmul double 3.000000e-01, %108
  %110 = fptrunc double %109 to float
  store float %110, ptr %106, align 4, !tbaa !17
  %111 = getelementptr inbounds %struct.autotest_psd_s, ptr %100, i32 0, i32 2
  store float -1.000000e+00, ptr %111, align 8, !tbaa !18
  %112 = getelementptr inbounds %struct.autotest_psd_s, ptr %100, i32 0, i32 3
  store float 1.000000e+00, ptr %112, align 4, !tbaa !19
  %113 = getelementptr inbounds %struct.autotest_psd_s, ptr %100, i32 0, i32 4
  store i32 1, ptr %113, align 8, !tbaa !20
  %114 = getelementptr inbounds %struct.autotest_psd_s, ptr %100, i32 0, i32 5
  store i32 1, ptr %114, align 4, !tbaa !21
  %115 = getelementptr inbounds %struct.autotest_psd_s, ptr %16, i64 2
  %116 = getelementptr inbounds %struct.autotest_psd_s, ptr %115, i32 0, i32 0
  %117 = load float, ptr %2, align 4, !tbaa !5
  %118 = fpext float %117 to double
  %119 = fmul double 5.000000e-01, %118
  %120 = fptrunc double %119 to float
  store float %120, ptr %116, align 8, !tbaa !15
  %121 = getelementptr inbounds %struct.autotest_psd_s, ptr %115, i32 0, i32 1
  store float 5.000000e-01, ptr %121, align 4, !tbaa !17
  %122 = getelementptr inbounds %struct.autotest_psd_s, ptr %115, i32 0, i32 2
  store float 0.000000e+00, ptr %122, align 8, !tbaa !18
  %123 = getelementptr inbounds %struct.autotest_psd_s, ptr %115, i32 0, i32 3
  %124 = load float, ptr %3, align 4, !tbaa !5
  %125 = fneg float %124
  %126 = load float, ptr %1, align 4, !tbaa !5
  %127 = fadd float %125, %126
  store float %127, ptr %123, align 4, !tbaa !19
  %128 = getelementptr inbounds %struct.autotest_psd_s, ptr %115, i32 0, i32 4
  store i32 0, ptr %128, align 8, !tbaa !20
  %129 = getelementptr inbounds %struct.autotest_psd_s, ptr %115, i32 0, i32 5
  store i32 1, ptr %129, align 4, !tbaa !21
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = getelementptr inbounds [3 x %struct.autotest_psd_s], ptr %16, i64 0, i64 0
  %132 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  %134 = zext i1 %133 to i64
  %135 = select i1 %133, ptr @.str.10, ptr null
  %136 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef %34, i32 noundef %130, ptr noundef %131, i32 noundef 3, ptr noundef %135)
  call void @llvm.lifetime.start.p0(i64 120, ptr %17) #5
  %137 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i32 0, i32 0
  store float -5.000000e-01, ptr %137, align 8, !tbaa !15
  %138 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i32 0, i32 1
  %139 = load float, ptr %2, align 4, !tbaa !5
  %140 = fpext float %139 to double
  %141 = call double @llvm.fmuladd.f64(double -2.500000e-01, double %140, double -2.500000e-01)
  %142 = fptrunc double %141 to float
  store float %142, ptr %138, align 4, !tbaa !17
  %143 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i32 0, i32 2
  store float 0.000000e+00, ptr %143, align 8, !tbaa !18
  %144 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i32 0, i32 3
  %145 = load float, ptr %3, align 4, !tbaa !5
  %146 = fneg float %145
  %147 = load float, ptr %1, align 4, !tbaa !5
  %148 = fadd float %146, %147
  store float %148, ptr %144, align 4, !tbaa !19
  %149 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i32 0, i32 4
  store i32 0, ptr %149, align 8, !tbaa !20
  %150 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i32 0, i32 5
  store i32 1, ptr %150, align 4, !tbaa !21
  %151 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i64 1
  %152 = getelementptr inbounds %struct.autotest_psd_s, ptr %151, i32 0, i32 0
  %153 = load float, ptr %2, align 4, !tbaa !5
  %154 = fpext float %153 to double
  %155 = call double @llvm.fmuladd.f64(double -1.500000e-01, double %154, double -2.500000e-01)
  %156 = fptrunc double %155 to float
  store float %156, ptr %152, align 8, !tbaa !15
  %157 = getelementptr inbounds %struct.autotest_psd_s, ptr %151, i32 0, i32 1
  %158 = load float, ptr %2, align 4, !tbaa !5
  %159 = fpext float %158 to double
  %160 = call double @llvm.fmuladd.f64(double 1.500000e-01, double %159, double -2.500000e-01)
  %161 = fptrunc double %160 to float
  store float %161, ptr %157, align 4, !tbaa !17
  %162 = getelementptr inbounds %struct.autotest_psd_s, ptr %151, i32 0, i32 2
  store float -1.000000e+00, ptr %162, align 8, !tbaa !18
  %163 = getelementptr inbounds %struct.autotest_psd_s, ptr %151, i32 0, i32 3
  store float 1.000000e+00, ptr %163, align 4, !tbaa !19
  %164 = getelementptr inbounds %struct.autotest_psd_s, ptr %151, i32 0, i32 4
  store i32 1, ptr %164, align 8, !tbaa !20
  %165 = getelementptr inbounds %struct.autotest_psd_s, ptr %151, i32 0, i32 5
  store i32 1, ptr %165, align 4, !tbaa !21
  %166 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i64 2
  %167 = getelementptr inbounds %struct.autotest_psd_s, ptr %166, i32 0, i32 0
  %168 = load float, ptr %2, align 4, !tbaa !5
  %169 = fpext float %168 to double
  %170 = call double @llvm.fmuladd.f64(double 2.500000e-01, double %169, double -2.500000e-01)
  %171 = fptrunc double %170 to float
  store float %171, ptr %167, align 8, !tbaa !15
  %172 = getelementptr inbounds %struct.autotest_psd_s, ptr %166, i32 0, i32 1
  %173 = load float, ptr %2, align 4, !tbaa !5
  %174 = fpext float %173 to double
  %175 = call double @llvm.fmuladd.f64(double -2.500000e-01, double %174, double 2.500000e-01)
  %176 = fptrunc double %175 to float
  store float %176, ptr %172, align 4, !tbaa !17
  %177 = getelementptr inbounds %struct.autotest_psd_s, ptr %166, i32 0, i32 2
  store float 0.000000e+00, ptr %177, align 8, !tbaa !18
  %178 = getelementptr inbounds %struct.autotest_psd_s, ptr %166, i32 0, i32 3
  %179 = load float, ptr %3, align 4, !tbaa !5
  %180 = fneg float %179
  %181 = load float, ptr %1, align 4, !tbaa !5
  %182 = fadd float %180, %181
  store float %182, ptr %178, align 4, !tbaa !19
  %183 = getelementptr inbounds %struct.autotest_psd_s, ptr %166, i32 0, i32 4
  store i32 0, ptr %183, align 8, !tbaa !20
  %184 = getelementptr inbounds %struct.autotest_psd_s, ptr %166, i32 0, i32 5
  store i32 1, ptr %184, align 4, !tbaa !21
  %185 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i64 3
  %186 = getelementptr inbounds %struct.autotest_psd_s, ptr %185, i32 0, i32 0
  %187 = load float, ptr %2, align 4, !tbaa !5
  %188 = fpext float %187 to double
  %189 = call double @llvm.fmuladd.f64(double -1.500000e-01, double %188, double 2.500000e-01)
  %190 = fptrunc double %189 to float
  store float %190, ptr %186, align 8, !tbaa !15
  %191 = getelementptr inbounds %struct.autotest_psd_s, ptr %185, i32 0, i32 1
  %192 = load float, ptr %2, align 4, !tbaa !5
  %193 = fpext float %192 to double
  %194 = call double @llvm.fmuladd.f64(double 1.500000e-01, double %193, double 2.500000e-01)
  %195 = fptrunc double %194 to float
  store float %195, ptr %191, align 4, !tbaa !17
  %196 = getelementptr inbounds %struct.autotest_psd_s, ptr %185, i32 0, i32 2
  store float -1.000000e+00, ptr %196, align 8, !tbaa !18
  %197 = getelementptr inbounds %struct.autotest_psd_s, ptr %185, i32 0, i32 3
  store float 1.000000e+00, ptr %197, align 4, !tbaa !19
  %198 = getelementptr inbounds %struct.autotest_psd_s, ptr %185, i32 0, i32 4
  store i32 1, ptr %198, align 8, !tbaa !20
  %199 = getelementptr inbounds %struct.autotest_psd_s, ptr %185, i32 0, i32 5
  store i32 1, ptr %199, align 4, !tbaa !21
  %200 = getelementptr inbounds %struct.autotest_psd_s, ptr %17, i64 4
  %201 = getelementptr inbounds %struct.autotest_psd_s, ptr %200, i32 0, i32 0
  %202 = load float, ptr %2, align 4, !tbaa !5
  %203 = fpext float %202 to double
  %204 = call double @llvm.fmuladd.f64(double 2.500000e-01, double %203, double 2.500000e-01)
  %205 = fptrunc double %204 to float
  store float %205, ptr %201, align 8, !tbaa !15
  %206 = getelementptr inbounds %struct.autotest_psd_s, ptr %200, i32 0, i32 1
  store float 5.000000e-01, ptr %206, align 4, !tbaa !17
  %207 = getelementptr inbounds %struct.autotest_psd_s, ptr %200, i32 0, i32 2
  store float 0.000000e+00, ptr %207, align 8, !tbaa !18
  %208 = getelementptr inbounds %struct.autotest_psd_s, ptr %200, i32 0, i32 3
  %209 = load float, ptr %3, align 4, !tbaa !5
  %210 = fneg float %209
  %211 = load float, ptr %1, align 4, !tbaa !5
  %212 = fadd float %210, %211
  store float %212, ptr %208, align 4, !tbaa !19
  %213 = getelementptr inbounds %struct.autotest_psd_s, ptr %200, i32 0, i32 4
  store i32 0, ptr %213, align 8, !tbaa !20
  %214 = getelementptr inbounds %struct.autotest_psd_s, ptr %200, i32 0, i32 5
  store i32 1, ptr %214, align 4, !tbaa !21
  %215 = load i32, ptr %8, align 4, !tbaa !9
  %216 = mul i32 2, %215
  %217 = getelementptr inbounds [5 x %struct.autotest_psd_s], ptr %17, i64 0, i64 0
  %218 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  %220 = zext i1 %219 to i64
  %221 = select i1 %219, ptr @.str.11, ptr null
  %222 = call i32 @liquid_autotest_validate_psd_signalf(ptr noundef %38, i32 noundef %216, ptr noundef %217, i32 noundef 5, ptr noundef %221)
  %223 = load i32, ptr %8, align 4, !tbaa !9
  %224 = getelementptr inbounds [3 x %struct.autotest_psd_s], ptr %16, i64 0, i64 0
  %225 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %226 = icmp ne i32 %225, 0
  %227 = zext i1 %226 to i64
  %228 = select i1 %226, ptr @.str.12, ptr null
  %229 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef %41, i32 noundef %223, ptr noundef %224, i32 noundef 3, ptr noundef %228)
  %230 = load ptr, ptr %6, align 8, !tbaa !11
  %231 = call i32 @firhilbf_destroy(ptr noundef %230)
  call void @llvm.lifetime.end.p0(i64 120, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %232 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %232)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

declare i32 @firhilbf_print(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

declare i32 @liquid_firdes_kaiser(i32 noundef, float noundef, float noundef, float noundef, ptr noundef) #1

declare i32 @firhilbf_interp_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @firhilbf_reset(ptr noundef) #1

declare i32 @firhilbf_decim_execute_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @liquid_autotest_validate_psd_signal(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @liquid_autotest_validate_psd_signalf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn }
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 = !{!"float", !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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16, !10, i64 20}
!17 = !{!16, !6, i64 4}
!18 = !{!16, !6, i64 8}
!19 = !{!16, !6, i64 12}
!20 = !{!16, !10, i64 16}
!21 = !{!16, !10, i64 20}


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

%struct.autotest_psd_s = type { float, float, float, float, i32, i32 }

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 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 ptr @firhilbf_create(i32 noundef, float noundef) local_unnamed_addr #1

declare i32 @firhilbf_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 uwtable
define dso_local void @autotest_firhilbf_psd() local_unnamed_addr #2 {
  %1 = alloca [3 x %struct.autotest_psd_s], align 16
  %2 = alloca [5 x %struct.autotest_psd_s], align 16
  %3 = tail call ptr @firhilbf_create(i32 noundef 25, float noundef 6.000000e+01) #3
  %4 = tail call i32 @firhilbf_print(ptr noundef %3) #3
  %5 = alloca [139 x { float, float }], align 16
  %6 = alloca [278 x float], align 16
  %7 = alloca [139 x { float, float }], align 16
  %8 = alloca [81 x float], align 16
  %9 = call i32 @liquid_firdes_kaiser(i32 noundef 81, float noundef 0x3FC26E97A0000000, float noundef 8.000000e+01, float noundef 0.000000e+00, ptr noundef nonnull %8) #3
  br label %10

10:                                               ; preds = %26, %0
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next.1, %26 ]
  %11 = icmp ult i64 %indvars.iv, 81
  br i1 %11, label %12, label %16

12:                                               ; preds = %10
  %13 = getelementptr inbounds float, ptr %8, i64 %indvars.iv
  %14 = load float, ptr %13, align 8, !tbaa !5
  %15 = fmul float %14, 0x3FD26E97A0000000
  br label %16

16:                                               ; preds = %10, %12
  %17 = phi float [ %15, %12 ], [ 0.000000e+00, %10 ]
  %18 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv
  %19 = getelementptr inbounds i8, ptr %18, i64 4
  store float %17, ptr %18, align 16
  store float 0.000000e+00, ptr %19, align 4
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, 138
  br i1 %exitcond.not, label %30, label %20, !llvm.loop !9

20:                                               ; preds = %16
  %21 = icmp ult i64 %indvars.iv.next, 81
  br i1 %21, label %22, label %26

22:                                               ; preds = %20
  %23 = getelementptr inbounds float, ptr %8, i64 %indvars.iv.next
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = fmul float %24, 0x3FD26E97A0000000
  br label %26

26:                                               ; preds = %22, %20
  %27 = phi float [ %25, %22 ], [ 0.000000e+00, %20 ]
  %28 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv.next
  %29 = getelementptr inbounds i8, ptr %28, i64 4
  store float %27, ptr %28, align 8
  store float 0.000000e+00, ptr %29, align 4
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  br label %10

30:                                               ; preds = %16
  %31 = call i32 @firhilbf_interp_execute_block(ptr noundef %3, ptr noundef nonnull %5, i32 noundef 139, ptr noundef nonnull %6) #3
  %32 = call i32 @firhilbf_reset(ptr noundef %3) #3
  %33 = call i32 @firhilbf_decim_execute_block(ptr noundef %3, ptr noundef nonnull %6, i32 noundef 139, ptr noundef nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #3
  store <4 x float> <float -5.000000e-01, float 0xBFC99999A0000000, float 0.000000e+00, float -5.900000e+01>, ptr %1, align 16, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 0, ptr %34, align 16, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 1, ptr %35, align 4, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %1, i64 24
  store <4 x float> <float 0xBFBEB85200000000, float 0x3FBEB85200000000, float -1.000000e+00, float 1.000000e+00>, ptr %36, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %1, i64 40
  store i32 1, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %1, i64 44
  store i32 1, ptr %38, align 4, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %1, i64 48
  store <4 x float> <float 0x3FC99999A0000000, float 5.000000e-01, float 0.000000e+00, float -5.900000e+01>, ptr %39, align 16, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %1, i64 64
  store i32 0, ptr %40, align 16, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %1, i64 68
  store i32 1, ptr %41, align 4, !tbaa !14
  %42 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !15
  %.not = icmp eq i32 %42, 0
  %43 = select i1 %.not, ptr null, ptr @.str.10
  %44 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef nonnull %5, i32 noundef 139, ptr noundef nonnull %1, i32 noundef 3, ptr noundef %43) #3
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #3
  store <4 x float> <float -5.000000e-01, float 0xBFD6666660000000, float 0.000000e+00, float -5.900000e+01>, ptr %2, align 16, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 0, ptr %45, align 16, !tbaa !11
  %46 = getelementptr inbounds i8, ptr %2, i64 20
  store i32 1, ptr %46, align 4, !tbaa !14
  %47 = getelementptr inbounds i8, ptr %2, i64 24
  store <4 x float> <float 0xBFD3D70A40000000, float 0xBFC851EB80000000, float -1.000000e+00, float 1.000000e+00>, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %2, i64 40
  store i32 1, ptr %48, align 8, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %2, i64 44
  store i32 1, ptr %49, align 4, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %2, i64 48
  store <4 x float> <float 0xBFC3333340000000, float 0x3FC3333340000000, float 0.000000e+00, float -5.900000e+01>, ptr %50, align 16, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %2, i64 64
  store i32 0, ptr %51, align 16, !tbaa !11
  %52 = getelementptr inbounds i8, ptr %2, i64 68
  store i32 1, ptr %52, align 4, !tbaa !14
  %53 = getelementptr inbounds i8, ptr %2, i64 72
  store <4 x float> <float 0x3FC851EB80000000, float 0x3FD3D70A40000000, float -1.000000e+00, float 1.000000e+00>, ptr %53, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %2, i64 88
  store i32 1, ptr %54, align 8, !tbaa !11
  %55 = getelementptr inbounds i8, ptr %2, i64 92
  store i32 1, ptr %55, align 4, !tbaa !14
  %56 = getelementptr inbounds i8, ptr %2, i64 96
  store <4 x float> <float 0x3FD6666660000000, float 5.000000e-01, float 0.000000e+00, float -5.900000e+01>, ptr %56, align 16, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %2, i64 112
  store i32 0, ptr %57, align 16, !tbaa !11
  %58 = getelementptr inbounds i8, ptr %2, i64 116
  store i32 1, ptr %58, align 4, !tbaa !14
  %59 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !15
  %.not52 = icmp eq i32 %59, 0
  %60 = select i1 %.not52, ptr null, ptr @.str.11
  %61 = call i32 @liquid_autotest_validate_psd_signalf(ptr noundef nonnull %6, i32 noundef 278, ptr noundef nonnull %2, i32 noundef 5, ptr noundef %60) #3
  %62 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !15
  %.not53 = icmp eq i32 %62, 0
  %63 = select i1 %.not53, ptr null, ptr @.str.12
  %64 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef nonnull %7, i32 noundef 139, ptr noundef nonnull %1, i32 noundef 3, ptr noundef %63) #3
  %65 = call i32 @firhilbf_destroy(ptr noundef %3) #3
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #3
  ret void
}

declare i32 @firhilbf_print(ptr noundef) local_unnamed_addr #1

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

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

declare i32 @firhilbf_reset(ptr noundef) local_unnamed_addr #1

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

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

declare i32 @liquid_autotest_validate_psd_signalf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, 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 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 }

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

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


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