; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (qpilotsync_autotest)

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

@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @qpilotsync_test(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i64, 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 ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca { float, float }, align 4
  %30 = alloca { float, float }, align 4
  %31 = alloca { float, float }, align 4
  %32 = alloca i32, align 4
  %33 = alloca { float, float }, align 4
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !5
  store float %3, ptr %11, align 4, !tbaa !9
  store float %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !9
  store float %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %39 = load float, ptr %14, align 4, !tbaa !9
  %40 = fneg float %39
  %41 = fdiv float %40, 2.000000e+01
  %42 = call float @powf(float noundef 1.000000e+01, float noundef %41) #6
  store float %42, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = call ptr @qpilotgen_create(i32 noundef %43, i32 noundef %44)
  store ptr %45, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = call ptr @qpilotsync_create(i32 noundef %46, i32 noundef %47)
  store ptr %48, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %49 = load ptr, ptr %17, align 8, !tbaa !11
  %50 = call i32 @qpilotgen_get_frame_len(ptr noundef %49)
  store i32 %50, ptr %19, align 4, !tbaa !5
  %51 = load i32, ptr %19, align 4, !tbaa !5
  %52 = load ptr, ptr %18, align 8, !tbaa !11
  %53 = call i32 @qpilotsync_get_frame_len(ptr noundef %52)
  %54 = icmp ne i32 %51, %53
  br i1 %54, label %55, label %61

55:                                               ; preds = %7
  %56 = load i32, ptr %19, align 4, !tbaa !5
  %57 = uitofp i32 %56 to double
  %58 = load ptr, ptr %18, align 8, !tbaa !11
  %59 = call i32 @qpilotsync_get_frame_len(ptr noundef %58)
  %60 = uitofp i32 %59 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 50, ptr noundef @.str.1, double noundef %57, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %60)
  br label %62

61:                                               ; preds = %7
  call void (...) @liquid_autotest_passed()
  br label %62

62:                                               ; preds = %61, %55
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = zext i32 %63 to i64
  %65 = call ptr @llvm.stacksave.p0()
  store ptr %65, ptr %20, align 8
  %66 = alloca i8, i64 %64, align 16
  store i64 %64, ptr %21, align 8
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = zext i32 %67 to i64
  %69 = alloca { float, float }, i64 %68, align 16
  store i64 %68, ptr %22, align 8
  %70 = load i32, ptr %19, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = alloca { float, float }, i64 %71, align 16
  store i64 %71, ptr %23, align 8
  %73 = load i32, ptr %19, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = alloca { float, float }, i64 %74, align 16
  store i64 %74, ptr %24, align 8
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = alloca { float, float }, i64 %77, align 16
  store i64 %77, ptr %25, align 8
  %79 = load i32, ptr %9, align 4, !tbaa !5
  %80 = zext i32 %79 to i64
  %81 = alloca i8, i64 %80, align 16
  store i64 %80, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = call ptr @modemcf_create(i32 noundef %82)
  store ptr %83, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = call ptr @modemcf_create(i32 noundef %84)
  store ptr %85, ptr %28, align 8, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %107, %62
  %87 = load i32, ptr %15, align 4, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = icmp ult i32 %87, %88
  br i1 %89, label %90, label %110

90:                                               ; preds = %86
  %91 = load ptr, ptr %27, align 8, !tbaa !11
  %92 = call i32 @modemcf_gen_rand_sym(ptr noundef %91)
  %93 = trunc i32 %92 to i8
  %94 = load i32, ptr %15, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds i8, ptr %66, i64 %95
  store i8 %93, ptr %96, align 1, !tbaa !13
  %97 = load ptr, ptr %27, align 8, !tbaa !11
  %98 = load i32, ptr %15, align 4, !tbaa !5
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds i8, ptr %66, i64 %99
  %101 = load i8, ptr %100, align 1, !tbaa !13
  %102 = zext i8 %101 to i32
  %103 = load i32, ptr %15, align 4, !tbaa !5
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds { float, float }, ptr %69, i64 %104
  %106 = call i32 @modemcf_modulate(ptr noundef %97, i32 noundef %102, ptr noundef %105)
  br label %107

107:                                              ; preds = %90
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = add i32 %108, 1
  store i32 %109, ptr %15, align 4, !tbaa !5
  br label %86, !llvm.loop !14

110:                                              ; preds = %86
  %111 = load ptr, ptr %17, align 8, !tbaa !11
  %112 = call i32 @qpilotgen_execute(ptr noundef %111, ptr noundef %69, ptr noundef %72)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %207, %110
  %114 = load i32, ptr %15, align 4, !tbaa !5
  %115 = load i32, ptr %19, align 4, !tbaa !5
  %116 = icmp ult i32 %114, %115
  br i1 %116, label %117, label %210

