; LLVM IR from jgaeddert/liquid-dsp :: examples (qpilotsync_example)

; 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.main.filename = external hidden unnamed_addr constant [21 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca [21 x i8], align 16
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca { float, float }, align 4
  %31 = alloca { float, float }, align 4
  %32 = alloca { float, float }, align 4
  %33 = alloca i32, align 4
  %34 = alloca { float, float }, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 27, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 400, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 20, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store float 2.000000e+01, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 21, ptr %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.filename, i64 21, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store float 0xBF7EB851E0000000, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store float 0x400170A3E0000000, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store float 5.000000e-01, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  br label %37

37:                                               ; preds = %59, %2
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = call i32 @getopt(i32 noundef %38, ptr noundef %39, ptr noundef @.str.7) #9
  store i32 %40, ptr %14, align 4, !tbaa !5
  %41 = icmp ne i32 %40, -1
  br i1 %41, label %42, label %60

42:                                               ; preds = %37
  %43 = load i32, ptr %14, align 4, !tbaa !5
  switch i32 %43, label %58 [
    i32 104, label %44
    i32 110, label %45
    i32 112, label %48
    i32 115, label %51
    i32 109, label %55
  ]

44:                                               ; preds = %42
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %412

45:                                               ; preds = %42
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call i32 @atoi(ptr noundef %46) #10
  store i32 %47, ptr %7, align 4, !tbaa !5
  br label %59

48:                                               ; preds = %42
  %49 = load ptr, ptr @optarg, align 8, !tbaa !9
  %50 = call i32 @atoi(ptr noundef %49) #10
  store i32 %50, ptr %8, align 4, !tbaa !5
  br label %59

51:                                               ; preds = %42
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call double @atof(ptr noundef %52) #10
  %54 = fptrunc double %53 to float
  store float %54, ptr %9, align 4, !tbaa !11
  br label %59

55:                                               ; preds = %42
  %56 = load ptr, ptr @optarg, align 8, !tbaa !9
  %57 = call i32 @liquid_getopt_str2mod(ptr noundef %56)
  store i32 %57, ptr %6, align 4, !tbaa !5
  br label %59

58:                                               ; preds = %42
  call void @exit(i32 noundef -1) #11
  unreachable

59:                                               ; preds = %55, %51, %48, %45
  br label %37, !llvm.loop !13

60:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %61 = load float, ptr %9, align 4, !tbaa !11
  %62 = fneg float %61
  %63 = fdiv float %62, 2.000000e+01
  %64 = call float @powf(float noundef 1.000000e+01, float noundef %63) #9
  store float %64, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = call ptr @qpilotgen_create(i32 noundef %65, i32 noundef %66)
  store ptr %67, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = call ptr @qpilotsync_create(i32 noundef %68, i32 noundef %69)
  store ptr %70, ptr %19, align 8, !tbaa !9
  %71 = load ptr, ptr %18, align 8, !tbaa !9
  %72 = call i32 @qpilotgen_print(ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %73 = load ptr, ptr %18, align 8, !tbaa !9
  %74 = call i32 @qpilotgen_get_frame_len(ptr noundef %73)
  store i32 %74, ptr %20, align 4, !tbaa !5
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = zext i32 %75 to i64
  %77 = call ptr @llvm.stacksave.p0()
  store ptr %77, ptr %21, align 8
  %78 = alloca i8, i64 %76, align 16
  store i64 %76, ptr %22, align 8
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = zext i32 %79 to i64
  %81 = alloca { float, float }, i64 %80, align 16
  store i64 %80, ptr %23, align 8
  %82 = load i32, ptr %20, align 4, !tbaa !5
  %83 = zext i32 %82 to i64
  %84 = alloca { float, float }, i64 %83, align 16
  store i64 %83, ptr %24, align 8
  %85 = load i32, ptr %20, align 4, !tbaa !5
  %86 = zext i32 %85 to i64
  %87 = alloca { float, float }, i64 %86, align 16
  store i64 %86, ptr %25, align 8
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = zext i32 %88 to i64
  %90 = alloca { float, float }, i64 %89, align 16
  store i64 %89, ptr %26, align 8
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = zext i32 %91 to i64
  %93 = alloca i8, i64 %92, align 16
  store i64 %92, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = call ptr @modemcf_create(i32 noundef %94)
  store ptr %95, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = call ptr @modemcf_create(i32 noundef %96)
  store ptr %97, ptr %29, align 8, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %119, %60
  %99 = load i32, ptr %16, align 4, !tbaa !5
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %102, label %122

102:                                              ; preds = %98
  %103 = load ptr, ptr %28, align 8, !tbaa !9
  %104 = call i32 @modemcf_gen_rand_sym(ptr noundef %103)
  %105 = trunc i32 %104 to i8
  %106 = load i32, ptr %16, align 4, !tbaa !5
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %78, i64 %107
  store i8 %105, ptr %108, align 1, !tbaa !15
  %109 = load ptr, ptr %28, align 8, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds i8, ptr %78, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !15
  %114 = zext i8 %113 to i32
  %115 = load i32, ptr %16, align 4, !tbaa !5
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds { float, float }, ptr %81, i64 %116
  %118 = call i32 @modemcf_modulate(ptr noundef %109, i32 noundef %114, ptr noundef %117)
  br label %119

119:                                              ; preds = %102
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = add i32 %120, 1
  store i32 %121, ptr %16, align 4, !tbaa !5
  br label %98, !llvm.loop !16

122:                                              ; preds = %98
  %123 = load ptr, ptr %18, align 8, !tbaa !9
  %124 = call i32 @qpilotgen_execute(ptr noundef %123, ptr noundef %81, ptr noundef %84)
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %219, %122
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = load i32, ptr %20, align 4, !tbaa !5
  %128 = icmp ult i32 %126, %127
  br i1 %128, label %129, label %222

129:                                              ; preds = %125
  %130 = load i32, ptr %16, align 4, !tbaa !5
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds { float, float }, ptr %84, i64 %131
  %133 = getelementptr inbounds { float, float }, ptr %132, i32 0, i32 0
  %134 = load float, ptr %133, align 8
  %135 = getelementptr inbounds { float, float }, ptr %132, i32 0, i32 1
  %136 = load float, ptr %135, align 4
  %137 = load float, ptr %11, align 4, !tbaa !11
  %138 = fmul float 0.000000e+00, %137
  %139 = fmul float 1.000000e+00, %137
  %140 = load i32, ptr %16, align 4, !tbaa !5
  %141 = uitofp i32 %140 to float
  %142 = fmul float %138, %141
  %143 = fmul float %139, %141
  %144 = load float, ptr %12, align 4, !tbaa !11
  %145 = fmul float 0.000000e+00, %144
  %146 = fmul float 1.000000e+00, %144
  %147 = fadd float %142, %145
  %148 = fadd float %143, %146
  %149 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %150 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  store float %147, ptr %149, align 4
  store float %148, ptr %150, align 4
  %151 = load <2 x float>, ptr %30, align 4
  %152 = call <2 x float> @cexpf(<2 x float> noundef %151) #9
  store <2 x float> %152, ptr %31, align 4
  %153 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %154 = load float, ptr %153, align 4
  %155 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  %156 = load float, ptr %155, align 4
  %157 = fmul float %134, %154
  %158 = fmul float %136, %156
  %159 = fmul float %134, %156
  %160 = fmul float %136, %154
  %161 = fsub float %157, %158
  %162 = fadd float %159, %160
  %163 = fcmp uno float %161, %161
  br i1 %163, label %164, label %172, !prof !17

164:                                              ; preds = %129
  %165 = fcmp uno float %162, %162
  br i1 %165, label %166, label %172, !prof !17

166:                                              ; preds = %164
  %167 = call <2 x float> @__mulsc3(float noundef %134, float noundef %136, float noundef %154, float noundef %156) #9
  store <2 x float> %167, ptr %32, align 4
  %168 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 0
  %169 = load float, ptr %168, align 4
  %170 = getelementptr inbounds { float, float }, ptr %32, i32 0, i32 1
  %171 = load float, ptr %170, align 4
  br label %172

172:                                              ; preds = %166, %164, %129
  %173 = phi float [ %161, %129 ], [ %161, %164 ], [ %169, %166 ]
  %174 = phi float [ %162, %129 ], [ %162, %164 ], [ %171, %166 ]
  %175 = load i32, ptr %16, align 4, !tbaa !5
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds { float, float }, ptr %87, i64 %176
  %178 = getelementptr inbounds { float, float }, ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds { float, float }, ptr %177, i32 0, i32 1
  store float %173, ptr %178, align 8
  store float %174, ptr %179, align 4
  %180 = load float, ptr %17, align 4, !tbaa !11
  %181 = call float (...) @randnf()
  %182 = call float (...) @randnf()
  %183 = fmul float 0.000000e+00, %182
  %184 = fmul float 1.000000e+00, %182
  %185 = fadd float %181, %183
  %186 = fmul float %180, %185
  %187 = fmul float %180, %184
  %188 = fpext float %186 to double
  %189 = fpext float %187 to double
  %190 = fmul double %188, 0x3FE6A09E667F3BCD
  %191 = fmul double %189, 0x3FE6A09E667F3BCD
  %192 = load i32, ptr %16, align 4, !tbaa !5
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds { float, float }, ptr %87, i64 %193
  %195 = getelementptr inbounds { float, float }, ptr %194, i32 0, i32 0
  %196 = load float, ptr %195, align 8
  %197 = getelementptr inbounds { float, float }, ptr %194, i32 0, i32 1
  %198 = load float, ptr %197, align 4
  %199 = fpext float %196 to double
  %200 = fpext float %198 to double
  %201 = fadd double %199, %190
  %202 = fadd double %200, %191
  %203 = fptrunc double %201 to float
  %204 = fptrunc double %202 to float
  %205 = getelementptr inbounds { float, float }, ptr %194, i32 0, i32 0
  %206 = getelementptr inbounds { float, float }, ptr %194, i32 0, i32 1
  store float %203, ptr %205, align 8
  store float %204, ptr %206, align 4
  %207 = load float, ptr %13, align 4, !tbaa !11
  %208 = load i32, ptr %16, align 4, !tbaa !5
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds { float, float }, ptr %87, i64 %209
  %211 = getelementptr inbounds { float, float }, ptr %210, i32 0, i32 0
  %212 = load float, ptr %211, align 8
  %213 = getelementptr inbounds { float, float }, ptr %210, i32 0, i32 1
  %214 = load float, ptr %213, align 4
  %215 = fmul float %212, %207
  %216 = fmul float %214, %207
  %217 = getelementptr inbounds { float, float }, ptr %210, i32 0, i32 0
  %218 = getelementptr inbounds { float, float }, ptr %210, i32 0, i32 1
  store float %215, ptr %217, align 8
  store float %216, ptr %218, align 4
  br label %219

219:                                              ; preds = %172
  %220 = load i32, ptr %16, align 4, !tbaa !5
  %221 = add i32 %220, 1
  store i32 %221, ptr %16, align 4, !tbaa !5
  br label %125, !llvm.loop !18

222:                                              ; preds = %125
  %223 = load ptr, ptr %19, align 8, !tbaa !9
  %224 = call i32 @qpilotsync_execute(ptr noundef %223, ptr noundef %87, ptr noundef %90)
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %225

225:                                              ; preds = %247, %222
  %226 = load i32, ptr %16, align 4, !tbaa !5
  %227 = load i32, ptr %7, align 4, !tbaa !5
  %228 = icmp ult i32 %226, %227
  br i1 %228, label %229, label %250

229:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  %230 = load ptr, ptr %29, align 8, !tbaa !9
  %231 = load i32, ptr %16, align 4, !tbaa !5
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds { float, float }, ptr %90, i64 %232
  %234 = getelementptr inbounds { float, float }, ptr %233, i32 0, i32 0
  %235 = load float, ptr %234, align 8
  %236 = getelementptr inbounds { float, float }, ptr %233, i32 0, i32 1
  %237 = load float, ptr %236, align 4
  %238 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 0
  %239 = getelementptr inbounds { float, float }, ptr %34, i32 0, i32 1
  store float %235, ptr %238, align 4
  store float %237, ptr %239, align 4
  %240 = load <2 x float>, ptr %34, align 4
  %241 = call i32 @modemcf_demodulate(ptr noundef %230, <2 x float> noundef %240, ptr noundef %33)
  %242 = load i32, ptr %33, align 4, !tbaa !5
  %243 = trunc i32 %242 to i8
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds i8, ptr %93, i64 %245
  store i8 %243, ptr %246, align 1, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %247

247:                                              ; preds = %229
  %248 = load i32, ptr %16, align 4, !tbaa !5
  %249 = add i32 %248, 1
  store i32 %249, ptr %16, align 4, !tbaa !5
  br label %225, !llvm.loop !19

250:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %251

251:                                              ; preds = %269, %250
  %252 = load i32, ptr %16, align 4, !tbaa !5
  %253 = load i32, ptr %7, align 4, !tbaa !5
  %254 = icmp ult i32 %252, %253
  br i1 %254, label %255, label %272

255:                                              ; preds = %251
  %256 = load i32, ptr %16, align 4, !tbaa !5
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds i8, ptr %93, i64 %257
  %259 = load i8, ptr %258, align 1, !tbaa !15
  %260 = zext i8 %259 to i32
  %261 = load i32, ptr %16, align 4, !tbaa !5
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds i8, ptr %78, i64 %262
  %264 = load i8, ptr %263, align 1, !tbaa !15
  %265 = zext i8 %264 to i32
  %266 = call i32 @count_bit_errors(i32 noundef %260, i32 noundef %265)
  %267 = load i32, ptr %35, align 4, !tbaa !5
  %268 = add i32 %267, %266
  store i32 %268, ptr %35, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %255
  %270 = load i32, ptr %16, align 4, !tbaa !5
  %271 = add i32 %270, 1
  store i32 %271, ptr %16, align 4, !tbaa !5
  br label %251, !llvm.loop !20

272:                                              ; preds = %251
  %273 = load i32, ptr %35, align 4, !tbaa !5
  %274 = load i32, ptr %7, align 4, !tbaa !5
  %275 = load ptr, ptr %28, align 8, !tbaa !9
  %276 = call i32 @modemcf_get_bps(ptr noundef %275)
  %277 = mul i32 %274, %276
  %278 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %273, i32 noundef %277)
  %279 = load ptr, ptr %18, align 8, !tbaa !9
  %280 = call i32 @qpilotgen_destroy(ptr noundef %279)
  %281 = load ptr, ptr %19, align 8, !tbaa !9
  %282 = call i32 @qpilotsync_destroy(ptr noundef %281)
  %283 = load ptr, ptr %28, align 8, !tbaa !9
  %284 = call i32 @modemcf_destroy(ptr noundef %283)
  %285 = load ptr, ptr %29, align 8, !tbaa !9
  %286 = call i32 @modemcf_destroy(ptr noundef %285)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %287 = getelementptr inbounds [21 x i8], ptr %10, i64 0, i64 0
  %288 = call noalias ptr @fopen(ptr noundef %287, ptr noundef @.str.9)
  store ptr %288, ptr %36, align 8, !tbaa !9
  %289 = load ptr, ptr %36, align 8, !tbaa !9
  %290 = icmp ne ptr %289, null
  br i1 %290, label %295, label %291

291:                                              ; preds = %272
  %292 = load ptr, ptr @stderr, align 8, !tbaa !9
  %293 = getelementptr inbounds [21 x i8], ptr %10, i64 0, i64 0
  %294 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %292, ptr noundef @.str.10, ptr noundef %293) #9
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %410

