; LLVM IR from jgaeddert/liquid-dsp :: src/modem/bench (modem_demodulate_benchmark)

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

@.str = external hidden unnamed_addr constant [99 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_demodulate_bench(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca [20 x { float, float }], align 16
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca i32, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca { float, float }, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca { float, float }, align 4
  %26 = alloca { float, float }, align 4
  %27 = alloca { float, float }, align 4
  %28 = alloca { float, float }, align 4
  %29 = alloca { float, float }, align 4
  %30 = alloca { float, float }, align 4
  %31 = alloca { float, float }, align 4
  %32 = alloca { float, float }, align 4
  %33 = alloca { float, float }, align 4
  %34 = alloca { float, float }, align 4
  %35 = alloca { float, float }, align 4
  %36 = alloca { float, float }, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = call ptr @modemcf_create(i32 noundef %37)
  store ptr %38, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = call i32 @modemcf_get_bps(ptr noundef %39)
  store i32 %40, ptr %10, align 4, !tbaa !9
  %41 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %41, label %52 [
    i32 0, label %42
    i32 45, label %44
    i32 46, label %44
    i32 47, label %44
    i32 48, label %44
    i32 49, label %44
    i32 50, label %44
    i32 52, label %44
  ]

42:                                               ; preds = %4
  %43 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 1, ptr noundef @.str, i32 noundef 48, ptr noundef @.str.1)
  store i32 1, ptr %11, align 4
  br label %319

44:                                               ; preds = %4, %4, %4, %4, %4, %4, %4
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = shl i32 1, %45
  %47 = mul nsw i32 2, %46
  %48 = sext i32 %47 to i64
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = udiv i64 %50, %48
  store i64 %51, ptr %49, align 8, !tbaa !11
  br label %58

52:                                               ; preds = %4
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i64, ptr %55, align 8, !tbaa !11
  %57 = udiv i64 %56, %54
  store i64 %57, ptr %55, align 8, !tbaa !11
  br label %58

58:                                               ; preds = %52, %44
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i64, ptr %59, align 8, !tbaa !11
  %61 = icmp ult i64 %60, 1
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  store i64 1, ptr %63, align 8, !tbaa !11
  br label %64

64:                                               ; preds = %62, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 160, ptr %13) #4
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %96, %64
  %66 = load i64, ptr %12, align 8, !tbaa !11
  %67 = icmp ult i64 %66, 20
  br i1 %67, label %68, label %99

68:                                               ; preds = %65
  %69 = load i64, ptr %12, align 8, !tbaa !11
  %70 = uitofp i64 %69 to double
  %71 = fmul double 7.000000e-02, %70
  %72 = load i64, ptr %12, align 8, !tbaa !11
  %73 = uitofp i64 %72 to double
  %74 = fmul double 0.000000e+00, %73
  %75 = fmul double 0x3FE41B2F769CF0E0, %73
  %76 = fptrunc double %74 to float
  %77 = fptrunc double %75 to float
  %78 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %79 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  store float %76, ptr %78, align 4
  store float %77, ptr %79, align 4
  %80 = load <2 x float>, ptr %14, align 4
  %81 = call <2 x float> @cexpf(<2 x float> noundef %80) #4
  store <2 x float> %81, ptr %15, align 4
  %82 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %83 = load float, ptr %82, align 4
  %84 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %85 = load float, ptr %84, align 4
  %86 = fpext float %83 to double
  %87 = fpext float %85 to double
  %88 = fmul double %71, %86
  %89 = fmul double %71, %87
  %90 = fptrunc double %88 to float
  %91 = fptrunc double %89 to float
  %92 = load i64, ptr %12, align 8, !tbaa !11
  %93 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, 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 %91, ptr %95, align 4
  br label %96

96:                                               ; preds = %68
  %97 = load i64, ptr %12, align 8, !tbaa !11
  %98 = add i64 %97, 1
  store i64 %98, ptr %12, align 8, !tbaa !11
  br label %65, !llvm.loop !13

99:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = call i32 @getrusage(i32 noundef 0, ptr noundef %100) #4
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %308, %99
  %103 = load i64, ptr %12, align 8, !tbaa !11
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !11
  %106 = icmp ult i64 %103, %105
  br i1 %106, label %107, label %311