117:                                              ; preds = %113
  %118 = load i32, ptr %15, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds { float, float }, ptr %72, i64 %119
  %121 = getelementptr inbounds { float, float }, ptr %120, i32 0, i32 0
  %122 = load float, ptr %121, align 8
  %123 = getelementptr inbounds { float, float }, ptr %120, i32 0, i32 1
  %124 = load float, ptr %123, align 4
  %125 = load float, ptr %11, align 4, !tbaa !9
  %126 = fmul float 0.000000e+00, %125
  %127 = fmul float 1.000000e+00, %125
  %128 = load i32, ptr %15, align 4, !tbaa !5
  %129 = uitofp i32 %128 to float
  %130 = fmul float %126, %129
  %131 = fmul float %127, %129
  %132 = load float, ptr %12, align 4, !tbaa !9
  %133 = fmul float 0.000000e+00, %132
  %134 = fmul float 1.000000e+00, %132
  %135 = fadd float %130, %133
  %136 = fadd float %131, %134
  %137 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %138 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  store float %135, ptr %137, align 4
  store float %136, ptr %138, align 4
  %139 = load <2 x float>, ptr %29, align 4
  %140 = call <2 x float> @cexpf(<2 x float> noundef %139) #6
  store <2 x float> %140, ptr %30, align 4
  %141 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %142 = load float, ptr %141, align 4
  %143 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  %144 = load float, ptr %143, align 4
  %145 = fmul float %122, %142
  %146 = fmul float %124, %144
  %147 = fmul float %122, %144
  %148 = fmul float %124, %142
  %149 = fsub float %145, %146
  %150 = fadd float %147, %148
  %151 = fcmp uno float %149, %149
  br i1 %151, label %152, label %160, !prof !16

152:                                              ; preds = %117
  %153 = fcmp uno float %150, %150
  br i1 %153, label %154, label %160, !prof !16

154:                                              ; preds = %152
  %155 = call <2 x float> @__mulsc3(float noundef %122, float noundef %124, float noundef %142, float noundef %144) #6
  store <2 x float> %155, ptr %31, align 4
  %156 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %157 = load float, ptr %156, align 4
  %158 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  br label %160

160:                                              ; preds = %154, %152, %117
  %161 = phi float [ %149, %117 ], [ %149, %152 ], [ %157, %154 ]
  %162 = phi float [ %150, %117 ], [ %150, %152 ], [ %159, %154 ]
  %163 = load i32, ptr %15, align 4, !tbaa !5
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds { float, float }, ptr %75, i64 %164
  %166 = getelementptr inbounds { float, float }, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds { float, float }, ptr %165, i32 0, i32 1
  store float %161, ptr %166, align 8
  store float %162, ptr %167, align 4
  %168 = load float, ptr %16, align 4, !tbaa !9
  %169 = call float (...) @randnf()
  %170 = call float (...) @randnf()
  %171 = fmul float 0.000000e+00, %170
  %172 = fmul float 1.000000e+00, %170
  %173 = fadd float %169, %171
  %174 = fmul float %168, %173
  %175 = fmul float %168, %172
  %176 = fpext float %174 to double
  %177 = fpext float %175 to double
  %178 = fmul double %176, 0x3FE6A09E667F3BCD
  %179 = fmul double %177, 0x3FE6A09E667F3BCD
  %180 = load i32, ptr %15, align 4, !tbaa !5
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds { float, float }, ptr %75, i64 %181
  %183 = getelementptr inbounds { float, float }, ptr %182, i32 0, i32 0
  %184 = load float, ptr %183, align 8
  %185 = getelementptr inbounds { float, float }, ptr %182, i32 0, i32 1
  %186 = load float, ptr %185, align 4
  %187 = fpext float %184 to double
  %188 = fpext float %186 to double
  %189 = fadd double %187, %178
  %190 = fadd double %188, %179
  %191 = fptrunc double %189 to float
  %192 = fptrunc double %190 to float
  %193 = getelementptr inbounds { float, float }, ptr %182, i32 0, i32 0
  %194 = getelementptr inbounds { float, float }, ptr %182, i32 0, i32 1
  store float %191, ptr %193, align 8
  store float %192, ptr %194, align 4
  %195 = load float, ptr %13, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !5
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds { float, float }, ptr %75, i64 %197
  %199 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 0
  %200 = load float, ptr %199, align 8
  %201 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 1
  %202 = load float, ptr %201, align 4
  %203 = fmul float %200, %195
  %204 = fmul float %202, %195
  %205 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 0
  %206 = getelementptr inbounds { float, float }, ptr %198, i32 0, i32 1
  store float %203, ptr %205, align 8
  store float %204, ptr %206, align 4
  br label %207

207:                                              ; preds = %160
  %208 = load i32, ptr %15, align 4, !tbaa !5
  %209 = add i32 %208, 1
  store i32 %209, ptr %15, align 4, !tbaa !5
  br label %113, !llvm.loop !17

210:                                              ; preds = %113
  %211 = load ptr, ptr %18, align 8, !tbaa !11
  %212 = call i32 @qpilotsync_execute(ptr noundef %211, ptr noundef %75, ptr noundef %78)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %235, %210
  %214 = load i32, ptr %15, align 4, !tbaa !5
  %215 = load i32, ptr %9, align 4, !tbaa !5
  %216 = icmp ult i32 %214, %215
  br i1 %216, label %217, label %238

217:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %218 = load ptr, ptr %28, align 8, !tbaa !11
  %219 = load i32, ptr %15, align 4, !tbaa !5
  %220 = zext i32 %219 to i64
  %221 = getelementptr inbounds { float, float }, ptr %78, i64 %220
  %222 = getelementptr inbounds { float, float }, ptr %221, i32 0, i32 0
  %223 = load float, ptr %222, align 8
  %224 = getelementptr inbounds { float, float }, ptr %221, i32 0, i32 1
  %225 = load float, ptr %224, align 4
  %226 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 0
  %227 = getelementptr inbounds { float, float }, ptr %33, i32 0, i32 1
  store float %223, ptr %226, align 4
  store float %225, ptr %227, align 4
  %228 = load <2 x float>, ptr %33, align 4
  %229 = call i32 @modemcf_demodulate(ptr noundef %218, <2 x float> noundef %228, ptr noundef %32)
  %230 = load i32, ptr %32, align 4, !tbaa !5
  %231 = trunc i32 %230 to i8
  %232 = load i32, ptr %15, align 4, !tbaa !5
  %233 = zext i32 %232 to i64
  %234 = getelementptr inbounds i8, ptr %81, i64 %233
  store i8 %231, ptr %234, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %235