295:                                              ; preds = %272
  %296 = load ptr, ptr %36, align 8, !tbaa !9
  %297 = getelementptr inbounds [21 x i8], ptr %10, i64 0, i64 0
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %296, ptr noundef @.str.11, ptr noundef %297) #9
  %299 = load ptr, ptr %36, align 8, !tbaa !9
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %299, ptr noundef @.str.12) #9
  %301 = load ptr, ptr %36, align 8, !tbaa !9
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %301, ptr noundef @.str.13) #9
  %303 = load ptr, ptr %36, align 8, !tbaa !9
  %304 = load i32, ptr %7, align 4, !tbaa !5
  %305 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.14, i32 noundef %304) #9
  %306 = load ptr, ptr %36, align 8, !tbaa !9
  %307 = load i32, ptr %20, align 4, !tbaa !5
  %308 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %306, ptr noundef @.str.15, i32 noundef %307) #9
  %309 = load ptr, ptr %36, align 8, !tbaa !9
  %310 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %309, ptr noundef @.str.16) #9
  %311 = load ptr, ptr %36, align 8, !tbaa !9
  %312 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %311, ptr noundef @.str.17) #9
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %313

313:                                              ; preds = %338, %295
  %314 = load i32, ptr %16, align 4, !tbaa !5
  %315 = load i32, ptr %20, align 4, !tbaa !5
  %316 = icmp ult i32 %314, %315
  br i1 %316, label %317, label %341

