; LLVM IR from jgaeddert/liquid-dsp :: sandbox (recursive_qpsk_test)

; 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.4 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external global ptr, align 8
@__const.main.map_qpsk = external hidden unnamed_addr constant [4 x { float, float }], align 16
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = 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 float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [4 x { float, float }], align 16
  %15 = alloca [16 x { float, float }], align 16
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca { float, float }, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca { float, float }, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  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) #8
  store float 2.500000e-01, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store float 0.000000e+00, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store float 3.000000e+01, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 31, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1000000, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  br label %35

35:                                               ; preds = %48, %2
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = call i32 @getopt(i32 noundef %36, ptr noundef %37, ptr noundef @.str.4) #8
  store i32 %38, ptr %11, align 4, !tbaa !5
  %39 = icmp ne i32 %38, -1
  br i1 %39, label %40, label %49

40:                                               ; preds = %35
  %41 = load i32, ptr %11, align 4, !tbaa !5
  switch i32 %41, label %47 [
    i32 104, label %42
    i32 98, label %43
  ]

42:                                               ; preds = %40
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %366

43:                                               ; preds = %40
  %44 = load ptr, ptr @optarg, align 8, !tbaa !9
  %45 = call double @atof(ptr noundef %44) #9
  %46 = fptrunc double %45 to float
  store float %46, ptr %6, align 4, !tbaa !11
  br label %48

47:                                               ; preds = %40
  call void @exit(i32 noundef 1) #10
  unreachable

48:                                               ; preds = %43
  br label %35, !llvm.loop !13

49:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.main.map_qpsk, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %15) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %150, %49
  %51 = load i32, ptr %13, align 4, !tbaa !5
  %52 = icmp ult i32 %51, 4
  br i1 %52, label %53, label %153

