; LLVM IR from jgaeddert/liquid-dsp :: src/filter/tests (iirhilb_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 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

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

65:                                               ; preds = %53
  br label %66

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

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

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

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

declare ptr @iirhilbf_create_default(i32 noundef) #2

declare i32 @iirhilbf_print(ptr noundef) #2

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

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

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

declare i32 @iirhilbf_reset(ptr noundef) #2

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

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

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

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

declare i32 @iirhilbf_destroy(ptr noundef) #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
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 = !{!"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 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_iirhilbf_interp_decim() local_unnamed_addr #0 {
  %1 = alloca [3 x %struct.autotest_psd_s], align 16
  %2 = alloca [5 x %struct.autotest_psd_s], align 16
  %3 = tail call ptr @iirhilbf_create_default(i32 noundef 5) #3
  %4 = tail call i32 @iirhilbf_print(ptr noundef %3) #3
  %5 = alloca [99 x { float, float }], align 16
  %6 = alloca [198 x float], align 16
  %7 = alloca [99 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, 98
  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 @iirhilbf_interp_execute_block(ptr noundef %3, ptr noundef nonnull %5, i32 noundef 99, ptr noundef nonnull %6) #3
  %32 = call i32 @iirhilbf_reset(ptr noundef %3) #3
  %33 = call i32 @iirhilbf_decim_execute_block(ptr noundef %3, ptr noundef nonnull %6, i32 noundef 99, 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
  %44 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef nonnull %5, i32 noundef 99, 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
  %.not51 = icmp eq i32 %59, 0
  %60 = select i1 %.not51, ptr null, ptr @.str.1
  %61 = call i32 @liquid_autotest_validate_psd_signalf(ptr noundef nonnull %6, i32 noundef 198, ptr noundef nonnull %2, i32 noundef 5, ptr noundef %60) #3
  %62 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !15
  %.not52 = icmp eq i32 %62, 0
  %63 = select i1 %.not52, ptr null, ptr @.str.2
  %64 = call i32 @liquid_autotest_validate_psd_signal(ptr noundef nonnull %7, i32 noundef 99, ptr noundef nonnull %1, i32 noundef 3, ptr noundef %63) #3
  %65 = call i32 @iirhilbf_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
}

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

declare ptr @iirhilbf_create_default(i32 noundef) local_unnamed_addr #2

declare i32 @iirhilbf_print(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @iirhilbf_reset(ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @iirhilbf_destroy(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }

!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