235:                                              ; preds = %217
  %236 = load i32, ptr %15, align 4, !tbaa !5
  %237 = add i32 %236, 1
  store i32 %237, ptr %15, align 4, !tbaa !5
  br label %213, !llvm.loop !18

238:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %257, %238
  %240 = load i32, ptr %15, align 4, !tbaa !5
  %241 = load i32, ptr %9, align 4, !tbaa !5
  %242 = icmp ult i32 %240, %241
  br i1 %242, label %243, label %260

243:                                              ; preds = %239
  %244 = load i32, ptr %15, align 4, !tbaa !5
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds i8, ptr %81, i64 %245
  %247 = load i8, ptr %246, align 1, !tbaa !13
  %248 = zext i8 %247 to i32
  %249 = load i32, ptr %15, align 4, !tbaa !5
  %250 = zext i32 %249 to i64
  %251 = getelementptr inbounds i8, ptr %66, i64 %250
  %252 = load i8, ptr %251, align 1, !tbaa !13
  %253 = zext i8 %252 to i32
  %254 = call i32 @count_bit_errors(i32 noundef %248, i32 noundef %253)
  %255 = load i32, ptr %34, align 4, !tbaa !5
  %256 = add i32 %255, %254
  store i32 %256, ptr %34, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %243
  %258 = load i32, ptr %15, align 4, !tbaa !5
  %259 = add i32 %258, 1
  store i32 %259, ptr %15, align 4, !tbaa !5
  br label %239, !llvm.loop !19

260:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %261 = load ptr, ptr %18, align 8, !tbaa !11
  %262 = call float @qpilotsync_get_dphi(ptr noundef %261)
  store float %262, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %263 = load ptr, ptr %18, align 8, !tbaa !11
  %264 = call float @qpilotsync_get_phi(ptr noundef %263)
  store float %264, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %265 = load ptr, ptr %18, align 8, !tbaa !11
  %266 = call float @qpilotsync_get_gain(ptr noundef %265)
  store float %266, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %267 = load ptr, ptr %18, align 8, !tbaa !11
  %268 = call float @qpilotsync_get_evm(ptr noundef %267)
  store float %268, ptr %38, align 4, !tbaa !9
  %269 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %317

271:                                              ; preds = %260
  %272 = load ptr, ptr %17, align 8, !tbaa !11
  %273 = call i32 @qpilotgen_print(ptr noundef %272)
  %274 = load i32, ptr %34, align 4, !tbaa !5
  %275 = load i32, ptr %9, align 4, !tbaa !5
  %276 = load ptr, ptr %27, align 8, !tbaa !11
  %277 = call i32 @modemcf_get_bps(ptr noundef %276)
  %278 = mul i32 %275, %277
  %279 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %274, i32 noundef %278)
  %280 = load float, ptr %35, align 4, !tbaa !9
  %281 = fpext float %280 to double
  %282 = load float, ptr %11, align 4, !tbaa !9
  %283 = fpext float %282 to double
  %284 = load float, ptr %11, align 4, !tbaa !9
  %285 = load float, ptr %35, align 4, !tbaa !9
  %286 = fsub float %284, %285
  %287 = fpext float %286 to double
  %288 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %281, double noundef %283, double noundef %287)
  %289 = load float, ptr %36, align 4, !tbaa !9
  %290 = fpext float %289 to double
  %291 = load float, ptr %12, align 4, !tbaa !9
  %292 = fpext float %291 to double
  %293 = load float, ptr %12, align 4, !tbaa !9
  %294 = load float, ptr %36, align 4, !tbaa !9
  %295 = fsub float %293, %294
  %296 = fpext float %295 to double
  %297 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %290, double noundef %292, double noundef %296)
  %298 = load float, ptr %37, align 4, !tbaa !9
  %299 = fpext float %298 to double
  %300 = load float, ptr %13, align 4, !tbaa !9
  %301 = fpext float %300 to double
  %302 = load float, ptr %13, align 4, !tbaa !9
  %303 = load float, ptr %37, align 4, !tbaa !9
  %304 = fsub float %302, %303
  %305 = fpext float %304 to double
  %306 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %299, double noundef %301, double noundef %305)
  %307 = load float, ptr %38, align 4, !tbaa !9
  %308 = fpext float %307 to double
  %309 = load float, ptr %14, align 4, !tbaa !9
  %310 = fneg float %309
  %311 = fpext float %310 to double
  %312 = load float, ptr %14, align 4, !tbaa !9
  %313 = load float, ptr %38, align 4, !tbaa !9
  %314 = fadd float %312, %313
  %315 = fpext float %314 to double
  %316 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %308, double noundef %311, double noundef %315)
  br label %317