53:                                               ; preds = %50
  %54 = load i32, ptr %13, align 4, !tbaa !5
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 %55
  %57 = getelementptr inbounds { float, float }, ptr %56, i32 0, i32 0
  %58 = load float, ptr %57, align 8
  %59 = getelementptr inbounds { float, float }, ptr %56, i32 0, i32 1
  %60 = load float, ptr %59, align 4
  %61 = load float, ptr %6, align 4, !tbaa !11
  %62 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 0
  %63 = getelementptr inbounds { float, float }, ptr %62, i32 0, i32 0
  %64 = load float, ptr %63, align 16
  %65 = getelementptr inbounds { float, float }, ptr %62, i32 0, i32 1
  %66 = load float, ptr %65, align 4
  %67 = fmul float %61, %64
  %68 = fmul float %61, %66
  %69 = fadd float %58, %67
  %70 = fadd float %60, %68
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = mul i32 4, %71
  %73 = add i32 %72, 0
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds [16 x { float, float }], ptr %15, i64 0, i64 %74
  %76 = getelementptr inbounds { float, float }, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds { float, float }, ptr %75, i32 0, i32 1
  store float %69, ptr %76, align 8
  store float %70, ptr %77, align 4
  %78 = load i32, ptr %13, align 4, !tbaa !5
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 %79
  %81 = getelementptr inbounds { float, float }, ptr %80, i32 0, i32 0
  %82 = load float, ptr %81, align 8
  %83 = getelementptr inbounds { float, float }, ptr %80, i32 0, i32 1
  %84 = load float, ptr %83, align 4
  %85 = load float, ptr %6, align 4, !tbaa !11
  %86 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 1
  %87 = getelementptr inbounds { float, float }, ptr %86, i32 0, i32 0
  %88 = load float, ptr %87, align 8
  %89 = getelementptr inbounds { float, float }, ptr %86, i32 0, i32 1
  %90 = load float, ptr %89, align 4
  %91 = fmul float %85, %88
  %92 = fmul float %85, %90
  %93 = fadd float %82, %91
  %94 = fadd float %84, %92
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = mul i32 4, %95
  %97 = add i32 %96, 1
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds [16 x { float, float }], ptr %15, i64 0, i64 %98
  %100 = getelementptr inbounds { float, float }, ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds { float, float }, ptr %99, i32 0, i32 1
  store float %93, ptr %100, align 8
  store float %94, ptr %101, align 4
  %102 = load i32, ptr %13, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 %103
  %105 = getelementptr inbounds { float, float }, ptr %104, i32 0, i32 0
  %106 = load float, ptr %105, align 8
  %107 = getelementptr inbounds { float, float }, ptr %104, i32 0, i32 1
  %108 = load float, ptr %107, align 4
  %109 = load float, ptr %6, align 4, !tbaa !11
  %110 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 2
  %111 = getelementptr inbounds { float, float }, ptr %110, i32 0, i32 0
  %112 = load float, ptr %111, align 16
  %113 = getelementptr inbounds { float, float }, ptr %110, i32 0, i32 1
  %114 = load float, ptr %113, align 4
  %115 = fmul float %109, %112
  %116 = fmul float %109, %114
  %117 = fadd float %106, %115
  %118 = fadd float %108, %116
  %119 = load i32, ptr %13, align 4, !tbaa !5
  %120 = mul i32 4, %119
  %121 = add i32 %120, 2
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [16 x { float, float }], ptr %15, i64 0, i64 %122
  %124 = getelementptr inbounds { float, float }, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds { float, float }, ptr %123, i32 0, i32 1
  store float %117, ptr %124, align 8
  store float %118, ptr %125, align 4
  %126 = load i32, ptr %13, align 4, !tbaa !5
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 %127
  %129 = getelementptr inbounds { float, float }, ptr %128, i32 0, i32 0
  %130 = load float, ptr %129, align 8
  %131 = getelementptr inbounds { float, float }, ptr %128, i32 0, i32 1
  %132 = load float, ptr %131, align 4
  %133 = load float, ptr %6, align 4, !tbaa !11
  %134 = getelementptr inbounds [4 x { float, float }], ptr %14, i64 0, i64 3
  %135 = getelementptr inbounds { float, float }, ptr %134, i32 0, i32 0
  %136 = load float, ptr %135, align 8
  %137 = getelementptr inbounds { float, float }, ptr %134, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  %139 = fmul float %133, %136
  %140 = fmul float %133, %138
  %141 = fadd float %130, %139
  %142 = fadd float %132, %140
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = mul i32 4, %143
  %145 = add i32 %144, 3
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds [16 x { float, float }], ptr %15, i64 0, i64 %146
  %148 = getelementptr inbounds { float, float }, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds { float, float }, ptr %147, i32 0, i32 1
  store float %141, ptr %148, align 8
  store float %142, ptr %149, align 4
  br label %150

150:                                              ; preds = %53
  %151 = load i32, ptr %13, align 4, !tbaa !5
  %152 = add i32 %151, 1
  store i32 %152, ptr %13, align 4, !tbaa !5
  br label %50, !llvm.loop !15

153:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %154 = getelementptr inbounds [16 x { float, float }], ptr %15, i64 0, i64 0
  %155 = call ptr @modemcf_create_arbitrary(ptr noundef %154, i32 noundef 16)
  store ptr %155, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %156 = call noalias ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
  store ptr %156, ptr %17, align 8, !tbaa !9
  %157 = load ptr, ptr %17, align 8, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.7, ptr noundef @.str.5) #8
  %159 = load ptr, ptr %17, align 8, !tbaa !9
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str.8) #8
  %161 = load ptr, ptr %17, align 8, !tbaa !9
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !5
  %163 = load ptr, ptr %17, align 8, !tbaa !9
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.10) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %186, %153
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = icmp ult i32 %166, 16
  br i1 %167, label %168, label %189

168:                                              ; preds = %165
  %169 = load ptr, ptr %16, align 8, !tbaa !9
  %170 = load i32, ptr %13, align 4, !tbaa !5
  %171 = call i32 @modemcf_modulate(ptr noundef %169, i32 noundef %170, ptr noundef %21)
  %172 = load ptr, ptr %17, align 8, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !5
  %174 = add i32 %173, 1
  %175 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %176 = load float, ptr %175, align 4
  %177 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %178 = load float, ptr %177, align 4
  %179 = fpext float %176 to double
  %180 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %181 = load float, ptr %180, align 4
  %182 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %183 = load float, ptr %182, align 4
  %184 = fpext float %183 to double
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.11, i32 noundef %174, double noundef %179, double noundef %184) #8
  br label %186