317:                                              ; preds = %313
  %318 = load ptr, ptr %36, align 8, !tbaa !9
  %319 = load i32, ptr %16, align 4, !tbaa !5
  %320 = add i32 %319, 1
  %321 = load i32, ptr %16, align 4, !tbaa !5
  %322 = zext i32 %321 to i64
  %323 = getelementptr inbounds { float, float }, ptr %87, i64 %322
  %324 = getelementptr inbounds { float, float }, ptr %323, i32 0, i32 0
  %325 = load float, ptr %324, align 8
  %326 = getelementptr inbounds { float, float }, ptr %323, i32 0, i32 1
  %327 = load float, ptr %326, align 4
  %328 = fpext float %325 to double
  %329 = load i32, ptr %16, align 4, !tbaa !5
  %330 = zext i32 %329 to i64
  %331 = getelementptr inbounds { float, float }, ptr %87, i64 %330
  %332 = getelementptr inbounds { float, float }, ptr %331, i32 0, i32 0
  %333 = load float, ptr %332, align 8
  %334 = getelementptr inbounds { float, float }, ptr %331, i32 0, i32 1
  %335 = load float, ptr %334, align 4
  %336 = fpext float %335 to double
  %337 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %318, ptr noundef @.str.18, i32 noundef %320, double noundef %328, double noundef %336) #9
  br label %338