107:                                              ; preds = %102
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 0
  %110 = getelementptr inbounds { float, float }, ptr %109, i32 0, i32 0
  %111 = load float, ptr %110, align 16
  %112 = getelementptr inbounds { float, float }, ptr %109, i32 0, i32 1
  %113 = load float, ptr %112, align 4
  %114 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %115 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %111, ptr %114, align 4
  store float %113, ptr %115, align 4
  %116 = load <2 x float>, ptr %17, align 4
  %117 = call i32 @modemcf_demodulate(ptr noundef %108, <2 x float> noundef %116, ptr noundef %16)
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 1
  %120 = getelementptr inbounds { float, float }, ptr %119, i32 0, i32 0
  %121 = load float, ptr %120, align 8
  %122 = getelementptr inbounds { float, float }, ptr %119, i32 0, i32 1
  %123 = load float, ptr %122, align 4
  %124 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %125 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %121, ptr %124, align 4
  store float %123, ptr %125, align 4
  %126 = load <2 x float>, ptr %18, align 4
  %127 = call i32 @modemcf_demodulate(ptr noundef %118, <2 x float> noundef %126, ptr noundef %16)
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 2
  %130 = getelementptr inbounds { float, float }, ptr %129, i32 0, i32 0
  %131 = load float, ptr %130, align 16
  %132 = getelementptr inbounds { float, float }, ptr %129, i32 0, i32 1
  %133 = load float, ptr %132, align 4
  %134 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %135 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  store float %131, ptr %134, align 4
  store float %133, ptr %135, align 4
  %136 = load <2 x float>, ptr %19, align 4
  %137 = call i32 @modemcf_demodulate(ptr noundef %128, <2 x float> noundef %136, ptr noundef %16)
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 3
  %140 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 8
  %142 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %145 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %141, ptr %144, align 4
  store float %143, ptr %145, align 4
  %146 = load <2 x float>, ptr %20, align 4
  %147 = call i32 @modemcf_demodulate(ptr noundef %138, <2 x float> noundef %146, ptr noundef %16)
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 4
  %150 = getelementptr inbounds { float, float }, ptr %149, i32 0, i32 0
  %151 = load float, ptr %150, align 16
  %152 = getelementptr inbounds { float, float }, ptr %149, i32 0, i32 1
  %153 = load float, ptr %152, align 4
  %154 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %155 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %151, ptr %154, align 4
  store float %153, ptr %155, align 4
  %156 = load <2 x float>, ptr %21, align 4
  %157 = call i32 @modemcf_demodulate(ptr noundef %148, <2 x float> noundef %156, ptr noundef %16)
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 5
  %160 = getelementptr inbounds { float, float }, ptr %159, i32 0, i32 0
  %161 = load float, ptr %160, align 8
  %162 = getelementptr inbounds { float, float }, ptr %159, i32 0, i32 1
  %163 = load float, ptr %162, align 4
  %164 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %165 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  store float %161, ptr %164, align 4
  store float %163, ptr %165, align 4
  %166 = load <2 x float>, ptr %22, align 4
  %167 = call i32 @modemcf_demodulate(ptr noundef %158, <2 x float> noundef %166, ptr noundef %16)
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 6
  %170 = getelementptr inbounds { float, float }, ptr %169, i32 0, i32 0
  %171 = load float, ptr %170, align 16
  %172 = getelementptr inbounds { float, float }, ptr %169, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  %174 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 0
  %175 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 1
  store float %171, ptr %174, align 4
  store float %173, ptr %175, align 4
  %176 = load <2 x float>, ptr %23, align 4
  %177 = call i32 @modemcf_demodulate(ptr noundef %168, <2 x float> noundef %176, ptr noundef %16)
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 7
  %180 = getelementptr inbounds { float, float }, ptr %179, i32 0, i32 0
  %181 = load float, ptr %180, align 8
  %182 = getelementptr inbounds { float, float }, ptr %179, i32 0, i32 1
  %183 = load float, ptr %182, align 4
  %184 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %185 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  store float %181, ptr %184, align 4
  store float %183, ptr %185, align 4
  %186 = load <2 x float>, ptr %24, align 4
  %187 = call i32 @modemcf_demodulate(ptr noundef %178, <2 x float> noundef %186, ptr noundef %16)
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 8
  %190 = getelementptr inbounds { float, float }, ptr %189, i32 0, i32 0
  %191 = load float, ptr %190, align 16
  %192 = getelementptr inbounds { float, float }, ptr %189, i32 0, i32 1
  %193 = load float, ptr %192, align 4
  %194 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %195 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  store float %191, ptr %194, align 4
  store float %193, ptr %195, align 4
  %196 = load <2 x float>, ptr %25, align 4
  %197 = call i32 @modemcf_demodulate(ptr noundef %188, <2 x float> noundef %196, ptr noundef %16)
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 9
  %200 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 0
  %201 = load float, ptr %200, align 8
  %202 = getelementptr inbounds { float, float }, ptr %199, i32 0, i32 1
  %203 = load float, ptr %202, align 4
  %204 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %205 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  store float %201, ptr %204, align 4
  store float %203, ptr %205, align 4
  %206 = load <2 x float>, ptr %26, align 4
  %207 = call i32 @modemcf_demodulate(ptr noundef %198, <2 x float> noundef %206, ptr noundef %16)
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 10
  %210 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 0
  %211 = load float, ptr %210, align 16
  %212 = getelementptr inbounds { float, float }, ptr %209, i32 0, i32 1
  %213 = load float, ptr %212, align 4
  %214 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 0
  %215 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 1
  store float %211, ptr %214, align 4
  store float %213, ptr %215, align 4
  %216 = load <2 x float>, ptr %27, align 4
  %217 = call i32 @modemcf_demodulate(ptr noundef %208, <2 x float> noundef %216, ptr noundef %16)
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 11
  %220 = getelementptr inbounds { float, float }, ptr %219, i32 0, i32 0
  %221 = load float, ptr %220, align 8
  %222 = getelementptr inbounds { float, float }, ptr %219, i32 0, i32 1
  %223 = load float, ptr %222, align 4
  %224 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %225 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  store float %221, ptr %224, align 4
  store float %223, ptr %225, align 4
  %226 = load <2 x float>, ptr %28, align 4
  %227 = call i32 @modemcf_demodulate(ptr noundef %218, <2 x float> noundef %226, ptr noundef %16)
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 12
  %230 = getelementptr inbounds { float, float }, ptr %229, i32 0, i32 0
  %231 = load float, ptr %230, align 16
  %232 = getelementptr inbounds { float, float }, ptr %229, i32 0, i32 1
  %233 = load float, ptr %232, align 4
  %234 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %235 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  store float %231, ptr %234, align 4
  store float %233, ptr %235, align 4
  %236 = load <2 x float>, ptr %29, align 4
  %237 = call i32 @modemcf_demodulate(ptr noundef %228, <2 x float> noundef %236, ptr noundef %16)
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 13
  %240 = getelementptr inbounds { float, float }, ptr %239, i32 0, i32 0
  %241 = load float, ptr %240, align 8
  %242 = getelementptr inbounds { float, float }, ptr %239, i32 0, i32 1
  %243 = load float, ptr %242, align 4
  %244 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %245 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  store float %241, ptr %244, align 4
  store float %243, ptr %245, align 4
  %246 = load <2 x float>, ptr %30, align 4
  %247 = call i32 @modemcf_demodulate(ptr noundef %238, <2 x float> noundef %246, ptr noundef %16)
  %248 = load ptr, ptr %9, align 8, !tbaa !5
  %249 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 14
  %250 = getelementptr inbounds { float, float }, ptr %249, i32 0, i32 0
  %251 = load float, ptr %250, align 16
  %252 = getelementptr inbounds { float, float }, ptr %249, i32 0, i32 1
  %253 = load float, ptr %252, align 4
  %254 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %255 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  store float %251, ptr %254, align 4
  store float %253, ptr %255, align 4
  %256 = load <2 x float>, ptr %31, align 4
  %257 = call i32 @modemcf_demodulate(ptr noundef %248, <2 x float> noundef %256, ptr noundef %16)
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 15
  %260 = getelementptr inbounds { float, float }, ptr %259, i32 0, i32 0
  %261 = load float, ptr %260, align 8
  %262 = getelementptr inbounds { float, float }, ptr %259, i32 0, i32 1
  %263 = load float, ptr %262, align 4
  %264 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 0
  %265 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 1
  store float %261, ptr %264, align 4
  store float %263, ptr %265, align 4
  %266 = load <2 x float>, ptr %32, align 4
  %267 = call i32 @modemcf_demodulate(ptr noundef %258, <2 x float> noundef %266, ptr noundef %16)
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 16
  %270 = getelementptr inbounds { float, float }, ptr %269, i32 0, i32 0
  %271 = load float, ptr %270, align 16
  %272 = getelementptr inbounds { float, float }, ptr %269, i32 0, i32 1
  %273 = load float, ptr %272, align 4
  %274 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 0
  %275 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 1
  store float %271, ptr %274, align 4
  store float %273, ptr %275, align 4
  %276 = load <2 x float>, ptr %33, align 4
  %277 = call i32 @modemcf_demodulate(ptr noundef %268, <2 x float> noundef %276, ptr noundef %16)
  %278 = load ptr, ptr %9, align 8, !tbaa !5
  %279 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 17
  %280 = getelementptr inbounds { float, float }, ptr %279, i32 0, i32 0
  %281 = load float, ptr %280, align 8
  %282 = getelementptr inbounds { float, float }, ptr %279, i32 0, i32 1
  %283 = load float, ptr %282, align 4
  %284 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 0
  %285 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 1
  store float %281, ptr %284, align 4
  store float %283, ptr %285, align 4
  %286 = load <2 x float>, ptr %34, align 4
  %287 = call i32 @modemcf_demodulate(ptr noundef %278, <2 x float> noundef %286, ptr noundef %16)
  %288 = load ptr, ptr %9, align 8, !tbaa !5
  %289 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 18
  %290 = getelementptr inbounds { float, float }, ptr %289, i32 0, i32 0
  %291 = load float, ptr %290, align 16
  %292 = getelementptr inbounds { float, float }, ptr %289, i32 0, i32 1
  %293 = load float, ptr %292, align 4
  %294 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %295 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  store float %291, ptr %294, align 4
  store float %293, ptr %295, align 4
  %296 = load <2 x float>, ptr %35, align 4
  %297 = call i32 @modemcf_demodulate(ptr noundef %288, <2 x float> noundef %296, ptr noundef %16)
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = getelementptr inbounds [20 x { float, float }], ptr %13, i64 0, i64 19
  %300 = getelementptr inbounds { float, float }, ptr %299, i32 0, i32 0
  %301 = load float, ptr %300, align 8
  %302 = getelementptr inbounds { float, float }, ptr %299, i32 0, i32 1
  %303 = load float, ptr %302, align 4
  %304 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 0
  %305 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 1
  store float %301, ptr %304, align 4
  store float %303, ptr %305, align 4
  %306 = load <2 x float>, ptr %36, align 4
  %307 = call i32 @modemcf_demodulate(ptr noundef %298, <2 x float> noundef %306, ptr noundef %16)
  br label %308