317:                                              ; preds = %271, %260
  %318 = load float, ptr %35, align 4, !tbaa !9
  %319 = load float, ptr %11, align 4, !tbaa !9
  %320 = fsub float %318, %319
  %321 = fpext float %320 to double
  %322 = load float, ptr %35, align 4, !tbaa !9
  %323 = load float, ptr %11, align 4, !tbaa !9
  %324 = fsub float %322, %323
  %325 = fpext float %324 to double
  %326 = load float, ptr %35, align 4, !tbaa !9
  %327 = load float, ptr %11, align 4, !tbaa !9
  %328 = fsub float %326, %327
  %329 = fpext float %328 to double
  %330 = load float, ptr %35, align 4, !tbaa !9
  %331 = load float, ptr %11, align 4, !tbaa !9
  %332 = fsub float %330, %331
  %333 = fpext float %332 to double
  %334 = call double @llvm.fmuladd.f64(double %321, double %325, double 0.000000e+00)
  %335 = call double @sqrt(double noundef %334) #6
  %336 = fcmp ogt double %335, 0x3F847AE140000000
  br i1 %336, label %349, label %337

337:                                              ; preds = %317
  %338 = load float, ptr %35, align 4, !tbaa !9
  %339 = call i1 @llvm.is.fpclass.f32(float %338, i32 3)
  br i1 %339, label %349, label %340

340:                                              ; preds = %337
  %341 = load float, ptr %35, align 4, !tbaa !9
  %342 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %342, label %349, label %343

343:                                              ; preds = %340
  %344 = load float, ptr %11, align 4, !tbaa !9
  %345 = call i1 @llvm.is.fpclass.f32(float %344, i32 3)
  br i1 %345, label %349, label %346

346:                                              ; preds = %343
  %347 = load float, ptr %11, align 4, !tbaa !9
  %348 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %348, label %349, label %368

349:                                              ; preds = %346, %343, %340, %337, %317
  %350 = load float, ptr %35, align 4, !tbaa !9
  %351 = load float, ptr %11, align 4, !tbaa !9
  %352 = fsub float %350, %351
  %353 = fpext float %352 to double
  %354 = load float, ptr %35, align 4, !tbaa !9
  %355 = load float, ptr %11, align 4, !tbaa !9
  %356 = fsub float %354, %355
  %357 = fpext float %356 to double
  %358 = load float, ptr %35, align 4, !tbaa !9
  %359 = load float, ptr %11, align 4, !tbaa !9
  %360 = fsub float %358, %359
  %361 = fpext float %360 to double
  %362 = load float, ptr %35, align 4, !tbaa !9
  %363 = load float, ptr %11, align 4, !tbaa !9
  %364 = fsub float %362, %363
  %365 = fpext float %364 to double
  %366 = call double @llvm.fmuladd.f64(double %353, double %357, double 0.000000e+00)
  %367 = call double @sqrt(double noundef %366) #6
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 119, ptr noundef @.str.9, double noundef %367, ptr noundef @.str.10, ptr noundef @.str.11, double noundef 0x3F847AE140000000)
  br label %369

368:                                              ; preds = %346
  call void (...) @liquid_autotest_passed()
  br label %369

369:                                              ; preds = %368, %349
  %370 = load float, ptr %36, align 4, !tbaa !9
  %371 = load float, ptr %12, align 4, !tbaa !9
  %372 = fsub float %370, %371
  %373 = fpext float %372 to double
  %374 = load float, ptr %36, align 4, !tbaa !9
  %375 = load float, ptr %12, align 4, !tbaa !9
  %376 = fsub float %374, %375
  %377 = fpext float %376 to double
  %378 = load float, ptr %36, align 4, !tbaa !9
  %379 = load float, ptr %12, align 4, !tbaa !9
  %380 = fsub float %378, %379
  %381 = fpext float %380 to double
  %382 = load float, ptr %36, align 4, !tbaa !9
  %383 = load float, ptr %12, align 4, !tbaa !9
  %384 = fsub float %382, %383
  %385 = fpext float %384 to double
  %386 = call double @llvm.fmuladd.f64(double %373, double %377, double 0.000000e+00)
  %387 = call double @sqrt(double noundef %386) #6
  %388 = fcmp ogt double %387, 0x3FB645A1C0000000
  br i1 %388, label %401, label %389

389:                                              ; preds = %369
  %390 = load float, ptr %36, align 4, !tbaa !9
  %391 = call i1 @llvm.is.fpclass.f32(float %390, i32 3)
  br i1 %391, label %401, label %392

392:                                              ; preds = %389
  %393 = load float, ptr %36, align 4, !tbaa !9
  %394 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %394, label %401, label %395

395:                                              ; preds = %392
  %396 = load float, ptr %12, align 4, !tbaa !9
  %397 = call i1 @llvm.is.fpclass.f32(float %396, i32 3)
  br i1 %397, label %401, label %398

398:                                              ; preds = %395
  %399 = load float, ptr %12, align 4, !tbaa !9
  %400 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %400, label %401, label %420

401:                                              ; preds = %398, %395, %392, %389, %369
  %402 = load float, ptr %36, align 4, !tbaa !9
  %403 = load float, ptr %12, align 4, !tbaa !9
  %404 = fsub float %402, %403
  %405 = fpext float %404 to double
  %406 = load float, ptr %36, align 4, !tbaa !9
  %407 = load float, ptr %12, align 4, !tbaa !9
  %408 = fsub float %406, %407
  %409 = fpext float %408 to double
  %410 = load float, ptr %36, align 4, !tbaa !9
  %411 = load float, ptr %12, align 4, !tbaa !9
  %412 = fsub float %410, %411
  %413 = fpext float %412 to double
  %414 = load float, ptr %36, align 4, !tbaa !9
  %415 = load float, ptr %12, align 4, !tbaa !9
  %416 = fsub float %414, %415
  %417 = fpext float %416 to double
  %418 = call double @llvm.fmuladd.f64(double %405, double %409, double 0.000000e+00)
  %419 = call double @sqrt(double noundef %418) #6
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 120, ptr noundef @.str.12, double noundef %419, ptr noundef @.str.10, ptr noundef @.str.13, double noundef 0x3FB645A1C0000000)
  br label %421