338:                                              ; preds = %317
  %339 = load i32, ptr %16, align 4, !tbaa !5
  %340 = add i32 %339, 1
  store i32 %340, ptr %16, align 4, !tbaa !5
  br label %313, !llvm.loop !21

341:                                              ; preds = %313
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %342

342:                                              ; preds = %367, %341
  %343 = load i32, ptr %16, align 4, !tbaa !5
  %344 = load i32, ptr %7, align 4, !tbaa !5
  %345 = icmp ult i32 %343, %344
  br i1 %345, label %346, label %370

346:                                              ; preds = %342
  %347 = load ptr, ptr %36, align 8, !tbaa !9
  %348 = load i32, ptr %16, align 4, !tbaa !5
  %349 = add i32 %348, 1
  %350 = load i32, ptr %16, align 4, !tbaa !5
  %351 = zext i32 %350 to i64
  %352 = getelementptr inbounds { float, float }, ptr %90, i64 %351
  %353 = getelementptr inbounds { float, float }, ptr %352, i32 0, i32 0
  %354 = load float, ptr %353, align 8
  %355 = getelementptr inbounds { float, float }, ptr %352, i32 0, i32 1
  %356 = load float, ptr %355, align 4
  %357 = fpext float %354 to double
  %358 = load i32, ptr %16, align 4, !tbaa !5
  %359 = zext i32 %358 to i64
  %360 = getelementptr inbounds { float, float }, ptr %90, i64 %359
  %361 = getelementptr inbounds { float, float }, ptr %360, i32 0, i32 0
  %362 = load float, ptr %361, align 8
  %363 = getelementptr inbounds { float, float }, ptr %360, i32 0, i32 1
  %364 = load float, ptr %363, align 4
  %365 = fpext float %364 to double
  %366 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %347, ptr noundef @.str.19, i32 noundef %349, double noundef %357, double noundef %365) #9
  br label %367