308:                                              ; preds = %107
  %309 = load i64, ptr %12, align 8, !tbaa !11
  %310 = add i64 %309, 1
  store i64 %310, ptr %12, align 8, !tbaa !11
  br label %102, !llvm.loop !15

311:                                              ; preds = %102
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = call i32 @getrusage(i32 noundef 0, ptr noundef %312) #4
  %314 = load ptr, ptr %7, align 8, !tbaa !5
  %315 = load i64, ptr %314, align 8, !tbaa !11
  %316 = mul i64 %315, 20
  store i64 %316, ptr %314, align 8, !tbaa !11
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = call i32 @modemcf_destroy(ptr noundef %317)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 160, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  store i32 0, ptr %11, align 4
  br label %319

319:                                              ; preds = %311, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %320 = load i32, ptr %11, align 4
  switch i32 %320, label %322 [
    i32 0, label %321
    i32 1, label %321
  ]

321:                                              ; preds = %319, %319
  ret void

322:                                              ; preds = %319
  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 i32 @modemcf_get_bps(ptr noundef) #2

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

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

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) #3

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

declare i32 @modemcf_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

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

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


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

@.str = external hidden unnamed_addr constant [99 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @modemcf_demodulate_bench(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca [20 x { float, float }], align 16
  %6 = alloca i32, align 4
  %7 = tail call ptr @modemcf_create(i32 noundef %3) #5
  %8 = tail call i32 @modemcf_get_bps(ptr noundef %7) #5
  switch i32 %3, label %14 [
    i32 0, label %9
    i32 45, label %11
    i32 46, label %11
    i32 47, label %11
    i32 48, label %11
    i32 49, label %11
    i32 50, label %11
    i32 52, label %11
  ]

9:                                                ; preds = %4
  %10 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 1, ptr noundef nonnull @.str, i32 noundef 48, ptr noundef nonnull @.str.1) #5
  br label %100

11:                                               ; preds = %4, %4, %4, %4, %4, %4, %4
  %12 = shl i32 2, %8
  %13 = sext i32 %12 to i64
  br label %16

14:                                               ; preds = %4
  %15 = zext i32 %8 to i64
  br label %16

16:                                               ; preds = %14, %11
  %.sink106 = phi i64 [ %15, %14 ], [ %13, %11 ]
  %17 = load i64, ptr %2, align 8, !tbaa !5
  %18 = udiv i64 %17, %.sink106
  %spec.select = tail call i64 @llvm.umax.i64(i64 %18, i64 1)
  store i64 %spec.select, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %5) #5
  br label %19