186:                                              ; preds = %168
  %187 = load i32, ptr %13, align 4, !tbaa !5
  %188 = add i32 %187, 1
  store i32 %188, ptr %13, align 4, !tbaa !5
  br label %165, !llvm.loop !16

189:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %190 = load float, ptr %8, align 4, !tbaa !11
  %191 = load float, ptr %7, align 4, !tbaa !11
  %192 = fsub float %190, %191
  %193 = load i32, ptr %9, align 4, !tbaa !5
  %194 = sub i32 %193, 1
  %195 = uitofp i32 %194 to float
  %196 = fdiv float %192, %195
  %197 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %198 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  store float %196, ptr %197, align 4
  store float 0.000000e+00, ptr %198, align 4
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %338, %189
  %200 = load i32, ptr %27, align 4, !tbaa !5
  %201 = load i32, ptr %9, align 4, !tbaa !5
  %202 = icmp ult i32 %200, %201
  br i1 %202, label %203, label %341

203:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %204 = load float, ptr %7, align 4, !tbaa !11
  %205 = load i32, ptr %27, align 4, !tbaa !5
  %206 = uitofp i32 %205 to float
  %207 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %208 = load float, ptr %207, align 4
  %209 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %210 = load float, ptr %209, align 4
  %211 = fmul float %206, %208
  %212 = fmul float %206, %210
  %213 = fadd float %204, %211
  store float %213, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %214 = load float, ptr %29, align 4, !tbaa !11
  %215 = fneg float %214
  %216 = fdiv float %215, 2.000000e+01
  %217 = call float @powf(float noundef 1.000000e+01, float noundef %216) #8
  store float %217, ptr %30, align 4, !tbaa !11
  store i32 0, ptr %25, align 4, !tbaa !5
  store i32 0, ptr %26, align 4, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %282, %203
  %219 = load i32, ptr %13, align 4, !tbaa !5
  %220 = load i32, ptr %10, align 4, !tbaa !5
  %221 = icmp ult i32 %219, %220
  br i1 %221, label %222, label %285

222:                                              ; preds = %218
  %223 = call i32 @rand() #8
  %224 = and i32 %223, 3
  store i32 %224, ptr %18, align 4, !tbaa !5
  %225 = call i32 @rand() #8
  %226 = and i32 %225, 3
  store i32 %226, ptr %19, align 4, !tbaa !5
  %227 = load i32, ptr %18, align 4, !tbaa !5
  %228 = shl i32 %227, 2
  %229 = load i32, ptr %19, align 4, !tbaa !5
  %230 = or i32 %228, %229
  store i32 %230, ptr %20, align 4, !tbaa !5
  %231 = load ptr, ptr %16, align 8, !tbaa !9
  %232 = load i32, ptr %20, align 4, !tbaa !5
  %233 = call i32 @modemcf_modulate(ptr noundef %231, i32 noundef %232, ptr noundef %21)
  %234 = load float, ptr %30, align 4, !tbaa !11
  %235 = call float (...) @randnf()
  %236 = call float (...) @randnf()
  %237 = fmul float 0.000000e+00, %236
  %238 = fmul float 1.000000e+00, %236
  %239 = fadd float %235, %237
  %240 = fmul float %234, %239
  %241 = fmul float %234, %238
  %242 = fpext float %240 to double
  %243 = fpext float %241 to double
  %244 = fmul double %242, 0x3FE6A09E667F3BCD
  %245 = fmul double %243, 0x3FE6A09E667F3BCD
  %246 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %247 = load float, ptr %246, align 4
  %248 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %249 = load float, ptr %248, align 4
  %250 = fpext float %247 to double
  %251 = fpext float %249 to double
  %252 = fadd double %250, %244
  %253 = fadd double %251, %245
  %254 = fptrunc double %252 to float
  %255 = fptrunc double %253 to float
  %256 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %257 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %254, ptr %256, align 4
  store float %255, ptr %257, align 4
  %258 = load ptr, ptr %16, align 8, !tbaa !9
  %259 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %260 = load float, ptr %259, align 4
  %261 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %262 = load float, ptr %261, align 4
  %263 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %264 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  store float %260, ptr %263, align 4
  store float %262, ptr %264, align 4
  %265 = load <2 x float>, ptr %31, align 4
  %266 = call i32 @modemcf_demodulate(ptr noundef %258, <2 x float> noundef %265, ptr noundef %22)
  %267 = load i32, ptr %22, align 4, !tbaa !5
  %268 = lshr i32 %267, 2
  %269 = and i32 %268, 3
  store i32 %269, ptr %23, align 4, !tbaa !5
  %270 = load i32, ptr %22, align 4, !tbaa !5
  %271 = and i32 %270, 3
  store i32 %271, ptr %24, align 4, !tbaa !5
  %272 = load i32, ptr %18, align 4, !tbaa !5
  %273 = load i32, ptr %23, align 4, !tbaa !5
  %274 = call i32 @count_bit_errors(i32 noundef %272, i32 noundef %273)
  %275 = load i32, ptr %25, align 4, !tbaa !5
  %276 = add i32 %275, %274
  store i32 %276, ptr %25, align 4, !tbaa !5
  %277 = load i32, ptr %19, align 4, !tbaa !5
  %278 = load i32, ptr %24, align 4, !tbaa !5
  %279 = call i32 @count_bit_errors(i32 noundef %277, i32 noundef %278)
  %280 = load i32, ptr %26, align 4, !tbaa !5
  %281 = add i32 %280, %279
  store i32 %281, ptr %26, align 4, !tbaa !5
  br label %282

282:                                              ; preds = %222
  %283 = load i32, ptr %13, align 4, !tbaa !5
  %284 = add i32 %283, 1
  store i32 %284, ptr %13, align 4, !tbaa !5
  br label %218, !llvm.loop !17

285:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %286 = load float, ptr %29, align 4, !tbaa !11
  %287 = fdiv float %286, 2.000000e+01
  %288 = call float @powf(float noundef 1.000000e+01, float noundef %287) #8
  %289 = fpext float %288 to double
  %290 = fmul double %289, 0x3FE6A09E667F3BCD
  %291 = fptrunc double %290 to float
  %292 = call float @erfcf(float noundef %291) #8
  %293 = fmul float 5.000000e-01, %292
  store float %293, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %294 = load i32, ptr %25, align 4, !tbaa !5
  %295 = uitofp i32 %294 to float
  %296 = load i32, ptr %10, align 4, !tbaa !5
  %297 = mul i32 2, %296
  %298 = uitofp i32 %297 to float
  %299 = fdiv float %295, %298
  store float %299, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %300 = load i32, ptr %26, align 4, !tbaa !5
  %301 = uitofp i32 %300 to float
  %302 = load i32, ptr %10, align 4, !tbaa !5
  %303 = mul i32 2, %302
  %304 = uitofp i32 %303 to float
  %305 = fdiv float %301, %304
  store float %305, ptr %34, align 4, !tbaa !11
  %306 = load i32, ptr %27, align 4, !tbaa !5
  %307 = load float, ptr %29, align 4, !tbaa !11
  %308 = fpext float %307 to double
  %309 = load i32, ptr %25, align 4, !tbaa !5
  %310 = load i32, ptr %26, align 4, !tbaa !5
  %311 = load i32, ptr %10, align 4, !tbaa !5
  %312 = mul i32 2, %311
  %313 = load float, ptr %32, align 4, !tbaa !11
  %314 = fpext float %313 to double
  %315 = load float, ptr %33, align 4, !tbaa !11
  %316 = fpext float %315 to double
  %317 = load float, ptr %34, align 4, !tbaa !11
  %318 = fpext float %317 to double
  %319 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %306, double noundef %308, i32 noundef %309, i32 noundef %310, i32 noundef %312, double noundef %314, double noundef %316, double noundef %318)
  %320 = load ptr, ptr %17, align 8, !tbaa !9
  %321 = load i32, ptr %27, align 4, !tbaa !5
  %322 = add i32 %321, 1
  %323 = load float, ptr %29, align 4, !tbaa !11
  %324 = fpext float %323 to double
  %325 = load i32, ptr %27, align 4, !tbaa !5
  %326 = add i32 %325, 1
  %327 = load float, ptr %32, align 4, !tbaa !11
  %328 = fpext float %327 to double
  %329 = load i32, ptr %27, align 4, !tbaa !5
  %330 = add i32 %329, 1
  %331 = load float, ptr %33, align 4, !tbaa !11
  %332 = fpext float %331 to double
  %333 = load i32, ptr %27, align 4, !tbaa !5
  %334 = add i32 %333, 1
  %335 = load float, ptr %34, align 4, !tbaa !11
  %336 = fpext float %335 to double
  %337 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %320, ptr noundef @.str.13, i32 noundef %322, double noundef %324, i32 noundef %326, double noundef %328, i32 noundef %330, double noundef %332, i32 noundef %334, double noundef %336) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %338

338:                                              ; preds = %285
  %339 = load i32, ptr %27, align 4, !tbaa !5
  %340 = add i32 %339, 1
  store i32 %340, ptr %27, align 4, !tbaa !5
  br label %199, !llvm.loop !18

341:                                              ; preds = %199
  %342 = load ptr, ptr %17, align 8, !tbaa !9
  %343 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %342, ptr noundef @.str.14) #8
  %344 = load ptr, ptr %17, align 8, !tbaa !9
  %345 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %344, ptr noundef @.str.15) #8
  %346 = load ptr, ptr %17, align 8, !tbaa !9
  %347 = load float, ptr %7, align 4, !tbaa !11
  %348 = fpext float %347 to double
  %349 = load float, ptr %8, align 4, !tbaa !11
  %350 = fpext float %349 to double
  %351 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %346, ptr noundef @.str.16, double noundef %348, double noundef %350) #8
  %352 = load ptr, ptr %17, align 8, !tbaa !9
  %353 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %352, ptr noundef @.str.17) #8
  %354 = load ptr, ptr %17, align 8, !tbaa !9
  %355 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %354, ptr noundef @.str.18) #8
  %356 = load ptr, ptr %17, align 8, !tbaa !9
  %357 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %356, ptr noundef @.str.19) #8
  %358 = load ptr, ptr %17, align 8, !tbaa !9
  %359 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %358, ptr noundef @.str.20) #8
  %360 = load ptr, ptr %17, align 8, !tbaa !9
  %361 = call i32 @fclose(ptr noundef %360)
  %362 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef @.str.5)
  %363 = load ptr, ptr %16, align 8, !tbaa !9
  %364 = call i32 @modemcf_destroy(ptr noundef %363)
  %365 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %366

366:                                              ; preds = %341, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %367 = load i32, ptr %3, align 4
  ret i32 %367
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @rand() #4

declare float @randnf(...) #1

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

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

; Function Attrs: nounwind
declare float @erfcf(float noundef) #4

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

declare i32 @fclose(ptr noundef) #1

declare i32 @modemcf_destroy(ptr noundef) #1

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


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

@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@__const.main.map_qpsk = external hidden unnamed_addr constant [4 x { float, float }], align 16
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = 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 noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca [16 x { float, float }], align 16
  %4 = alloca { float, float }, align 8
  %5 = alloca i32, align 4
  br label %6

6:                                                ; preds = %9, %2
  %.086 = phi float [ 2.500000e-01, %2 ], [ %12, %9 ]
  %7 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4) #9
  switch i32 %7, label %13 [
    i32 -1, label %.preheader
    i32 104, label %8
    i32 98, label %9
  ]

8:                                                ; preds = %6
  tail call void @usage()
  br label %212

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

13:                                               ; preds = %6
  tail call void @exit(i32 noundef 1) #11
  unreachable

.preheader:                                       ; preds = %6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #9
  %14 = load <2 x float>, ptr @__const.main.map_qpsk, align 16
  %15 = shufflevector <2 x float> %14, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %16 = insertelement <4 x float> poison, float %.086, i64 0
  %17 = shufflevector <4 x float> %16, <4 x float> poison, <4 x i32> zeroinitializer
  %18 = getelementptr inbounds i8, ptr %3, i64 16
  %19 = load <4 x float>, ptr getelementptr inbounds (i8, ptr @__const.main.map_qpsk, i64 16), align 16
  %20 = fmul <4 x float> %17, %19
  %21 = fadd <4 x float> %15, %20
  store <4 x float> %21, ptr %18, align 16
  %22 = getelementptr inbounds i8, ptr %3, i64 32
  %23 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const.main.map_qpsk, i64 8), align 8
  %24 = shufflevector <2 x float> %23, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %25 = shufflevector <2 x float> %14, <2 x float> %23, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %26 = fmul <4 x float> %17, %25
  %27 = fadd <4 x float> %15, %26
  store <4 x float> %27, ptr %3, align 16
  %28 = fadd <4 x float> %24, %26
  store <4 x float> %28, ptr %22, align 16
  %29 = getelementptr inbounds i8, ptr %3, i64 48
  %30 = fadd <4 x float> %24, %20
  store <4 x float> %30, ptr %29, align 16
  %31 = getelementptr inbounds i8, ptr %3, i64 64
  %32 = shufflevector <4 x float> %19, <4 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %33 = fadd <4 x float> %32, %26
  store <4 x float> %33, ptr %31, align 16
  %34 = getelementptr inbounds i8, ptr %3, i64 80
  %35 = fadd <4 x float> %32, %20
  store <4 x float> %35, ptr %34, align 16
  %36 = getelementptr inbounds i8, ptr %3, i64 96
  %37 = shufflevector <4 x float> %19, <4 x float> poison, <4 x i32> <i32 2, i32 3, i32 2, i32 3>
  %38 = fadd <4 x float> %37, %26
  store <4 x float> %38, ptr %36, align 16
  %39 = getelementptr inbounds i8, ptr %3, i64 112
  %40 = fadd <4 x float> %37, %20
  store <4 x float> %40, ptr %39, align 16
  %41 = call ptr @modemcf_create_arbitrary(ptr noundef nonnull %3, i32 noundef 16) #9
  %42 = call noalias ptr @fopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6)
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.5) #9
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.8) #9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.10) #9
  %47 = getelementptr inbounds i8, ptr %4, i64 4
  %48 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 0, ptr noundef nonnull %4) #9
  %49 = load float, ptr %4, align 8
  %50 = fpext float %49 to double
  %51 = load float, ptr %47, align 4
  %52 = fpext float %51 to double
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 1, double noundef %50, double noundef %52) #9
  %54 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 1, ptr noundef nonnull %4) #9
  %55 = load float, ptr %4, align 8
  %56 = fpext float %55 to double
  %57 = load float, ptr %47, align 4
  %58 = fpext float %57 to double
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 2, double noundef %56, double noundef %58) #9
  %60 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 2, ptr noundef nonnull %4) #9
  %61 = load float, ptr %4, align 8
  %62 = fpext float %61 to double
  %63 = load float, ptr %47, align 4
  %64 = fpext float %63 to double
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 3, double noundef %62, double noundef %64) #9
  %66 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 3, ptr noundef nonnull %4) #9
  %67 = load float, ptr %4, align 8
  %68 = fpext float %67 to double
  %69 = load float, ptr %47, align 4
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 4, double noundef %68, double noundef %70) #9
  %72 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 4, ptr noundef nonnull %4) #9
  %73 = load float, ptr %4, align 8
  %74 = fpext float %73 to double
  %75 = load float, ptr %47, align 4
  %76 = fpext float %75 to double
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 5, double noundef %74, double noundef %76) #9
  %78 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 5, ptr noundef nonnull %4) #9
  %79 = load float, ptr %4, align 8
  %80 = fpext float %79 to double
  %81 = load float, ptr %47, align 4
  %82 = fpext float %81 to double
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 6, double noundef %80, double noundef %82) #9
  %84 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 6, ptr noundef nonnull %4) #9
  %85 = load float, ptr %4, align 8
  %86 = fpext float %85 to double
  %87 = load float, ptr %47, align 4
  %88 = fpext float %87 to double
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 7, double noundef %86, double noundef %88) #9
  %90 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 7, ptr noundef nonnull %4) #9
  %91 = load float, ptr %4, align 8
  %92 = fpext float %91 to double
  %93 = load float, ptr %47, align 4
  %94 = fpext float %93 to double
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 8, double noundef %92, double noundef %94) #9
  %96 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 8, ptr noundef nonnull %4) #9
  %97 = load float, ptr %4, align 8
  %98 = fpext float %97 to double
  %99 = load float, ptr %47, align 4
  %100 = fpext float %99 to double
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 9, double noundef %98, double noundef %100) #9
  %102 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 9, ptr noundef nonnull %4) #9
  %103 = load float, ptr %4, align 8
  %104 = fpext float %103 to double
  %105 = load float, ptr %47, align 4
  %106 = fpext float %105 to double
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 10, double noundef %104, double noundef %106) #9
  %108 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 10, ptr noundef nonnull %4) #9
  %109 = load float, ptr %4, align 8
  %110 = fpext float %109 to double
  %111 = load float, ptr %47, align 4
  %112 = fpext float %111 to double
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 11, double noundef %110, double noundef %112) #9
  %114 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 11, ptr noundef nonnull %4) #9
  %115 = load float, ptr %4, align 8
  %116 = fpext float %115 to double
  %117 = load float, ptr %47, align 4
  %118 = fpext float %117 to double
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 12, double noundef %116, double noundef %118) #9
  %120 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 12, ptr noundef nonnull %4) #9
  %121 = load float, ptr %4, align 8
  %122 = fpext float %121 to double
  %123 = load float, ptr %47, align 4
  %124 = fpext float %123 to double
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 13, double noundef %122, double noundef %124) #9
  %126 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 13, ptr noundef nonnull %4) #9
  %127 = load float, ptr %4, align 8
  %128 = fpext float %127 to double
  %129 = load float, ptr %47, align 4
  %130 = fpext float %129 to double
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 14, double noundef %128, double noundef %130) #9
  %132 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 14, ptr noundef nonnull %4) #9
  %133 = load float, ptr %4, align 8
  %134 = fpext float %133 to double
  %135 = load float, ptr %47, align 4
  %136 = fpext float %135 to double
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 15, double noundef %134, double noundef %136) #9
  %138 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef 15, ptr noundef nonnull %4) #9
  %139 = load float, ptr %4, align 8
  %140 = fpext float %139 to double
  %141 = load float, ptr %47, align 4
  %142 = fpext float %141 to double
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.11, i32 noundef 16, double noundef %140, double noundef %142) #9
  br label %144

144:                                              ; preds = %.preheader, %181
  %.09098 = phi i32 [ 0, %.preheader ], [ %198, %181 ]
  %145 = uitofp nneg i32 %.09098 to float
  %146 = fdiv float %145, -2.000000e+01
  %147 = call float @powf(float noundef 1.000000e+01, float noundef %146) #9
  %148 = insertelement <2 x float> poison, float %147, i64 0
  %149 = shufflevector <2 x float> %148, <2 x float> poison, <2 x i32> zeroinitializer
  br label %150

150:                                              ; preds = %144, %150
  %.297 = phi i32 [ 0, %144 ], [ %180, %150 ]
  %.08896 = phi i32 [ 0, %144 ], [ %177, %150 ]
  %.08995 = phi i32 [ 0, %144 ], [ %179, %150 ]
  %151 = call i32 @rand() #9
  %152 = and i32 %151, 3
  %153 = call i32 @rand() #9
  %154 = and i32 %153, 3
  %155 = shl nuw nsw i32 %152, 2
  %156 = or disjoint i32 %155, %154
  %157 = call i32 @modemcf_modulate(ptr noundef %41, i32 noundef %156, ptr noundef nonnull %4) #9
  %158 = call float (...) @randnf() #9
  %159 = call float (...) @randnf() #9
  %160 = fmul float %159, 0.000000e+00
  %161 = fadd float %158, %160
  %162 = insertelement <2 x float> poison, float %161, i64 0
  %163 = insertelement <2 x float> %162, float %159, i64 1
  %164 = fmul <2 x float> %149, %163
  %165 = fpext <2 x float> %164 to <2 x double>
  %166 = fmul <2 x double> %165, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %167 = load <2 x float>, ptr %4, align 8
  %168 = fpext <2 x float> %167 to <2 x double>
  %169 = fadd <2 x double> %166, %168
  %170 = fptrunc <2 x double> %169 to <2 x float>
  store <2 x float> %170, ptr %4, align 8
  %171 = call i32 @modemcf_demodulate(ptr noundef %41, <2 x float> noundef %170, ptr noundef nonnull %5) #9
  %172 = load i32, ptr %5, align 4, !tbaa !11
  %173 = lshr i32 %172, 2
  %174 = and i32 %173, 3
  %175 = and i32 %172, 3
  %176 = call i32 @count_bit_errors(i32 noundef %152, i32 noundef %174) #9
  %177 = add i32 %176, %.08896
  %178 = call i32 @count_bit_errors(i32 noundef %154, i32 noundef %175) #9
  %179 = add i32 %178, %.08995
  %180 = add nuw nsw i32 %.297, 1
  %exitcond.not = icmp eq i32 %180, 1000000
  br i1 %exitcond.not, label %181, label %150, !llvm.loop !13

181:                                              ; preds = %150
  %182 = fdiv float %145, 2.000000e+01
  %183 = call float @powf(float noundef 1.000000e+01, float noundef %182) #9
  %184 = fpext float %183 to double
  %185 = fmul double %184, 0x3FE6A09E667F3BCD
  %186 = fptrunc double %185 to float
  %187 = call float @erfcf(float noundef %186) #9
  %188 = fmul float %187, 5.000000e-01
  %189 = uitofp i32 %177 to float
  %190 = fdiv float %189, 2.000000e+06
  %191 = uitofp i32 %179 to float
  %192 = fdiv float %191, 2.000000e+06
  %193 = uitofp nneg i32 %.09098 to double
  %194 = fpext float %188 to double
  %195 = fpext float %190 to double
  %196 = fpext float %192 to double
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %.09098, double noundef %193, i32 noundef %177, i32 noundef %179, i32 noundef 2000000, double noundef %194, double noundef %195, double noundef %196)
  %198 = add nuw nsw i32 %.09098, 1
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.13, i32 noundef %198, double noundef %193, i32 noundef %198, double noundef %194, i32 noundef %198, double noundef %195, i32 noundef %198, double noundef %196) #9
  %exitcond103.not = icmp eq i32 %198, 31
  br i1 %exitcond103.not, label %200, label %144, !llvm.loop !14

200:                                              ; preds = %181
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.14) #9
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.15) #9
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.16, double noundef 0.000000e+00, double noundef 3.000000e+01) #9
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.17) #9
  %205 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.18) #9
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.19) #9
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.20) #9
  %208 = call i32 @fclose(ptr noundef %42)
  %209 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, ptr noundef nonnull @.str.5)
  %210 = call i32 @modemcf_destroy(ptr noundef %41) #9
  %211 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #9
  br label %212

212:                                              ; preds = %200, %8
  ret i32 0
}

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare float @erfcf(float noundef) local_unnamed_addr #4

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

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

declare i32 @modemcf_destroy(ptr noundef) local_unnamed_addr #7

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 = { 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 = { 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 #6 = { 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 #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 = { 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 #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 = !{!"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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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