420:                                              ; preds = %398
  call void (...) @liquid_autotest_passed()
  br label %421

421:                                              ; preds = %420, %401
  %422 = load float, ptr %37, align 4, !tbaa !9
  %423 = load float, ptr %13, align 4, !tbaa !9
  %424 = fsub float %422, %423
  %425 = fpext float %424 to double
  %426 = load float, ptr %37, align 4, !tbaa !9
  %427 = load float, ptr %13, align 4, !tbaa !9
  %428 = fsub float %426, %427
  %429 = fpext float %428 to double
  %430 = load float, ptr %37, align 4, !tbaa !9
  %431 = load float, ptr %13, align 4, !tbaa !9
  %432 = fsub float %430, %431
  %433 = fpext float %432 to double
  %434 = load float, ptr %37, align 4, !tbaa !9
  %435 = load float, ptr %13, align 4, !tbaa !9
  %436 = fsub float %434, %435
  %437 = fpext float %436 to double
  %438 = call double @llvm.fmuladd.f64(double %425, double %429, double 0.000000e+00)
  %439 = call double @sqrt(double noundef %438) #6
  %440 = fcmp ogt double %439, 0x3F847AE140000000
  br i1 %440, label %453, label %441

441:                                              ; preds = %421
  %442 = load float, ptr %37, align 4, !tbaa !9
  %443 = call i1 @llvm.is.fpclass.f32(float %442, i32 3)
  br i1 %443, label %453, label %444

444:                                              ; preds = %441
  %445 = load float, ptr %37, align 4, !tbaa !9
  %446 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %446, label %453, label %447

447:                                              ; preds = %444
  %448 = load float, ptr %13, align 4, !tbaa !9
  %449 = call i1 @llvm.is.fpclass.f32(float %448, i32 3)
  br i1 %449, label %453, label %450

450:                                              ; preds = %447
  %451 = load float, ptr %13, align 4, !tbaa !9
  %452 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %452, label %453, label %472

453:                                              ; preds = %450, %447, %444, %441, %421
  %454 = load float, ptr %37, align 4, !tbaa !9
  %455 = load float, ptr %13, align 4, !tbaa !9
  %456 = fsub float %454, %455
  %457 = fpext float %456 to double
  %458 = load float, ptr %37, align 4, !tbaa !9
  %459 = load float, ptr %13, align 4, !tbaa !9
  %460 = fsub float %458, %459
  %461 = fpext float %460 to double
  %462 = load float, ptr %37, align 4, !tbaa !9
  %463 = load float, ptr %13, align 4, !tbaa !9
  %464 = fsub float %462, %463
  %465 = fpext float %464 to double
  %466 = load float, ptr %37, align 4, !tbaa !9
  %467 = load float, ptr %13, align 4, !tbaa !9
  %468 = fsub float %466, %467
  %469 = fpext float %468 to double
  %470 = call double @llvm.fmuladd.f64(double %457, double %461, double 0.000000e+00)
  %471 = call double @sqrt(double noundef %470) #6
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 121, ptr noundef @.str.14, double noundef %471, ptr noundef @.str.10, ptr noundef @.str.11, double noundef 0x3F847AE140000000)
  br label %473

472:                                              ; preds = %450
  call void (...) @liquid_autotest_passed()
  br label %473

473:                                              ; preds = %472, %453
  %474 = load i32, ptr %34, align 4, !tbaa !5
  %475 = icmp ne i32 %474, 0
  br i1 %475, label %476, label %479

476:                                              ; preds = %473
  %477 = load i32, ptr %34, align 4, !tbaa !5
  %478 = uitofp i32 %477 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 123, ptr noundef @.str.15, double noundef %478, ptr noundef @.str.2, ptr noundef @.str.16, double noundef 0.000000e+00)
  br label %480

479:                                              ; preds = %473
  call void (...) @liquid_autotest_passed()
  br label %480

480:                                              ; preds = %479, %476
  %481 = load ptr, ptr %17, align 8, !tbaa !11
  %482 = call i32 @qpilotgen_destroy(ptr noundef %481)
  %483 = load ptr, ptr %18, align 8, !tbaa !11
  %484 = call i32 @qpilotsync_destroy(ptr noundef %483)
  %485 = load ptr, ptr %27, align 8, !tbaa !11
  %486 = call i32 @modemcf_destroy(ptr noundef %485)
  %487 = load ptr, ptr %28, align 8, !tbaa !11
  %488 = call i32 @modemcf_destroy(ptr noundef %487)
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  %489 = load ptr, ptr %20, align 8
  call void @llvm.stackrestore.p0(ptr %489)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  ret void
}

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

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

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

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

declare i32 @qpilotgen_get_frame_len(ptr noundef) #3

declare i32 @qpilotsync_get_frame_len(ptr noundef) #3

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

declare void @liquid_autotest_passed(...) #3

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

declare ptr @modemcf_create(i32 noundef) #3

declare i32 @modemcf_gen_rand_sym(ptr noundef) #3

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

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

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

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

declare float @randnf(...) #3

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

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

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

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

declare float @qpilotsync_get_dphi(ptr noundef) #3

declare float @qpilotsync_get_phi(ptr noundef) #3

declare float @qpilotsync_get_gain(ptr noundef) #3

declare float @qpilotsync_get_evm(ptr noundef) #3

declare i32 @qpilotgen_print(ptr noundef) #3

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

declare i32 @modemcf_get_bps(ptr noundef) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #5

declare i32 @qpilotgen_destroy(ptr noundef) #3

declare i32 @qpilotsync_destroy(ptr noundef) #3

declare i32 @modemcf_destroy(ptr noundef) #3

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

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

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

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


; 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 [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @qpilotsync_test(i32 noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  %9 = fneg float %6
  %10 = fdiv float %6, -2.000000e+01
  %11 = tail call float @powf(float noundef 1.000000e+01, float noundef %10) #8
  %12 = tail call ptr @qpilotgen_create(i32 noundef %1, i32 noundef %2) #8
  %13 = tail call ptr @qpilotsync_create(i32 noundef %1, i32 noundef %2) #8
  %14 = tail call i32 @qpilotgen_get_frame_len(ptr noundef %12) #8
  %15 = tail call i32 @qpilotsync_get_frame_len(ptr noundef %13) #8
  %.not = icmp eq i32 %14, %15
  br i1 %.not, label %20, label %16

16:                                               ; preds = %7
  %17 = uitofp i32 %14 to double
  %18 = tail call i32 @qpilotsync_get_frame_len(ptr noundef %13) #8
  %19 = uitofp i32 %18 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 50, ptr noundef nonnull @.str.1, double noundef %17, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef %19) #8
  br label %21

20:                                               ; preds = %7
  tail call void (...) @liquid_autotest_passed() #8
  br label %21

21:                                               ; preds = %20, %16
  %22 = zext i32 %1 to i64
  %23 = alloca i8, i64 %22, align 16
  %24 = alloca { float, float }, i64 %22, align 16
  %25 = zext i32 %14 to i64
  %26 = alloca { float, float }, i64 %25, align 16
  %27 = alloca { float, float }, i64 %25, align 16
  %28 = alloca { float, float }, i64 %22, align 16
  %29 = alloca i8, i64 %22, align 16
  %30 = tail call ptr @modemcf_create(i32 noundef %0) #8
  %31 = tail call ptr @modemcf_create(i32 noundef %0) #8
  %.not174 = icmp eq i32 %1, 0
  br i1 %.not174, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %21, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %21 ]
  %32 = call i32 @modemcf_gen_rand_sym(ptr noundef %30) #8
  %33 = trunc i32 %32 to i8
  %34 = getelementptr inbounds i8, ptr %23, i64 %indvars.iv
  store i8 %33, ptr %34, align 1, !tbaa !5
  %35 = and i32 %32, 255
  %36 = getelementptr inbounds { float, float }, ptr %24, i64 %indvars.iv
  %37 = call i32 @modemcf_modulate(ptr noundef %30, i32 noundef %35, ptr noundef nonnull %36) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %22
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %.lr.ph, %21
  %38 = call i32 @qpilotgen_execute(ptr noundef %12, ptr noundef nonnull %24, ptr noundef nonnull %26) #8
  %.not175 = icmp eq i32 %14, 0
  br i1 %.not175, label %._crit_edge166, label %.lr.ph165

.lr.ph165:                                        ; preds = %._crit_edge
  %39 = fmul float %3, 0.000000e+00
  %40 = fmul float %4, 0.000000e+00
  %41 = insertelement <2 x float> poison, float %11, i64 0
  %42 = shufflevector <2 x float> %41, <2 x float> poison, <2 x i32> zeroinitializer
  %43 = insertelement <2 x float> poison, float %5, i64 0
  %44 = shufflevector <2 x float> %43, <2 x float> poison, <2 x i32> zeroinitializer
  %45 = insertelement <2 x float> poison, float %40, i64 0
  %46 = insertelement <2 x float> %45, float %4, i64 1
  %47 = insertelement <2 x float> poison, float %39, i64 0
  %48 = insertelement <2 x float> %47, float %3, i64 1
  br label %49

49:                                               ; preds = %.lr.ph165, %80
  %indvars.iv179 = phi i64 [ 0, %.lr.ph165 ], [ %indvars.iv.next180, %80 ]
  %50 = getelementptr inbounds { float, float }, ptr %26, i64 %indvars.iv179
  %51 = load float, ptr %50, align 8
  %52 = getelementptr inbounds i8, ptr %50, i64 4
  %53 = load float, ptr %52, align 4
  %54 = trunc nuw i64 %indvars.iv179 to i32
  %55 = uitofp i32 %54 to float
  %56 = insertelement <2 x float> poison, float %55, i64 0
  %57 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> zeroinitializer
  %58 = fmul <2 x float> %48, %57
  %59 = fadd <2 x float> %46, %58
  %60 = call <2 x float> @cexpf(<2 x float> noundef %59) #8
  %61 = insertelement <2 x float> poison, float %51, i64 0
  %62 = shufflevector <2 x float> %61, <2 x float> poison, <2 x i32> zeroinitializer
  %63 = fmul <2 x float> %62, %60
  %64 = insertelement <2 x float> poison, float %53, i64 0
  %65 = shufflevector <2 x float> %64, <2 x float> poison, <2 x i32> zeroinitializer
  %66 = fmul <2 x float> %65, %60
  %67 = shufflevector <2 x float> %66, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %68 = fsub <2 x float> %63, %67
  %69 = fadd <2 x float> %63, %67
  %70 = shufflevector <2 x float> %68, <2 x float> %69, <2 x i32> <i32 0, i32 3>
  %71 = extractelement <2 x float> %68, i64 0
  %72 = fcmp uno float %71, 0.000000e+00
  br i1 %72, label %73, label %80, !prof !10

73:                                               ; preds = %49
  %74 = extractelement <2 x float> %69, i64 1
  %75 = fcmp uno float %74, 0.000000e+00
  br i1 %75, label %76, label %80, !prof !10

76:                                               ; preds = %73
  %77 = extractelement <2 x float> %60, i64 0
  %78 = extractelement <2 x float> %60, i64 1
  %79 = call <2 x float> @__mulsc3(float noundef %51, float noundef %53, float noundef %77, float noundef %78) #8
  br label %80

80:                                               ; preds = %76, %73, %49
  %81 = phi <2 x float> [ %70, %49 ], [ %70, %73 ], [ %79, %76 ]
  %82 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv179
  %83 = call float (...) @randnf() #8
  %84 = call float (...) @randnf() #8
  %85 = fmul float %84, 0.000000e+00
  %86 = fadd float %83, %85
  %87 = fpext <2 x float> %81 to <2 x double>
  %88 = insertelement <2 x float> poison, float %86, i64 0
  %89 = insertelement <2 x float> %88, float %84, i64 1
  %90 = fmul <2 x float> %42, %89
  %91 = fpext <2 x float> %90 to <2 x double>
  %92 = fmul <2 x double> %91, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %93 = fadd <2 x double> %92, %87
  %94 = fptrunc <2 x double> %93 to <2 x float>
  %95 = fmul <2 x float> %44, %94
  store <2 x float> %95, ptr %82, align 8
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %exitcond183.not = icmp eq i64 %indvars.iv.next180, %25
  br i1 %exitcond183.not, label %._crit_edge166, label %49, !llvm.loop !11

._crit_edge166:                                   ; preds = %80, %._crit_edge
  %96 = call i32 @qpilotsync_execute(ptr noundef %13, ptr noundef nonnull %27, ptr noundef nonnull %28) #8
  br i1 %.not174, label %._crit_edge173, label %.lr.ph169

.preheader:                                       ; preds = %.lr.ph169
  br i1 %.not174, label %._crit_edge173, label %.lr.ph172

.lr.ph169:                                        ; preds = %._crit_edge166, %.lr.ph169
  %indvars.iv184 = phi i64 [ %indvars.iv.next185, %.lr.ph169 ], [ 0, %._crit_edge166 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %97 = getelementptr inbounds { float, float }, ptr %28, i64 %indvars.iv184
  %98 = load <2 x float>, ptr %97, align 8
  %99 = call i32 @modemcf_demodulate(ptr noundef %31, <2 x float> noundef %98, ptr noundef nonnull %8) #8
  %100 = load i32, ptr %8, align 4, !tbaa !12
  %101 = trunc i32 %100 to i8
  %102 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv184
  store i8 %101, ptr %102, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %22
  br i1 %exitcond188.not, label %.preheader, label %.lr.ph169, !llvm.loop !14

.lr.ph172:                                        ; preds = %.preheader, %.lr.ph172
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %.lr.ph172 ], [ 0, %.preheader ]
  %.0147170 = phi i32 [ %110, %.lr.ph172 ], [ 0, %.preheader ]
  %103 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv189
  %104 = load i8, ptr %103, align 1, !tbaa !5
  %105 = zext i8 %104 to i32
  %106 = getelementptr inbounds i8, ptr %23, i64 %indvars.iv189
  %107 = load i8, ptr %106, align 1, !tbaa !5
  %108 = zext i8 %107 to i32
  %109 = call i32 @count_bit_errors(i32 noundef %105, i32 noundef %108) #8
  %110 = add i32 %109, %.0147170
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %22
  br i1 %exitcond193.not, label %._crit_edge173, label %.lr.ph172, !llvm.loop !15

._crit_edge173:                                   ; preds = %.lr.ph172, %._crit_edge166, %.preheader
  %.0147.lcssa = phi i32 [ 0, %.preheader ], [ 0, %._crit_edge166 ], [ %110, %.lr.ph172 ]
  %111 = call float @qpilotsync_get_dphi(ptr noundef %13) #8
  %112 = call float @qpilotsync_get_phi(ptr noundef %13) #8
  %113 = call float @qpilotsync_get_gain(ptr noundef %13) #8
  %114 = call float @qpilotsync_get_evm(ptr noundef %13) #8
  %115 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !12
  %.not150 = icmp eq i32 %115, 0
  br i1 %.not150, label %141, label %116

116:                                              ; preds = %._crit_edge173
  %117 = call i32 @qpilotgen_print(ptr noundef %12) #8
  %118 = call i32 @modemcf_get_bps(ptr noundef %30) #8
  %119 = mul i32 %118, %1
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %.0147.lcssa, i32 noundef %119)
  %121 = fpext float %111 to double
  %122 = fpext float %3 to double
  %123 = fsub float %3, %111
  %124 = fpext float %123 to double
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %121, double noundef %122, double noundef %124)
  %126 = fpext float %112 to double
  %127 = fpext float %4 to double
  %128 = fsub float %4, %112
  %129 = fpext float %128 to double
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %126, double noundef %127, double noundef %129)
  %131 = fpext float %113 to double
  %132 = fpext float %5 to double
  %133 = fsub float %5, %113
  %134 = fpext float %133 to double
  %135 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %131, double noundef %132, double noundef %134)
  %136 = fpext float %114 to double
  %137 = fpext float %9 to double
  %138 = fadd float %114, %6
  %139 = fpext float %138 to double
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %136, double noundef %137, double noundef %139)
  br label %141

141:                                              ; preds = %116, %._crit_edge173
  %142 = fsub float %111, %3
  %143 = fpext float %142 to double
  %144 = call double @llvm.fmuladd.f64(double %143, double %143, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %144)
  %145 = fcmp ogt double %sqrt, 0x3F847AE140000000
  %146 = fcmp uno float %111, 0.000000e+00
  %or.cond = select i1 %145, i1 true, i1 %146
  %147 = fcmp uno float %3, 0.000000e+00
  %or.cond152 = or i1 %147, %or.cond
  br i1 %or.cond152, label %148, label %149

148:                                              ; preds = %141
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 119, ptr noundef nonnull @.str.9, double noundef %sqrt, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, double noundef 0x3F847AE140000000) #8
  br label %150

149:                                              ; preds = %141
  call void (...) @liquid_autotest_passed() #8
  br label %150

150:                                              ; preds = %149, %148
  %151 = fsub float %112, %4
  %152 = fpext float %151 to double
  %153 = call double @llvm.fmuladd.f64(double %152, double %152, double 0.000000e+00)
  %sqrt158 = call double @llvm.sqrt.f64(double %153)
  %154 = fcmp ogt double %sqrt158, 0x3FB645A1C0000000
  %155 = fcmp uno float %112, 0.000000e+00
  %or.cond153 = select i1 %154, i1 true, i1 %155
  %156 = fcmp uno float %4, 0.000000e+00
  %or.cond154 = or i1 %156, %or.cond153
  br i1 %or.cond154, label %157, label %158

157:                                              ; preds = %150
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 120, ptr noundef nonnull @.str.12, double noundef %sqrt158, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.13, double noundef 0x3FB645A1C0000000) #8
  br label %159

158:                                              ; preds = %150
  call void (...) @liquid_autotest_passed() #8
  br label %159

159:                                              ; preds = %158, %157
  %160 = fsub float %113, %5
  %161 = fpext float %160 to double
  %162 = call double @llvm.fmuladd.f64(double %161, double %161, double 0.000000e+00)
  %sqrt160 = call double @llvm.sqrt.f64(double %162)
  %163 = fcmp ogt double %sqrt160, 0x3F847AE140000000
  %164 = fcmp uno float %113, 0.000000e+00
  %or.cond155 = select i1 %163, i1 true, i1 %164
  %165 = fcmp uno float %5, 0.000000e+00
  %or.cond156 = or i1 %165, %or.cond155
  br i1 %or.cond156, label %166, label %167

166:                                              ; preds = %159
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 121, ptr noundef nonnull @.str.14, double noundef %sqrt160, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, double noundef 0x3F847AE140000000) #8
  br label %168

167:                                              ; preds = %159
  call void (...) @liquid_autotest_passed() #8
  br label %168

168:                                              ; preds = %167, %166
  %.not151 = icmp eq i32 %.0147.lcssa, 0
  br i1 %.not151, label %171, label %169

169:                                              ; preds = %168
  %170 = uitofp i32 %.0147.lcssa to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 123, ptr noundef nonnull @.str.15, double noundef %170, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.16, double noundef 0.000000e+00) #8
  br label %172

171:                                              ; preds = %168
  call void (...) @liquid_autotest_passed() #8
  br label %172

172:                                              ; preds = %171, %169
  %173 = call i32 @qpilotgen_destroy(ptr noundef %12) #8
  %174 = call i32 @qpilotsync_destroy(ptr noundef %13) #8
  %175 = call i32 @modemcf_destroy(ptr noundef %30) #8
  %176 = call i32 @modemcf_destroy(ptr noundef %31) #8
  ret void
}

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

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

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

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

declare i32 @qpilotgen_get_frame_len(ptr noundef) local_unnamed_addr #3

declare i32 @qpilotsync_get_frame_len(ptr noundef) local_unnamed_addr #3

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

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

declare ptr @modemcf_create(i32 noundef) local_unnamed_addr #3

declare i32 @modemcf_gen_rand_sym(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

declare float @qpilotsync_get_dphi(ptr noundef) local_unnamed_addr #3

declare float @qpilotsync_get_phi(ptr noundef) local_unnamed_addr #3

declare float @qpilotsync_get_gain(ptr noundef) local_unnamed_addr #3

declare float @qpilotsync_get_evm(ptr noundef) local_unnamed_addr #3

declare i32 @qpilotgen_print(ptr noundef) local_unnamed_addr #3

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

declare i32 @modemcf_get_bps(ptr noundef) local_unnamed_addr #3

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

declare i32 @qpilotgen_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @qpilotsync_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #3

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

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 = { 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 #3 = { "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 "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 #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"branch_weights", i32 1, i32 1048575}
!11 = distinct !{!11, !9}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9}


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