19:                                               ; preds = %16, %19
  %.083 = phi i64 [ 0, %16 ], [ %31, %19 ]
  %20 = uitofp nneg i64 %.083 to double
  %21 = fmul double %20, 7.000000e-02
  %22 = fmul double %20, 0x3FE41B2F769CF0E0
  %23 = fptrunc double %22 to float
  %.sroa.041.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %23, i64 1
  %24 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.041.4.vec.insert) #5
  %25 = getelementptr inbounds [20 x { float, float }], ptr %5, i64 0, i64 %.083
  %26 = fpext <2 x float> %24 to <2 x double>
  %27 = insertelement <2 x double> poison, double %21, i64 0
  %28 = shufflevector <2 x double> %27, <2 x double> poison, <2 x i32> zeroinitializer
  %29 = fmul <2 x double> %28, %26
  %30 = fptrunc <2 x double> %29 to <2 x float>
  store <2 x float> %30, ptr %25, align 8
  %31 = add nuw nsw i64 %.083, 1
  %exitcond.not = icmp eq i64 %31, 20
  br i1 %exitcond.not, label %32, label %19, !llvm.loop !9

32:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %33 = tail call i32 @getrusage(i32 noundef 0, ptr noundef %0) #5
  %34 = load i64, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i64 %34, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %32
  %35 = load <4 x float>, ptr %5, align 16
  %.sroa.038.4.vec.insert = shufflevector <4 x float> %35, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %36 = getelementptr inbounds i8, ptr %5, i64 8
  %37 = load <4 x float>, ptr %36, align 8
  %.sroa.036.4.vec.insert = shufflevector <4 x float> %37, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %38 = getelementptr inbounds i8, ptr %5, i64 16
  %39 = load <4 x float>, ptr %38, align 16
  %.sroa.034.4.vec.insert = shufflevector <4 x float> %39, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %40 = getelementptr inbounds i8, ptr %5, i64 24
  %41 = load <4 x float>, ptr %40, align 8
  %.sroa.032.4.vec.insert = shufflevector <4 x float> %41, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %42 = getelementptr inbounds i8, ptr %5, i64 32
  %43 = load <4 x float>, ptr %42, align 16
  %.sroa.030.4.vec.insert = shufflevector <4 x float> %43, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %44 = getelementptr inbounds i8, ptr %5, i64 40
  %45 = load <4 x float>, ptr %44, align 8
  %.sroa.028.4.vec.insert = shufflevector <4 x float> %45, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %46 = getelementptr inbounds i8, ptr %5, i64 48
  %47 = load <4 x float>, ptr %46, align 16
  %.sroa.026.4.vec.insert = shufflevector <4 x float> %47, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %48 = getelementptr inbounds i8, ptr %5, i64 56
  %49 = load <4 x float>, ptr %48, align 8
  %.sroa.024.4.vec.insert = shufflevector <4 x float> %49, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %50 = getelementptr inbounds i8, ptr %5, i64 64
  %51 = load <4 x float>, ptr %50, align 16
  %.sroa.022.4.vec.insert = shufflevector <4 x float> %51, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %52 = getelementptr inbounds i8, ptr %5, i64 72
  %53 = load <4 x float>, ptr %52, align 8
  %.sroa.020.4.vec.insert = shufflevector <4 x float> %53, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %54 = getelementptr inbounds i8, ptr %5, i64 80
  %55 = load <4 x float>, ptr %54, align 16
  %.sroa.018.4.vec.insert = shufflevector <4 x float> %55, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %56 = getelementptr inbounds i8, ptr %5, i64 88
  %57 = load <4 x float>, ptr %56, align 8
  %.sroa.016.4.vec.insert = shufflevector <4 x float> %57, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %58 = getelementptr inbounds i8, ptr %5, i64 96
  %59 = load <4 x float>, ptr %58, align 16
  %.sroa.014.4.vec.insert = shufflevector <4 x float> %59, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %60 = getelementptr inbounds i8, ptr %5, i64 104
  %61 = load <4 x float>, ptr %60, align 8
  %.sroa.012.4.vec.insert = shufflevector <4 x float> %61, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %62 = getelementptr inbounds i8, ptr %5, i64 112
  %63 = load <4 x float>, ptr %62, align 16
  %.sroa.010.4.vec.insert = shufflevector <4 x float> %63, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %64 = getelementptr inbounds i8, ptr %5, i64 120
  %65 = load <4 x float>, ptr %64, align 8
  %.sroa.08.4.vec.insert = shufflevector <4 x float> %65, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %66 = getelementptr inbounds i8, ptr %5, i64 128
  %67 = load <4 x float>, ptr %66, align 16
  %.sroa.06.4.vec.insert = shufflevector <4 x float> %67, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %68 = getelementptr inbounds i8, ptr %5, i64 136
  %69 = load <4 x float>, ptr %68, align 8
  %.sroa.04.4.vec.insert = shufflevector <4 x float> %69, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %70 = getelementptr inbounds i8, ptr %5, i64 144
  %71 = load <4 x float>, ptr %70, align 16
  %.sroa.02.4.vec.insert = shufflevector <4 x float> %71, <4 x float> poison, <2 x i32> <i32 0, i32 1>
  %.sroa.0.4.vec.insert = shufflevector <4 x float> %71, <4 x float> poison, <2 x i32> <i32 2, i32 3>
  br label %72