367:                                              ; preds = %346
  %368 = load i32, ptr %16, align 4, !tbaa !5
  %369 = add i32 %368, 1
  store i32 %369, ptr %16, align 4, !tbaa !5
  br label %342, !llvm.loop !22

370:                                              ; preds = %342
  %371 = load ptr, ptr %36, align 8, !tbaa !9
  %372 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %371, ptr noundef @.str.20) #9
  %373 = load ptr, ptr %36, align 8, !tbaa !9
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef @.str.21) #9
  %375 = load ptr, ptr %36, align 8, !tbaa !9
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %375, ptr noundef @.str.22) #9
  %377 = load ptr, ptr %36, align 8, !tbaa !9
  %378 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %377, ptr noundef @.str.23) #9
  %379 = load ptr, ptr %36, align 8, !tbaa !9
  %380 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %379, ptr noundef @.str.24) #9
  %381 = load ptr, ptr %36, align 8, !tbaa !9
  %382 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %381, ptr noundef @.str.25) #9
  %383 = load ptr, ptr %36, align 8, !tbaa !9
  %384 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %383, ptr noundef @.str.26) #9
  %385 = load ptr, ptr %36, align 8, !tbaa !9
  %386 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %385, ptr noundef @.str.27) #9
  %387 = load ptr, ptr %36, align 8, !tbaa !9
  %388 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %387, ptr noundef @.str.28) #9
  %389 = load ptr, ptr %36, align 8, !tbaa !9
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %389, ptr noundef @.str.29) #9
  %391 = load ptr, ptr %36, align 8, !tbaa !9
  %392 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %391, ptr noundef @.str.30) #9
  %393 = load ptr, ptr %36, align 8, !tbaa !9
  %394 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %393, ptr noundef @.str.23) #9
  %395 = load ptr, ptr %36, align 8, !tbaa !9
  %396 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %395, ptr noundef @.str.24) #9
  %397 = load ptr, ptr %36, align 8, !tbaa !9
  %398 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %397, ptr noundef @.str.25) #9
  %399 = load ptr, ptr %36, align 8, !tbaa !9
  %400 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %399, ptr noundef @.str.26) #9
  %401 = load ptr, ptr %36, align 8, !tbaa !9
  %402 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %401, ptr noundef @.str.27) #9
  %403 = load ptr, ptr %36, align 8, !tbaa !9
  %404 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %403, ptr noundef @.str.31) #9
  %405 = load ptr, ptr %36, align 8, !tbaa !9
  %406 = call i32 @fclose(ptr noundef %405)
  %407 = getelementptr inbounds [21 x i8], ptr %10, i64 0, i64 0
  %408 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, ptr noundef %407)
  %409 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %410

410:                                              ; preds = %370, %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  %411 = load ptr, ptr %21, align 8
  call void @llvm.stackrestore.p0(ptr %411)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %412

412:                                              ; preds = %410, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 21, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  %413 = load i32, ptr %3, align 4
  ret i32 %413
}

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

; 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) #4

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #6

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #6

declare i32 @liquid_getopt_str2mod(ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #7

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

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

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

declare i32 @qpilotgen_print(ptr noundef) #1

declare i32 @qpilotgen_get_frame_len(ptr noundef) #1

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

declare ptr @modemcf_create(i32 noundef) #1

declare i32 @modemcf_gen_rand_sym(ptr noundef) #1

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

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

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

declare <2 x float> @__mulsc3(float, float, float, float)

declare float @randnf(...) #1

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

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

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

declare i32 @count_bit_errors(i32 noundef, i32 noundef) #1

declare i32 @modemcf_get_bps(ptr noundef) #1

declare i32 @qpilotgen_destroy(ptr noundef) #1

declare i32 @qpilotsync_destroy(ptr noundef) #1

declare i32 @modemcf_destroy(ptr noundef) #1

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare i32 @fclose(ptr noundef) #1

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint nounwind willreturn memory(read) 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 #7 = { noreturn 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 #8 = { nocallback nofree nosync nounwind willreturn }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = !{!"branch_weights", i32 1, i32 1048575}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !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.main.filename = external hidden unnamed_addr constant [21 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca [21 x i8], align 16
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 21, ptr nonnull %3) #11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(21) %3, ptr noundef nonnull align 16 dereferenceable(21) @__const.main.filename, i64 21, i1 false)
  br label %.outer

.outer:                                           ; preds = %14, %2
  %.0114.ph = phi float [ %17, %14 ], [ 2.000000e+01, %2 ]
  %.0112.ph = phi i32 [ %.0112.ph205, %14 ], [ 20, %2 ]
  %.0110.ph = phi i32 [ %.0110.ph209, %14 ], [ 400, %2 ]
  %.0108.ph = phi i32 [ %.0108, %14 ], [ 27, %2 ]
  br label %.outer204

.outer204:                                        ; preds = %.outer, %11
  %.0112.ph205 = phi i32 [ %.0112.ph, %.outer ], [ %13, %11 ]
  %.0110.ph206 = phi i32 [ %.0110.ph, %.outer ], [ %.0110.ph209, %11 ]
  %.0108.ph207 = phi i32 [ %.0108.ph, %.outer ], [ %.0108, %11 ]
  br label %.outer208

.outer208:                                        ; preds = %.outer204, %8
  %.0110.ph209 = phi i32 [ %.0110.ph206, %.outer204 ], [ %10, %8 ]
  %.0108.ph210 = phi i32 [ %.0108.ph207, %.outer204 ], [ %.0108, %8 ]
  br label %5

5:                                                ; preds = %.outer208, %18
  %.0108 = phi i32 [ %20, %18 ], [ %.0108.ph210, %.outer208 ]
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.7) #11
  switch i32 %6, label %21 [
    i32 -1, label %22
    i32 104, label %7
    i32 110, label %8
    i32 112, label %11
    i32 115, label %14
    i32 109, label %18
  ]

7:                                                ; preds = %5
  tail call void @usage()
  br label %164

8:                                                ; preds = %5
  %9 = load ptr, ptr @optarg, align 8, !tbaa !5
  %10 = tail call i32 @atoi(ptr nocapture noundef %9) #12
  br label %.outer208, !llvm.loop !9

11:                                               ; preds = %5
  %12 = load ptr, ptr @optarg, align 8, !tbaa !5
  %13 = tail call i32 @atoi(ptr nocapture noundef %12) #12
  br label %.outer204, !llvm.loop !9

14:                                               ; preds = %5
  %15 = load ptr, ptr @optarg, align 8, !tbaa !5
  %16 = tail call double @atof(ptr noundef %15) #12
  %17 = fptrunc double %16 to float
  br label %.outer, !llvm.loop !9

18:                                               ; preds = %5
  %19 = load ptr, ptr @optarg, align 8, !tbaa !5
  %20 = tail call i32 @liquid_getopt_str2mod(ptr noundef %19) #11
  br label %5, !llvm.loop !9

21:                                               ; preds = %5
  tail call void @exit(i32 noundef -1) #13
  unreachable

22:                                               ; preds = %5
  %23 = fdiv float %.0114.ph, -2.000000e+01
  %24 = tail call float @powf(float noundef 1.000000e+01, float noundef %23) #11
  %25 = tail call ptr @qpilotgen_create(i32 noundef %.0110.ph209, i32 noundef %.0112.ph205) #11
  %26 = tail call ptr @qpilotsync_create(i32 noundef %.0110.ph209, i32 noundef %.0112.ph205) #11
  %27 = tail call i32 @qpilotgen_print(ptr noundef %25) #11
  %28 = tail call i32 @qpilotgen_get_frame_len(ptr noundef %25) #11
  %29 = zext i32 %.0110.ph209 to i64
  %30 = tail call ptr @llvm.stacksave.p0()
  %31 = alloca i8, i64 %29, align 16
  %32 = alloca { float, float }, i64 %29, align 16
  %33 = zext i32 %28 to i64
  %34 = alloca { float, float }, i64 %33, align 16
  %35 = alloca { float, float }, i64 %33, align 16
  %36 = alloca { float, float }, i64 %29, align 16
  %37 = alloca i8, i64 %29, align 16
  %38 = tail call ptr @modemcf_create(i32 noundef %.0108) #11
  %39 = tail call ptr @modemcf_create(i32 noundef %.0108) #11
  %.not = icmp eq i32 %.0110.ph209, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %22, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %22 ]
  %40 = call i32 @modemcf_gen_rand_sym(ptr noundef %38) #11
  %41 = trunc i32 %40 to i8
  %42 = getelementptr inbounds i8, ptr %31, i64 %indvars.iv
  store i8 %41, ptr %42, align 1, !tbaa !11
  %43 = and i32 %40, 255
  %44 = getelementptr inbounds { float, float }, ptr %32, i64 %indvars.iv
  %45 = call i32 @modemcf_modulate(ptr noundef %38, i32 noundef %43, ptr noundef nonnull %44) #11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %29
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %22
  %46 = call i32 @qpilotgen_execute(ptr noundef %25, ptr noundef nonnull %32, ptr noundef nonnull %34) #11
  %.not149 = icmp eq i32 %28, 0
  br i1 %.not149, label %._crit_edge135, label %.lr.ph134.preheader

.lr.ph134.preheader:                              ; preds = %._crit_edge
  %47 = insertelement <2 x float> poison, float %24, i64 0
  %48 = shufflevector <2 x float> %47, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph134

.lr.ph134:                                        ; preds = %.lr.ph134.preheader, %77
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %77 ], [ 0, %.lr.ph134.preheader ]
  %49 = getelementptr inbounds { float, float }, ptr %34, i64 %indvars.iv163
  %50 = load float, ptr %49, align 8
  %51 = getelementptr inbounds i8, ptr %49, i64 4
  %52 = load float, ptr %51, align 4
  %53 = trunc nuw i64 %indvars.iv163 to i32
  %54 = uitofp i32 %53 to float
  %55 = fmul float %54, 0x3F7EB851E0000000
  %56 = fsub float 0x400170A3E0000000, %55
  %.sroa.032.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %56, i64 1
  %57 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.032.4.vec.insert) #11
  %58 = insertelement <2 x float> poison, float %50, i64 0
  %59 = shufflevector <2 x float> %58, <2 x float> poison, <2 x i32> zeroinitializer
  %60 = fmul <2 x float> %59, %57
  %61 = insertelement <2 x float> poison, float %52, i64 0
  %62 = shufflevector <2 x float> %61, <2 x float> poison, <2 x i32> zeroinitializer
  %63 = fmul <2 x float> %62, %57
  %64 = shufflevector <2 x float> %63, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %65 = fsub <2 x float> %60, %64
  %66 = fadd <2 x float> %60, %64
  %67 = shufflevector <2 x float> %65, <2 x float> %66, <2 x i32> <i32 0, i32 3>
  %68 = extractelement <2 x float> %65, i64 0
  %69 = fcmp uno float %68, 0.000000e+00
  br i1 %69, label %70, label %77, !prof !13

70:                                               ; preds = %.lr.ph134
  %71 = extractelement <2 x float> %66, i64 1
  %72 = fcmp uno float %71, 0.000000e+00
  br i1 %72, label %73, label %77, !prof !13

73:                                               ; preds = %70
  %74 = extractelement <2 x float> %57, i64 0
  %75 = extractelement <2 x float> %57, i64 1
  %76 = call <2 x float> @__mulsc3(float noundef %50, float noundef %52, float noundef %74, float noundef %75) #11
  br label %77

77:                                               ; preds = %73, %70, %.lr.ph134
  %78 = phi <2 x float> [ %67, %.lr.ph134 ], [ %67, %70 ], [ %76, %73 ]
  %79 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv163
  %80 = call float (...) @randnf() #11
  %81 = call float (...) @randnf() #11
  %82 = fmul float %81, 0.000000e+00
  %83 = fadd float %80, %82
  %84 = fpext <2 x float> %78 to <2 x double>
  %85 = insertelement <2 x float> poison, float %83, i64 0
  %86 = insertelement <2 x float> %85, float %81, i64 1
  %87 = fmul <2 x float> %48, %86
  %88 = fpext <2 x float> %87 to <2 x double>
  %89 = fmul <2 x double> %88, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %90 = fadd <2 x double> %89, %84
  %91 = fptrunc <2 x double> %90 to <2 x float>
  %92 = fmul <2 x float> %91, <float 5.000000e-01, float 5.000000e-01>
  store <2 x float> %92, ptr %79, align 8
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next164, %33
  br i1 %exitcond167.not, label %._crit_edge135, label %.lr.ph134, !llvm.loop !14

._crit_edge135:                                   ; preds = %77, %._crit_edge
  %93 = call i32 @qpilotsync_execute(ptr noundef %26, ptr noundef nonnull %35, ptr noundef nonnull %36) #11
  br i1 %.not, label %._crit_edge142, label %.lr.ph138

.preheader122:                                    ; preds = %.lr.ph138
  br i1 %.not, label %._crit_edge142, label %.lr.ph141

.lr.ph138:                                        ; preds = %._crit_edge135, %.lr.ph138
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %.lr.ph138 ], [ 0, %._crit_edge135 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #11
  %94 = getelementptr inbounds { float, float }, ptr %36, i64 %indvars.iv168
  %95 = load <2 x float>, ptr %94, align 8
  %96 = call i32 @modemcf_demodulate(ptr noundef %39, <2 x float> noundef %95, ptr noundef nonnull %4) #11
  %97 = load i32, ptr %4, align 4, !tbaa !15
  %98 = trunc i32 %97 to i8
  %99 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv168
  store i8 %98, ptr %99, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #11
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %exitcond172.not = icmp eq i64 %indvars.iv.next169, %29
  br i1 %exitcond172.not, label %.preheader122, label %.lr.ph138, !llvm.loop !17

.lr.ph141:                                        ; preds = %.preheader122, %.lr.ph141
  %indvars.iv173 = phi i64 [ %indvars.iv.next174, %.lr.ph141 ], [ 0, %.preheader122 ]
  %.0107140 = phi i32 [ %107, %.lr.ph141 ], [ 0, %.preheader122 ]
  %100 = getelementptr inbounds i8, ptr %37, i64 %indvars.iv173
  %101 = load i8, ptr %100, align 1, !tbaa !11
  %102 = zext i8 %101 to i32
  %103 = getelementptr inbounds i8, ptr %31, i64 %indvars.iv173
  %104 = load i8, ptr %103, align 1, !tbaa !11
  %105 = zext i8 %104 to i32
  %106 = call i32 @count_bit_errors(i32 noundef %102, i32 noundef %105) #11
  %107 = add i32 %106, %.0107140
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  %exitcond177.not = icmp eq i64 %indvars.iv.next174, %29
  br i1 %exitcond177.not, label %._crit_edge142, label %.lr.ph141, !llvm.loop !18

._crit_edge142:                                   ; preds = %.lr.ph141, %._crit_edge135, %.preheader122
  %.0107.lcssa = phi i32 [ 0, %.preheader122 ], [ 0, %._crit_edge135 ], [ %107, %.lr.ph141 ]
  %108 = call i32 @modemcf_get_bps(ptr noundef %38) #11
  %109 = mul i32 %108, %.0110.ph209
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %.0107.lcssa, i32 noundef %109)
  %111 = call i32 @qpilotgen_destroy(ptr noundef %25) #11
  %112 = call i32 @qpilotsync_destroy(ptr noundef %26) #11
  %113 = call i32 @modemcf_destroy(ptr noundef %38) #11
  %114 = call i32 @modemcf_destroy(ptr noundef %39) #11
  %115 = call noalias ptr @fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str.9)
  %.not121 = icmp eq ptr %115, null
  br i1 %.not121, label %116, label %119

116:                                              ; preds = %._crit_edge142
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef nonnull @.str.10, ptr noundef nonnull %3) #14
  br label %163

119:                                              ; preds = %._crit_edge142
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.11, ptr noundef nonnull %3) #11
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.12) #11
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.13) #11
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.14, i32 noundef %.0110.ph209) #11
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.15, i32 noundef %28) #11
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.16) #11
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.17) #11
  br i1 %.not149, label %.preheader, label %.lr.ph145

.preheader:                                       ; preds = %.lr.ph145, %119
  br i1 %.not, label %._crit_edge148, label %.lr.ph147

.lr.ph145:                                        ; preds = %119, %.lr.ph145
  %indvars.iv178 = phi i64 [ %indvars.iv.next179, %.lr.ph145 ], [ 0, %119 ]
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %127 = getelementptr inbounds { float, float }, ptr %35, i64 %indvars.iv178
  %128 = load float, ptr %127, align 8
  %129 = getelementptr inbounds i8, ptr %127, i64 4
  %130 = fpext float %128 to double
  %131 = load float, ptr %129, align 4
  %132 = fpext float %131 to double
  %133 = trunc nuw i64 %indvars.iv.next179 to i32
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.18, i32 noundef %133, double noundef %130, double noundef %132) #11
  %exitcond182.not = icmp eq i64 %indvars.iv.next179, %33
  br i1 %exitcond182.not, label %.preheader, label %.lr.ph145, !llvm.loop !19

.lr.ph147:                                        ; preds = %.preheader, %.lr.ph147
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %.lr.ph147 ], [ 0, %.preheader ]
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %135 = getelementptr inbounds { float, float }, ptr %36, i64 %indvars.iv183
  %136 = load float, ptr %135, align 8
  %137 = getelementptr inbounds i8, ptr %135, i64 4
  %138 = fpext float %136 to double
  %139 = load float, ptr %137, align 4
  %140 = fpext float %139 to double
  %141 = trunc nuw i64 %indvars.iv.next184 to i32
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.19, i32 noundef %141, double noundef %138, double noundef %140) #11
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %29
  br i1 %exitcond187.not, label %._crit_edge148, label %.lr.ph147, !llvm.loop !20

._crit_edge148:                                   ; preds = %.lr.ph147, %.preheader
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.20) #11
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.21) #11
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.22) #11
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.23) #11
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.24) #11
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.25) #11
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.26) #11
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.27) #11
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.28) #11
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.29) #11
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.30) #11
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.23) #11
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.24) #11
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.25) #11
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.26) #11
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.27) #11
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.31) #11
  %160 = call i32 @fclose(ptr noundef %115)
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, ptr noundef nonnull %3)
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33)
  br label %163

163:                                              ; preds = %._crit_edge148, %116
  %.0 = phi i32 [ 0, %._crit_edge148 ], [ -1, %116 ]
  call void @llvm.stackrestore.p0(ptr %30)
  br label %164

164:                                              ; preds = %163, %7
  %.1 = phi i32 [ 0, %7 ], [ %.0, %163 ]
  call void @llvm.lifetime.end.p0(i64 21, ptr nonnull %3) #11
  ret i32 %.1
}

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

; 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) #4

; Function Attrs: nounwind
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #6

declare i32 @liquid_getopt_str2mod(ptr noundef) local_unnamed_addr #7

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float noundef) local_unnamed_addr #9

declare ptr @qpilotgen_create(i32 noundef, i32 noundef) local_unnamed_addr #7

declare ptr @qpilotsync_create(i32 noundef, i32 noundef) local_unnamed_addr #7

declare i32 @qpilotgen_print(ptr noundef) local_unnamed_addr #7

declare i32 @qpilotgen_get_frame_len(ptr noundef) local_unnamed_addr #7

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

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #7

declare i32 @modemcf_gen_rand_sym(ptr noundef) local_unnamed_addr #7

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

declare i32 @qpilotgen_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

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

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

declare float @randnf(...) local_unnamed_addr #7

declare i32 @qpilotsync_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

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

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

declare i32 @count_bit_errors(i32 noundef, i32 noundef) local_unnamed_addr #7

declare i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #7

declare i32 @qpilotgen_destroy(ptr noundef) local_unnamed_addr #7

declare i32 @qpilotsync_destroy(ptr noundef) local_unnamed_addr #7

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #7 = { "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 = { noreturn 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 = { 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 #10 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { noreturn nounwind }
attributes #14 = { cold 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = !{!"branch_weights", i32 1, i32 1048575}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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