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

@__const.testbench_eqlms.h = external hidden unnamed_addr constant [5 x { float, float }], align 16
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_eqlms(i32 noundef %0, i32 noundef %1, float noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #0 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca [5 x { float, float }], align 16
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca { float, float }, align 4
  %29 = alloca { float, float }, align 4
  %30 = alloca ptr, align 8
  %31 = alloca float, align 4
  %32 = alloca i32, align 4
  %33 = alloca { float, float }, align 4
  %34 = alloca { float, float }, align 4
  %35 = alloca i32, align 4
  %36 = alloca { float, float }, align 4
  %37 = alloca i32, align 4
  %38 = alloca { float, float }, align 4
  %39 = alloca { float, float }, align 4
  %40 = alloca { float, float }, align 4
  %41 = alloca { float, float }, align 4
  %42 = alloca { float, float }, align 4
  %43 = alloca { float, float }, align 4
  %44 = alloca float, align 4
  %45 = alloca { float, float }, align 4
  store i32 %0, ptr %10, align 4, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !5
  store float %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !5
  store i32 %4, ptr %14, align 4, !tbaa !5
  store float %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !5
  store i32 %7, ptr %17, align 4, !tbaa !5
  store i32 %8, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %46 = load i32, ptr %18, align 4, !tbaa !5
  %47 = call ptr @modemcf_create(i32 noundef %46)
  store ptr %47, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = load i32, ptr %11, align 4, !tbaa !5
  %50 = load float, ptr %12, align 4, !tbaa !9
  %51 = call ptr @firinterp_crcf_create_prototype(i32 noundef 7, i32 noundef %48, i32 noundef %49, float noundef %50, float noundef 0.000000e+00)
  store ptr %51, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.testbench_eqlms.h, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %52 = getelementptr inbounds [5 x { float, float }], ptr %22, i64 0, i64 0
  %53 = call ptr @firfilt_cccf_create(ptr noundef %52, i32 noundef 5)
  store ptr %53, ptr %23, align 8, !tbaa !11
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = mul i32 2, %54
  %56 = load i32, ptr %14, align 4, !tbaa !5
  %57 = mul i32 %55, %56
  %58 = add i32 %57, 1
  %59 = zext i32 %58 to i64
  %60 = call ptr @llvm.stacksave.p0()
  store ptr %60, ptr %24, align 8
  %61 = alloca { float, float }, i64 %59, align 16
  store i64 %59, ptr %25, align 8
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %96, %9
  %63 = load i32, ptr %19, align 4, !tbaa !5
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = mul i32 2, %64
  %66 = load i32, ptr %14, align 4, !tbaa !5
  %67 = mul i32 %65, %66
  %68 = add i32 %67, 1
  %69 = icmp ult i32 %63, %68
  br i1 %69, label %70, label %99

70:                                               ; preds = %62
  %71 = load i32, ptr %19, align 4, !tbaa !5
  %72 = uitofp i32 %71 to float
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = uitofp i32 %73 to float
  %75 = fdiv float %72, %74
  %76 = load i32, ptr %14, align 4, !tbaa !5
  %77 = uitofp i32 %76 to float
  %78 = fsub float %75, %77
  %79 = call float @sincf(float noundef %78)
  %80 = load i32, ptr %19, align 4, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = mul i32 2, %81
  %83 = load i32, ptr %14, align 4, !tbaa !5
  %84 = mul i32 %82, %83
  %85 = add i32 %84, 1
  %86 = call float @liquid_hamming(i32 noundef %80, i32 noundef %85)
  %87 = fmul float %79, %86
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = uitofp i32 %88 to float
  %90 = fdiv float %87, %89
  %91 = load i32, ptr %19, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds { float, float }, ptr %61, i64 %92
  %94 = getelementptr inbounds { float, float }, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { float, float }, ptr %93, i32 0, i32 1
  store float %90, ptr %94, align 8
  store float 0.000000e+00, ptr %95, align 4
  br label %96

96:                                               ; preds = %70
  %97 = load i32, ptr %19, align 4, !tbaa !5
  %98 = add i32 %97, 1
  store i32 %98, ptr %19, align 4, !tbaa !5
  br label %62, !llvm.loop !13

99:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %100 = load i32, ptr %13, align 4, !tbaa !5
  switch i32 %100, label %123 [
    i32 0, label %101
    i32 1, label %106
    i32 2, label %116
  ]

101:                                              ; preds = %99
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = load i32, ptr %14, align 4, !tbaa !5
  %104 = load float, ptr %12, align 4, !tbaa !9
  %105 = call ptr @eqlms_cccf_create_rnyquist(i32 noundef 7, i32 noundef %102, i32 noundef %103, float noundef %104, float noundef 0.000000e+00)
  store ptr %105, ptr %26, align 8, !tbaa !11
  br label %130

106:                                              ; preds = %99
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = mul i32 2, %107
  %109 = load i32, ptr %14, align 4, !tbaa !5
  %110 = mul i32 %108, %109
  %111 = add i32 %110, 1
  %112 = load i32, ptr %10, align 4, !tbaa !5
  %113 = uitofp i32 %112 to float
  %114 = fdiv float 5.000000e-01, %113
  %115 = call ptr @eqlms_cccf_create_lowpass(i32 noundef %111, float noundef %114)
  store ptr %115, ptr %26, align 8, !tbaa !11
  br label %130

116:                                              ; preds = %99
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = mul i32 2, %117
  %119 = load i32, ptr %14, align 4, !tbaa !5
  %120 = mul i32 %118, %119
  %121 = add i32 %120, 1
  %122 = call ptr @eqlms_cccf_create(ptr noundef %61, i32 noundef %121)
  store ptr %122, ptr %26, align 8, !tbaa !11
  br label %130

123:                                              ; preds = %99
  %124 = load i32, ptr %10, align 4, !tbaa !5
  %125 = mul i32 2, %124
  %126 = load i32, ptr %14, align 4, !tbaa !5
  %127 = mul i32 %125, %126
  %128 = add i32 %127, 1
  %129 = call ptr @eqlms_cccf_create(ptr noundef null, i32 noundef %128)
  store ptr %129, ptr %26, align 8, !tbaa !11
  br label %130

130:                                              ; preds = %123, %116, %106, %101
  %131 = load ptr, ptr %26, align 8, !tbaa !11
  %132 = load float, ptr %15, align 4, !tbaa !9
  %133 = call i32 @eqlms_cccf_set_bw(ptr noundef %131, float noundef %132)
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = alloca { float, float }, i64 %135, align 16
  store i64 %135, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %137 = load i32, ptr %11, align 4, !tbaa !5
  %138 = load i32, ptr %14, align 4, !tbaa !5
  %139 = add i32 %137, %138
  %140 = call ptr @wdelaycf_create(i32 noundef %139)
  store ptr %140, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store float 0.000000e+00, ptr %31, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %269, %130
  %142 = load i32, ptr %19, align 4, !tbaa !5
  %143 = load i32, ptr %16, align 4, !tbaa !5
  %144 = mul i32 2, %143
  %145 = icmp ult i32 %142, %144
  br i1 %145, label %146, label %272

146:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %147 = load ptr, ptr %20, align 8, !tbaa !11
  %148 = call i32 @modemcf_gen_rand_sym(ptr noundef %147)
  store i32 %148, ptr %32, align 4, !tbaa !5
  %149 = load ptr, ptr %20, align 8, !tbaa !11
  %150 = load i32, ptr %32, align 4, !tbaa !5
  %151 = call i32 @modemcf_modulate(ptr noundef %149, i32 noundef %150, ptr noundef %28)
  %152 = load ptr, ptr %30, align 8, !tbaa !11
  %153 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %154 = load float, ptr %153, align 4
  %155 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  %157 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 0
  %158 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 1
  store float %154, ptr %157, align 4
  store float %156, ptr %158, align 4
  %159 = load <2 x float>, ptr %33, align 4
  %160 = call i32 @wdelaycf_push(ptr noundef %152, <2 x float> noundef %159)
  %161 = load ptr, ptr %21, align 8, !tbaa !11
  %162 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %163 = load float, ptr %162, align 4
  %164 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %165 = load float, ptr %164, align 4
  %166 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 0
  %167 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 1
  store float %163, ptr %166, align 4
  store float %165, ptr %167, align 4
  %168 = load <2 x float>, ptr %34, align 4
  %169 = call i32 @firinterp_crcf_execute(ptr noundef %161, <2 x float> noundef %168, ptr noundef %136)
  %170 = load ptr, ptr %23, align 8, !tbaa !11
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = call i32 @firfilt_cccf_execute_block(ptr noundef %170, ptr noundef %136, i32 noundef %171, ptr noundef %136)
  %173 = load ptr, ptr %26, align 8, !tbaa !11
  %174 = load i32, ptr %10, align 4, !tbaa !5
  %175 = call i32 @eqlms_cccf_decim_execute(ptr noundef %173, ptr noundef %136, ptr noundef %29, i32 noundef %174)
  %176 = load i32, ptr %19, align 4, !tbaa !5
  %177 = load i32, ptr %11, align 4, !tbaa !5
  %178 = load i32, ptr %14, align 4, !tbaa !5
  %179 = add i32 %177, %178
  %180 = icmp ult i32 %176, %179
  br i1 %180, label %181, label %182

181:                                              ; preds = %146
  store i32 8, ptr %35, align 4
  br label %266

182:                                              ; preds = %146
  %183 = load ptr, ptr %30, align 8, !tbaa !11
  %184 = call i32 @wdelaycf_read(ptr noundef %183, ptr noundef %28)
  %185 = load i32, ptr %19, align 4, !tbaa !5
  %186 = load i32, ptr %16, align 4, !tbaa !5
  %187 = icmp ult i32 %185, %186
  br i1 %187, label %188, label %247

188:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %189 = load i32, ptr %17, align 4, !tbaa !5
  switch i32 %189, label %245 [
    i32 0, label %190
    i32 1, label %207
    i32 2, label %217
  ]

190:                                              ; preds = %188
  %191 = load ptr, ptr %26, align 8, !tbaa !11
  %192 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %193 = load float, ptr %192, align 4
  %194 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %195 = load float, ptr %194, align 4
  %196 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %197 = load float, ptr %196, align 4
  %198 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %199 = load float, ptr %198, align 4
  %200 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 0
  %201 = getelementptr inbounds { float, float }, ptr %38, i32 0, i32 1
  store float %193, ptr %200, align 4
  store float %195, ptr %201, align 4
  %202 = load <2 x float>, ptr %38, align 4
  %203 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 0
  %204 = getelementptr inbounds { float, float }, ptr %39, i32 0, i32 1
  store float %197, ptr %203, align 4
  store float %199, ptr %204, align 4
  %205 = load <2 x float>, ptr %39, align 4
  %206 = call i32 @eqlms_cccf_step(ptr noundef %191, <2 x float> noundef %202, <2 x float> noundef %205)
  br label %246

207:                                              ; preds = %188
  %208 = load ptr, ptr %26, align 8, !tbaa !11
  %209 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %210 = load float, ptr %209, align 4
  %211 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %212 = load float, ptr %211, align 4
  %213 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 0
  %214 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 1
  store float %210, ptr %213, align 4
  store float %212, ptr %214, align 4
  %215 = load <2 x float>, ptr %40, align 4
  %216 = call i32 @eqlms_cccf_step_blind(ptr noundef %208, <2 x float> noundef %215)
  br label %246

217:                                              ; preds = %188
  %218 = load ptr, ptr %20, align 8, !tbaa !11
  %219 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %220 = load float, ptr %219, align 4
  %221 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %222 = load float, ptr %221, align 4
  %223 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 0
  %224 = getelementptr inbounds { float, float }, ptr %41, i32 0, i32 1
  store float %220, ptr %223, align 4
  store float %222, ptr %224, align 4
  %225 = load <2 x float>, ptr %41, align 4
  %226 = call i32 @modemcf_demodulate(ptr noundef %218, <2 x float> noundef %225, ptr noundef %37)
  %227 = load ptr, ptr %20, align 8, !tbaa !11
  %228 = call i32 @modemcf_get_demodulator_sample(ptr noundef %227, ptr noundef %36)
  %229 = load ptr, ptr %26, align 8, !tbaa !11
  %230 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 0
  %231 = load float, ptr %230, align 4
  %232 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 1
  %233 = load float, ptr %232, align 4
  %234 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %235 = load float, ptr %234, align 4
  %236 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %237 = load float, ptr %236, align 4
  %238 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 0
  %239 = getelementptr inbounds { float, float }, ptr %42, i32 0, i32 1
  store float %231, ptr %238, align 4
  store float %233, ptr %239, align 4
  %240 = load <2 x float>, ptr %42, align 4
  %241 = getelementptr inbounds { float, float }, ptr %43, i32 0, i32 0
  %242 = getelementptr inbounds { float, float }, ptr %43, i32 0, i32 1
  store float %235, ptr %241, align 4
  store float %237, ptr %242, align 4
  %243 = load <2 x float>, ptr %43, align 4
  %244 = call i32 @eqlms_cccf_step(ptr noundef %229, <2 x float> noundef %240, <2 x float> noundef %243)
  br label %246

245:                                              ; preds = %188
  br label %246

246:                                              ; preds = %245, %217, %207, %190
  store i32 8, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %266

247:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %248 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %249 = load float, ptr %248, align 4
  %250 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %251 = load float, ptr %250, align 4
  %252 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %253 = load float, ptr %252, align 4
  %254 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %255 = load float, ptr %254, align 4
  %256 = fsub float %249, %253
  %257 = fsub float %251, %255
  %258 = getelementptr inbounds { float, float }, ptr %45, i32 0, i32 0
  %259 = getelementptr inbounds { float, float }, ptr %45, i32 0, i32 1
  store float %256, ptr %258, align 4
  store float %257, ptr %259, align 4
  %260 = load <2 x float>, ptr %45, align 4
  %261 = call float @cabsf(<2 x float> noundef %260) #7
  store float %261, ptr %44, align 4, !tbaa !9
  %262 = load float, ptr %44, align 4, !tbaa !9
  %263 = load float, ptr %44, align 4, !tbaa !9
  %264 = load float, ptr %31, align 4, !tbaa !9
  %265 = call float @llvm.fmuladd.f32(float %262, float %263, float %264)
  store float %265, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  store i32 0, ptr %35, align 4
  br label %266

266:                                              ; preds = %247, %246, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  %267 = load i32, ptr %35, align 4
  switch i32 %267, label %300 [
    i32 0, label %268
    i32 8, label %269
  ]

268:                                              ; preds = %266
  br label %269

269:                                              ; preds = %268, %266
  %270 = load i32, ptr %19, align 4, !tbaa !5
  %271 = add i32 %270, 1
  store i32 %271, ptr %19, align 4, !tbaa !5
  br label %141, !llvm.loop !15

272:                                              ; preds = %141
  %273 = load float, ptr %31, align 4, !tbaa !9
  %274 = load i32, ptr %16, align 4, !tbaa !5
  %275 = uitofp i32 %274 to float
  %276 = fdiv float %273, %275
  %277 = call float @log10f(float noundef %276) #7
  %278 = fmul float 1.000000e+01, %277
  store float %278, ptr %31, align 4, !tbaa !9
  %279 = load float, ptr %31, align 4, !tbaa !9
  %280 = fpext float %279 to double
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %280)
  %282 = load float, ptr %31, align 4, !tbaa !9
  %283 = fcmp oge float %282, -2.000000e+01
  br i1 %283, label %284, label %287

284:                                              ; preds = %272
  %285 = load float, ptr %31, align 4, !tbaa !9
  %286 = fpext float %285 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 118, ptr noundef @.str.2, double noundef %286, ptr noundef @.str.3, ptr noundef @.str.4, double noundef -2.000000e+01)
  br label %288

287:                                              ; preds = %272
  call void (...) @liquid_autotest_passed()
  br label %288

288:                                              ; preds = %287, %284
  %289 = load ptr, ptr %30, align 8, !tbaa !11
  %290 = call i32 @wdelaycf_destroy(ptr noundef %289)
  %291 = load ptr, ptr %23, align 8, !tbaa !11
  %292 = call i32 @firfilt_cccf_destroy(ptr noundef %291)
  %293 = load ptr, ptr %21, align 8, !tbaa !11
  %294 = call i32 @firinterp_crcf_destroy(ptr noundef %293)
  %295 = load ptr, ptr %26, align 8, !tbaa !11
  %296 = call i32 @eqlms_cccf_destroy(ptr noundef %295)
  %297 = load ptr, ptr %20, align 8, !tbaa !11
  %298 = call i32 @modemcf_destroy(ptr noundef %297)
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %299 = load ptr, ptr %24, align 8
  call void @llvm.stackrestore.p0(ptr %299)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  ret void

300:                                              ; preds = %266
  unreachable
}

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

declare ptr @modemcf_create(i32 noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

declare float @sincf(float noundef) #2

declare float @liquid_hamming(i32 noundef, i32 noundef) #2

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

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

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

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

declare ptr @wdelaycf_create(i32 noundef) #2

declare i32 @modemcf_gen_rand_sym(ptr noundef) #2

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

declare i32 @wdelaycf_push(ptr noundef, <2 x float> noundef) #2

declare i32 @firinterp_crcf_execute(ptr noundef, <2 x float> noundef, ptr noundef) #2

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

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

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

declare i32 @eqlms_cccf_step(ptr noundef, <2 x float> noundef, <2 x float> noundef) #2

declare i32 @eqlms_cccf_step_blind(ptr noundef, <2 x float> noundef) #2

declare i32 @modemcf_demodulate(ptr noundef, <2 x float> noundef, ptr noundef) #2

declare i32 @modemcf_get_demodulator_sample(ptr noundef, 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: nounwind
declare float @cabsf(<2 x float> noundef) #5

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

; Function Attrs: nounwind
declare float @log10f(float noundef) #5

declare i32 @printf(ptr noundef, ...) #2

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 i32 @wdelaycf_destroy(ptr noundef) #2

declare i32 @firfilt_cccf_destroy(ptr noundef) #2

declare i32 @firinterp_crcf_destroy(ptr noundef) #2

declare i32 @eqlms_cccf_destroy(ptr noundef) #2

declare i32 @modemcf_destroy(ptr noundef) #2

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

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

@__const.testbench_eqlms.h = external hidden unnamed_addr constant [5 x { float, float }], align 16
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_eqlms(i32 noundef %0, i32 noundef %1, float noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #0 {
  %10 = alloca [5 x { float, float }], align 16
  %11 = alloca { float, float }, align 8
  %12 = alloca { float, float }, align 8
  %13 = alloca { float, float }, align 8
  %14 = alloca i32, align 4
  %15 = tail call ptr @modemcf_create(i32 noundef %8) #9
  %16 = tail call ptr @firinterp_crcf_create_prototype(i32 noundef 7, i32 noundef %0, i32 noundef %1, float noundef %2, float noundef 0.000000e+00) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %10, ptr noundef nonnull align 16 dereferenceable(40) @__const.testbench_eqlms.h, i64 40, i1 false)
  %17 = call ptr @firfilt_cccf_create(ptr noundef nonnull %10, i32 noundef 5) #9
  %18 = shl i32 %0, 1
  %19 = mul i32 %18, %4
  %20 = or disjoint i32 %19, 1
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  %23 = alloca { float, float }, i64 %21, align 16
  %24 = uitofp i32 %0 to float
  %25 = uitofp i32 %4 to float
  %26 = or disjoint i32 %19, 1
  %wide.trip.count = zext i32 %26 to i64
  br label %27

27:                                               ; preds = %9, %27
  %indvars.iv = phi i64 [ 0, %9 ], [ %indvars.iv.next, %27 ]
  %28 = trunc nuw i64 %indvars.iv to i32
  %29 = uitofp i32 %28 to float
  %30 = fdiv float %29, %24
  %31 = fsub float %30, %25
  %32 = call float @sincf(float noundef %31) #9
  %33 = call float @liquid_hamming(i32 noundef %28, i32 noundef %20) #9
  %34 = fmul float %32, %33
  %35 = fdiv float %34, %24
  %36 = getelementptr inbounds { float, float }, ptr %23, i64 %indvars.iv
  %37 = getelementptr inbounds i8, ptr %36, i64 4
  store float %35, ptr %36, align 8
  store float 0.000000e+00, ptr %37, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond, label %38, label %27, !llvm.loop !5

38:                                               ; preds = %27
  switch i32 %3, label %46 [
    i32 0, label %39
    i32 1, label %41
    i32 2, label %44
  ]

39:                                               ; preds = %38
  %40 = call ptr @eqlms_cccf_create_rnyquist(i32 noundef 7, i32 noundef %0, i32 noundef %4, float noundef %2, float noundef 0.000000e+00) #9
  br label %48

41:                                               ; preds = %38
  %42 = fdiv float 5.000000e-01, %24
  %43 = call ptr @eqlms_cccf_create_lowpass(i32 noundef %20, float noundef %42) #9
  br label %48

44:                                               ; preds = %38
  %45 = call ptr @eqlms_cccf_create(ptr noundef nonnull %23, i32 noundef %20) #9
  br label %48

46:                                               ; preds = %38
  %47 = call ptr @eqlms_cccf_create(ptr noundef null, i32 noundef %20) #9
  br label %48

48:                                               ; preds = %46, %44, %41, %39
  %.088 = phi ptr [ %47, %46 ], [ %45, %44 ], [ %43, %41 ], [ %40, %39 ]
  %49 = call i32 @eqlms_cccf_set_bw(ptr noundef %.088, float noundef %5) #9
  %50 = zext i32 %0 to i64
  %51 = alloca { float, float }, i64 %50, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %52 = add i32 %4, %1
  %53 = call ptr @wdelaycf_create(i32 noundef %52) #9
  %54 = shl i32 %6, 1
  %.not103 = icmp eq i32 %54, 0
  br i1 %.not103, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %48, %89
  %.1101 = phi i32 [ %90, %89 ], [ 0, %48 ]
  %.08994 = phi float [ %.190, %89 ], [ 0.000000e+00, %48 ]
  %55 = call i32 @modemcf_gen_rand_sym(ptr noundef %15) #9
  %56 = call i32 @modemcf_modulate(ptr noundef %15, i32 noundef %55, ptr noundef nonnull %11) #9
  %57 = load <2 x float>, ptr %11, align 8
  %58 = call i32 @wdelaycf_push(ptr noundef %53, <2 x float> noundef %57) #9
  %59 = load <2 x float>, ptr %11, align 8
  %60 = call i32 @firinterp_crcf_execute(ptr noundef %16, <2 x float> noundef %59, ptr noundef nonnull %51) #9
  %61 = call i32 @firfilt_cccf_execute_block(ptr noundef %17, ptr noundef nonnull %51, i32 noundef %0, ptr noundef nonnull %51) #9
  %62 = call i32 @eqlms_cccf_decim_execute(ptr noundef %.088, ptr noundef nonnull %51, ptr noundef nonnull %12, i32 noundef %0) #9
  %63 = icmp ult i32 %.1101, %52
  br i1 %63, label %89, label %64

64:                                               ; preds = %.lr.ph
  %65 = call i32 @wdelaycf_read(ptr noundef %53, ptr noundef nonnull %11) #9
  %66 = icmp ult i32 %.1101, %6
  br i1 %66, label %67, label %83

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  switch i32 %7, label %82 [
    i32 0, label %68
    i32 1, label %72
    i32 2, label %75
  ]

68:                                               ; preds = %67
  %69 = load <2 x float>, ptr %11, align 8
  %70 = load <2 x float>, ptr %12, align 8
  %71 = call i32 @eqlms_cccf_step(ptr noundef %.088, <2 x float> noundef %69, <2 x float> noundef %70) #9
  br label %82

72:                                               ; preds = %67
  %73 = load <2 x float>, ptr %12, align 8
  %74 = call i32 @eqlms_cccf_step_blind(ptr noundef %.088, <2 x float> noundef %73) #9
  br label %82

75:                                               ; preds = %67
  %76 = load <2 x float>, ptr %12, align 8
  %77 = call i32 @modemcf_demodulate(ptr noundef %15, <2 x float> noundef %76, ptr noundef nonnull %14) #9
  %78 = call i32 @modemcf_get_demodulator_sample(ptr noundef %15, ptr noundef nonnull %13) #9
  %79 = load <2 x float>, ptr %13, align 8
  %80 = load <2 x float>, ptr %12, align 8
  %81 = call i32 @eqlms_cccf_step(ptr noundef %.088, <2 x float> noundef %79, <2 x float> noundef %80) #9
  br label %82

82:                                               ; preds = %67, %75, %72, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %89

83:                                               ; preds = %64
  %84 = load <2 x float>, ptr %11, align 8
  %85 = load <2 x float>, ptr %12, align 8
  %86 = fsub <2 x float> %84, %85
  %87 = call float @cabsf(<2 x float> noundef %86) #9
  %88 = call float @llvm.fmuladd.f32(float %87, float %87, float %.08994)
  br label %89

89:                                               ; preds = %.lr.ph, %83, %82
  %.190 = phi float [ %.08994, %82 ], [ %88, %83 ], [ %.08994, %.lr.ph ]
  %90 = add nuw i32 %.1101, 1
  %exitcond105.not = icmp eq i32 %90, %54
  br i1 %exitcond105.not, label %._crit_edge, label %.lr.ph, !llvm.loop !7

._crit_edge:                                      ; preds = %89, %48
  %.089.lcssa = phi float [ 0.000000e+00, %48 ], [ %.190, %89 ]
  %91 = uitofp i32 %6 to float
  %92 = fdiv float %.089.lcssa, %91
  %93 = call float @log10f(float noundef %92) #9
  %94 = fmul float %93, 1.000000e+01
  %95 = fpext float %94 to double
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %95)
  %97 = fcmp ult float %94, -2.000000e+01
  br i1 %97, label %99, label %98

98:                                               ; preds = %._crit_edge
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 118, ptr noundef nonnull @.str.2, double noundef %95, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef -2.000000e+01) #9
  br label %100

99:                                               ; preds = %._crit_edge
  call void (...) @liquid_autotest_passed() #9
  br label %100

100:                                              ; preds = %99, %98
  %101 = call i32 @wdelaycf_destroy(ptr noundef %53) #9
  %102 = call i32 @firfilt_cccf_destroy(ptr noundef %17) #9
  %103 = call i32 @firinterp_crcf_destroy(ptr noundef %16) #9
  %104 = call i32 @eqlms_cccf_destroy(ptr noundef %.088) #9
  %105 = call i32 @modemcf_destroy(ptr noundef %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @llvm.stackrestore.p0(ptr %22)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #9
  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 @modemcf_create(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

declare float @sincf(float noundef) local_unnamed_addr #2

declare float @liquid_hamming(i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

declare ptr @wdelaycf_create(i32 noundef) local_unnamed_addr #2

declare i32 @modemcf_gen_rand_sym(ptr noundef) local_unnamed_addr #2

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

declare i32 @wdelaycf_push(ptr noundef, <2 x float> noundef) local_unnamed_addr #2

declare i32 @firinterp_crcf_execute(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @eqlms_cccf_step(ptr noundef, <2 x float> noundef, <2 x float> noundef) local_unnamed_addr #2

declare i32 @eqlms_cccf_step_blind(ptr noundef, <2 x float> noundef) local_unnamed_addr #2

declare i32 @modemcf_demodulate(ptr noundef, <2 x float> noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #8

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

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

declare i32 @wdelaycf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @firfilt_cccf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @firinterp_crcf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @eqlms_cccf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nofree 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 #9 = { 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 = distinct !{!7, !6}


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