72:                                               ; preds = %.lr.ph, %72
  %.184 = phi i64 [ 0, %.lr.ph ], [ %93, %72 ]
  %73 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.038.4.vec.insert, ptr noundef nonnull %6) #5
  %74 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.036.4.vec.insert, ptr noundef nonnull %6) #5
  %75 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.034.4.vec.insert, ptr noundef nonnull %6) #5
  %76 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.032.4.vec.insert, ptr noundef nonnull %6) #5
  %77 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.030.4.vec.insert, ptr noundef nonnull %6) #5
  %78 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.028.4.vec.insert, ptr noundef nonnull %6) #5
  %79 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.026.4.vec.insert, ptr noundef nonnull %6) #5
  %80 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.024.4.vec.insert, ptr noundef nonnull %6) #5
  %81 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.022.4.vec.insert, ptr noundef nonnull %6) #5
  %82 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.020.4.vec.insert, ptr noundef nonnull %6) #5
  %83 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.018.4.vec.insert, ptr noundef nonnull %6) #5
  %84 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.016.4.vec.insert, ptr noundef nonnull %6) #5
  %85 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.014.4.vec.insert, ptr noundef nonnull %6) #5
  %86 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.012.4.vec.insert, ptr noundef nonnull %6) #5
  %87 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.010.4.vec.insert, ptr noundef nonnull %6) #5
  %88 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.08.4.vec.insert, ptr noundef nonnull %6) #5
  %89 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.06.4.vec.insert, ptr noundef nonnull %6) #5
  %90 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.04.4.vec.insert, ptr noundef nonnull %6) #5
  %91 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.02.4.vec.insert, ptr noundef nonnull %6) #5
  %92 = call i32 @modemcf_demodulate(ptr noundef %7, <2 x float> noundef %.sroa.0.4.vec.insert, ptr noundef nonnull %6) #5
  %93 = add nuw i64 %.184, 1
  %94 = load i64, ptr %2, align 8, !tbaa !5
  %95 = icmp ult i64 %93, %94
  br i1 %95, label %72, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %72, %32
  %96 = call i32 @getrusage(i32 noundef 0, ptr noundef %1) #5
  %97 = load i64, ptr %2, align 8, !tbaa !5
  %98 = mul i64 %97, 20
  store i64 %98, ptr %2, align 8, !tbaa !5
  %99 = call i32 @modemcf_destroy(ptr noundef %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #5
  br label %100

100:                                              ; preds = %._crit_edge, %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 i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #2

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @modemcf_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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass