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

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

@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@optarg = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.45 = 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) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca 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 i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, 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 float, align 4
  %29 = alloca float, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = 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) #7
  store i32 40, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 5, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 7, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 72, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store float -5.000000e+00, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store float 2.000000e+01, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store float 5.000000e-01, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 50, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 2000, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 40000, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  br label %37

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

42:                                               ; preds = %37
  %43 = load i32, ptr %17, align 4, !tbaa !5
  switch i32 %43, label %82 [
    i32 104, label %44
    i32 112, label %45
    i32 109, label %49
    i32 118, label %52
    i32 99, label %55
    i32 107, label %58
    i32 115, label %61
    i32 120, label %65
    i32 100, label %69
    i32 101, label %73
    i32 116, label %76
    i32 84, label %79
  ]

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

45:                                               ; preds = %42
  %46 = load ptr, ptr @optarg, align 8, !tbaa !9
  %47 = call i64 @atol(ptr noundef %46) #8
  %48 = trunc i64 %47 to i32
  store i32 %48, ptr %10, align 4, !tbaa !5
  br label %83

49:                                               ; preds = %42
  %50 = load ptr, ptr @optarg, align 8, !tbaa !9
  %51 = call i32 @liquid_getopt_str2mod(ptr noundef %50)
  store i32 %51, ptr %6, align 4, !tbaa !5
  br label %83

52:                                               ; preds = %42
  %53 = load ptr, ptr @optarg, align 8, !tbaa !9
  %54 = call i32 @liquid_getopt_str2crc(ptr noundef %53)
  store i32 %54, ptr %7, align 4, !tbaa !5
  br label %83

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

58:                                               ; preds = %42
  %59 = load ptr, ptr @optarg, align 8, !tbaa !9
  %60 = call i32 @liquid_getopt_str2fec(ptr noundef %59)
  store i32 %60, ptr %9, align 4, !tbaa !5
  br label %83

61:                                               ; preds = %42
  %62 = load ptr, ptr @optarg, align 8, !tbaa !9
  %63 = call double @atof(ptr noundef %62) #8
  %64 = fptrunc double %63 to float
  store float %64, ptr %11, align 4, !tbaa !11
  br label %83

65:                                               ; preds = %42
  %66 = load ptr, ptr @optarg, align 8, !tbaa !9
  %67 = call double @atof(ptr noundef %66) #8
  %68 = fptrunc double %67 to float
  store float %68, ptr %12, align 4, !tbaa !11
  br label %83

69:                                               ; preds = %42
  %70 = load ptr, ptr @optarg, align 8, !tbaa !9
  %71 = call double @atof(ptr noundef %70) #8
  %72 = fptrunc double %71 to float
  store float %72, ptr %13, align 4, !tbaa !11
  br label %83

73:                                               ; preds = %42
  %74 = load ptr, ptr @optarg, align 8, !tbaa !9
  %75 = call i32 @atoi(ptr noundef %74) #8
  store i32 %75, ptr %14, align 4, !tbaa !5
  br label %83

76:                                               ; preds = %42
  %77 = load ptr, ptr @optarg, align 8, !tbaa !9
  %78 = call i32 @atoi(ptr noundef %77) #8
  store i32 %78, ptr %15, align 4, !tbaa !5
  br label %83

79:                                               ; preds = %42
  %80 = load ptr, ptr @optarg, align 8, !tbaa !9
  %81 = call i32 @atoi(ptr noundef %80) #8
  store i32 %81, ptr %16, align 4, !tbaa !5
  br label %83

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

83:                                               ; preds = %79, %76, %73, %69, %65, %61, %58, %55, %52, %49, %45
  br label %37, !llvm.loop !13

84:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %85 = call ptr (...) @qpacketmodem_create()
  store ptr %85, ptr %20, align 8, !tbaa !9
  %86 = load ptr, ptr %20, align 8, !tbaa !9
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = call i32 @qpacketmodem_configure(ptr noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %91)
  %93 = load ptr, ptr %20, align 8, !tbaa !9
  %94 = call i32 @qpacketmodem_print(ptr noundef %93)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %95 = load ptr, ptr %20, align 8, !tbaa !9
  %96 = call i32 @qpacketmodem_get_frame_len(ptr noundef %95)
  store i32 %96, ptr %21, align 4, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = zext i32 %97 to i64
  %99 = call ptr @llvm.stacksave.p0()
  store ptr %99, ptr %22, align 8
  %100 = alloca i8, i64 %98, align 16
  store i64 %98, ptr %23, align 8
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = alloca i8, i64 %102, align 16
  store i64 %102, ptr %24, align 8
  %104 = load i32, ptr %21, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = alloca { float, float }, i64 %105, align 16
  store i64 %105, ptr %25, align 8
  %107 = load i32, ptr %21, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = alloca { float, float }, i64 %108, align 16
  store i64 %108, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %110 = call noalias ptr @fopen(ptr noundef @.str.14, ptr noundef @.str.15)
  store ptr %110, ptr %27, align 8, !tbaa !9
  %111 = load ptr, ptr %27, align 8, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef @.str.16, ptr noundef @.str.14) #7
  %113 = load ptr, ptr %27, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.17) #7
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef @.str.19, ptr noundef @.str.20, ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.20, ptr noundef @.str.23, ptr noundef @.str.24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %116 = load float, ptr %11, align 4, !tbaa !11
  store float %116, ptr %28, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %264, %84
  %118 = load float, ptr %28, align 4, !tbaa !11
  %119 = load float, ptr %12, align 4, !tbaa !11
  %120 = fcmp olt float %118, %119
  br i1 %120, label %121, label %265

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %122 = load float, ptr %28, align 4, !tbaa !11
  %123 = fneg float %122
  %124 = fdiv float %123, 2.000000e+01
  %125 = call float @powf(float noundef 1.000000e+01, float noundef %124) #7
  store float %125, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %222, %220, %121
  br label %127

127:                                              ; preds = %126
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %142, %127
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = load i32, ptr %10, align 4, !tbaa !5
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %132, label %145

132:                                              ; preds = %128
  %133 = call i32 @rand() #7
  %134 = and i32 %133, 255
  %135 = trunc i32 %134 to i8
  %136 = load i32, ptr %19, align 4, !tbaa !5
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds i8, ptr %100, i64 %137
  store i8 %135, ptr %138, align 1, !tbaa !15
  %139 = load i32, ptr %19, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds i8, ptr %103, i64 %140
  store i8 0, ptr %141, align 1, !tbaa !15
  br label %142

142:                                              ; preds = %132
  %143 = load i32, ptr %19, align 4, !tbaa !5
  %144 = add i32 %143, 1
  store i32 %144, ptr %19, align 4, !tbaa !5
  br label %128, !llvm.loop !16

145:                                              ; preds = %128
  %146 = load ptr, ptr %20, align 8, !tbaa !9
  %147 = call i32 @qpacketmodem_encode(ptr noundef %146, ptr noundef %100, ptr noundef %106)
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %183, %145
  %149 = load i32, ptr %19, align 4, !tbaa !5
  %150 = load i32, ptr %21, align 4, !tbaa !5
  %151 = icmp ult i32 %149, %150
  br i1 %151, label %152, label %186

152:                                              ; preds = %148
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds { float, float }, ptr %106, i64 %154
  %156 = getelementptr inbounds { float, float }, ptr %155, i32 0, i32 0
  %157 = load float, ptr %156, align 8
  %158 = getelementptr inbounds { float, float }, ptr %155, i32 0, i32 1
  %159 = load float, ptr %158, align 4
  %160 = fpext float %157 to double
  %161 = fpext float %159 to double
  %162 = load float, ptr %29, align 4, !tbaa !11
  %163 = call float (...) @randnf()
  %164 = call float (...) @randnf()
  %165 = fmul float 0.000000e+00, %164
  %166 = fmul float 1.000000e+00, %164
  %167 = fadd float %163, %165
  %168 = fmul float %162, %167
  %169 = fmul float %162, %166
  %170 = fpext float %168 to double
  %171 = fpext float %169 to double
  %172 = fmul double %170, 0x3FE6A09E667F3BCD
  %173 = fmul double %171, 0x3FE6A09E667F3BCD
  %174 = fadd double %160, %172
  %175 = fadd double %161, %173
  %176 = fptrunc double %174 to float
  %177 = fptrunc double %175 to float
  %178 = load i32, ptr %19, align 4, !tbaa !5
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds { float, float }, ptr %109, i64 %179
  %181 = getelementptr inbounds { float, float }, ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds { float, float }, ptr %180, i32 0, i32 1
  store float %176, ptr %181, align 8
  store float %177, ptr %182, align 4
  br label %183

183:                                              ; preds = %152
  %184 = load i32, ptr %19, align 4, !tbaa !5
  %185 = add i32 %184, 1
  store i32 %185, ptr %19, align 4, !tbaa !5
  br label %148, !llvm.loop !17

186:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %187 = load ptr, ptr %20, align 8, !tbaa !9
  %188 = call i32 @qpacketmodem_decode(ptr noundef %187, ptr noundef %109, ptr noundef %103)
  store i32 %188, ptr %34, align 4, !tbaa !5
  %189 = load i32, ptr %10, align 4, !tbaa !5
  %190 = call i32 @count_bit_errors_array(ptr noundef %100, ptr noundef %103, i32 noundef %189)
  %191 = load i32, ptr %33, align 4, !tbaa !5
  %192 = add i32 %191, %190
  store i32 %192, ptr %33, align 4, !tbaa !5
  %193 = load i32, ptr %34, align 4, !tbaa !5
  %194 = icmp ne i32 %193, 0
  %195 = zext i1 %194 to i64
  %196 = select i1 %194, i32 0, i32 1
  %197 = load i32, ptr %31, align 4, !tbaa !5
  %198 = add i32 %197, %196
  store i32 %198, ptr %31, align 4, !tbaa !5
  %199 = load i32, ptr %30, align 4, !tbaa !5
  %200 = add i32 %199, 1
  store i32 %200, ptr %30, align 4, !tbaa !5
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = mul i32 8, %201
  %203 = load i32, ptr %32, align 4, !tbaa !5
  %204 = add i32 %203, %202
  store i32 %204, ptr %32, align 4, !tbaa !5
  %205 = load i32, ptr %30, align 4, !tbaa !5
  %206 = load i32, ptr %15, align 4, !tbaa !5
  %207 = icmp ult i32 %205, %206
  br i1 %207, label %208, label %209

208:                                              ; preds = %186
  store i32 7, ptr %18, align 4
  br label %220

209:                                              ; preds = %186
  %210 = load i32, ptr %31, align 4, !tbaa !5
  %211 = load i32, ptr %14, align 4, !tbaa !5
  %212 = icmp uge i32 %210, %211
  br i1 %212, label %213, label %214

213:                                              ; preds = %209
  store i32 8, ptr %18, align 4
  br label %220

214:                                              ; preds = %209
  %215 = load i32, ptr %30, align 4, !tbaa !5
  %216 = load i32, ptr %16, align 4, !tbaa !5
  %217 = icmp uge i32 %215, %216
  br i1 %217, label %218, label %219

218:                                              ; preds = %214
  store i32 8, ptr %18, align 4
  br label %220

219:                                              ; preds = %214
  store i32 0, ptr %18, align 4
  br label %220

220:                                              ; preds = %219, %218, %213, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  %221 = load i32, ptr %18, align 4
  switch i32 %221, label %317 [
    i32 0, label %222
    i32 7, label %126
    i32 8, label %223
  ]

222:                                              ; preds = %220
  br label %126

223:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %224 = load i32, ptr %33, align 4, !tbaa !5
  %225 = uitofp i32 %224 to float
  %226 = load i32, ptr %32, align 4, !tbaa !5
  %227 = uitofp i32 %226 to float
  %228 = fdiv float %225, %227
  store float %228, ptr %35, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %229 = load i32, ptr %31, align 4, !tbaa !5
  %230 = uitofp i32 %229 to float
  %231 = load i32, ptr %30, align 4, !tbaa !5
  %232 = uitofp i32 %231 to float
  %233 = fdiv float %230, %232
  store float %233, ptr %36, align 4, !tbaa !11
  %234 = load float, ptr %28, align 4, !tbaa !11
  %235 = fpext float %234 to double
  %236 = load i32, ptr %33, align 4, !tbaa !5
  %237 = load i32, ptr %32, align 4, !tbaa !5
  %238 = load float, ptr %35, align 4, !tbaa !11
  %239 = fpext float %238 to double
  %240 = load i32, ptr %31, align 4, !tbaa !5
  %241 = load i32, ptr %30, align 4, !tbaa !5
  %242 = load float, ptr %36, align 4, !tbaa !11
  %243 = fmul float %242, 1.000000e+02
  %244 = fpext float %243 to double
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, double noundef %235, i32 noundef %236, i32 noundef %237, double noundef %239, i32 noundef %240, i32 noundef %241, double noundef %244)
  %246 = load ptr, ptr %27, align 8, !tbaa !9
  %247 = load float, ptr %28, align 4, !tbaa !11
  %248 = fpext float %247 to double
  %249 = load float, ptr %35, align 4, !tbaa !11
  %250 = fpext float %249 to double
  %251 = load float, ptr %36, align 4, !tbaa !11
  %252 = fpext float %251 to double
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.26, double noundef %248, double noundef %250, double noundef %252) #7
  %254 = load i32, ptr %31, align 4, !tbaa !5
  %255 = load i32, ptr %14, align 4, !tbaa !5
  %256 = icmp ult i32 %254, %255
  br i1 %256, label %257, label %258

257:                                              ; preds = %223
  store i32 6, ptr %18, align 4
  br label %262

258:                                              ; preds = %223
  %259 = load float, ptr %13, align 4, !tbaa !11
  %260 = load float, ptr %28, align 4, !tbaa !11
  %261 = fadd float %260, %259
  store float %261, ptr %28, align 4, !tbaa !11
  store i32 0, ptr %18, align 4
  br label %262

262:                                              ; preds = %258, %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  %263 = load i32, ptr %18, align 4
  switch i32 %263, label %317 [
    i32 0, label %264
    i32 6, label %265
  ]

264:                                              ; preds = %262
  br label %117, !llvm.loop !18

265:                                              ; preds = %262, %117
  %266 = load ptr, ptr %20, align 8, !tbaa !9
  %267 = call i32 @qpacketmodem_destroy(ptr noundef %266)
  %268 = load ptr, ptr %27, align 8, !tbaa !9
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef @.str.27) #7
  %270 = load ptr, ptr %27, align 8, !tbaa !9
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.28) #7
  %272 = load ptr, ptr %27, align 8, !tbaa !9
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %272, ptr noundef @.str.29) #7
  %274 = load ptr, ptr %27, align 8, !tbaa !9
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.30) #7
  %276 = load ptr, ptr %27, align 8, !tbaa !9
  %277 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %276, ptr noundef @.str.31) #7
  %278 = load ptr, ptr %27, align 8, !tbaa !9
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str.32) #7
  %280 = load ptr, ptr %27, align 8, !tbaa !9
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.33) #7
  %282 = load ptr, ptr %27, align 8, !tbaa !9
  %283 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %282, ptr noundef @.str.34) #7
  %284 = load ptr, ptr %27, align 8, !tbaa !9
  %285 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %284, ptr noundef @.str.35) #7
  %286 = load ptr, ptr %27, align 8, !tbaa !9
  %287 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %286, ptr noundef @.str.36) #7
  %288 = load ptr, ptr %27, align 8, !tbaa !9
  %289 = load float, ptr %11, align 4, !tbaa !11
  %290 = fpext float %289 to double
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %288, ptr noundef @.str.37, double noundef %290) #7
  %292 = load ptr, ptr %27, align 8, !tbaa !9
  %293 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %292, ptr noundef @.str.38) #7
  %294 = load ptr, ptr %27, align 8, !tbaa !9
  %295 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str.39) #7
  %296 = load ptr, ptr %27, align 8, !tbaa !9
  %297 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %296, ptr noundef @.str.40) #7
  %298 = load ptr, ptr %27, align 8, !tbaa !9
  %299 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %298, ptr noundef @.str.41) #7
  %300 = load ptr, ptr %27, align 8, !tbaa !9
  %301 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %300, ptr noundef @.str.35) #7
  %302 = load ptr, ptr %27, align 8, !tbaa !9
  %303 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %302, ptr noundef @.str.42) #7
  %304 = load ptr, ptr %27, align 8, !tbaa !9
  %305 = load float, ptr %11, align 4, !tbaa !11
  %306 = fpext float %305 to double
  %307 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %304, ptr noundef @.str.43, double noundef %306) #7
  %308 = load ptr, ptr %27, align 8, !tbaa !9
  %309 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %308, ptr noundef @.str.38) #7
  %310 = load ptr, ptr %27, align 8, !tbaa !9
  %311 = call i32 @fclose(ptr noundef %310)
  %312 = call i32 (ptr, ...) @printf(ptr noundef @.str.44, ptr noundef @.str.14)
  %313 = call i32 (ptr, ...) @printf(ptr noundef @.str.45)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %314 = load ptr, ptr %22, align 8
  call void @llvm.stackrestore.p0(ptr %314)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %315

315:                                              ; preds = %265, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %316 = load i32, ptr %3, align 4
  ret i32 %316

317:                                              ; preds = %262, %220
  unreachable
}

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

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr noundef nonnull) #4

declare i32 @liquid_getopt_str2mod(ptr noundef) #1

declare i32 @liquid_getopt_str2crc(ptr noundef) #1

declare i32 @liquid_getopt_str2fec(ptr noundef) #1

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

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

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

declare ptr @qpacketmodem_create(...) #1

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

declare i32 @qpacketmodem_print(ptr noundef) #1

declare i32 @qpacketmodem_get_frame_len(ptr noundef) #1

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

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

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

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

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

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

declare float @randnf(...) #1

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

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

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

declare i32 @qpacketmodem_destroy(ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = 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.13 = external hidden unnamed_addr constant [24 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.45 = 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 #0 {
  br label %3

3:                                                ; preds = %.backedge, %2
  %.0117 = phi i32 [ 40000, %2 ], [ %.0117.be, %.backedge ]
  %.0115 = phi i32 [ 2000, %2 ], [ %.0115.be, %.backedge ]
  %.0113 = phi i32 [ 50, %2 ], [ %.0113.be, %.backedge ]
  %.0111 = phi float [ 5.000000e-01, %2 ], [ %.0111.be, %.backedge ]
  %.0109 = phi float [ 2.000000e+01, %2 ], [ %.0109.be, %.backedge ]
  %.0107 = phi float [ -5.000000e+00, %2 ], [ %.0107.be, %.backedge ]
  %.0105 = phi i32 [ 72, %2 ], [ %.0105.be, %.backedge ]
  %.0103 = phi i32 [ 7, %2 ], [ %.0103.be, %.backedge ]
  %.099 = phi i32 [ 1, %2 ], [ %.099.be, %.backedge ]
  %.093 = phi i32 [ 5, %2 ], [ %.093.be, %.backedge ]
  %.092 = phi i32 [ 40, %2 ], [ %.092.be, %.backedge ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.13) #8
  switch i32 %4, label %43 [
    i32 -1, label %44
    i32 104, label %5
    i32 112, label %6
    i32 109, label %10
    i32 118, label %13
    i32 99, label %16
    i32 107, label %19
    i32 115, label %22
    i32 120, label %26
    i32 100, label %30
    i32 101, label %34
    i32 116, label %37
    i32 84, label %40
  ]

5:                                                ; preds = %3
  tail call void @usage()
  br label %167

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call i64 @atol(ptr nocapture noundef %7) #9
  %9 = trunc i64 %8 to i32
  br label %.backedge

10:                                               ; preds = %3
  %11 = load ptr, ptr @optarg, align 8, !tbaa !5
  %12 = tail call i32 @liquid_getopt_str2mod(ptr noundef %11) #8
  br label %.backedge

13:                                               ; preds = %3
  %14 = load ptr, ptr @optarg, align 8, !tbaa !5
  %15 = tail call i32 @liquid_getopt_str2crc(ptr noundef %14) #8
  br label %.backedge

16:                                               ; preds = %3
  %17 = load ptr, ptr @optarg, align 8, !tbaa !5
  %18 = tail call i32 @liquid_getopt_str2fec(ptr noundef %17) #8
  br label %.backedge

19:                                               ; preds = %3
  %20 = load ptr, ptr @optarg, align 8, !tbaa !5
  %21 = tail call i32 @liquid_getopt_str2fec(ptr noundef %20) #8
  br label %.backedge

22:                                               ; preds = %3
  %23 = load ptr, ptr @optarg, align 8, !tbaa !5
  %24 = tail call double @atof(ptr noundef %23) #9
  %25 = fptrunc double %24 to float
  br label %.backedge

26:                                               ; preds = %3
  %27 = load ptr, ptr @optarg, align 8, !tbaa !5
  %28 = tail call double @atof(ptr noundef %27) #9
  %29 = fptrunc double %28 to float
  br label %.backedge

30:                                               ; preds = %3
  %31 = load ptr, ptr @optarg, align 8, !tbaa !5
  %32 = tail call double @atof(ptr noundef %31) #9
  %33 = fptrunc double %32 to float
  br label %.backedge

34:                                               ; preds = %3
  %35 = load ptr, ptr @optarg, align 8, !tbaa !5
  %36 = tail call i32 @atoi(ptr nocapture noundef %35) #9
  br label %.backedge

37:                                               ; preds = %3
  %38 = load ptr, ptr @optarg, align 8, !tbaa !5
  %39 = tail call i32 @atoi(ptr nocapture noundef %38) #9
  br label %.backedge

40:                                               ; preds = %3
  %41 = load ptr, ptr @optarg, align 8, !tbaa !5
  %42 = tail call i32 @atoi(ptr nocapture noundef %41) #9
  br label %.backedge

.backedge:                                        ; preds = %40, %37, %34, %30, %26, %22, %19, %16, %13, %10, %6
  %.0117.be = phi i32 [ %42, %40 ], [ %.0117, %37 ], [ %.0117, %34 ], [ %.0117, %30 ], [ %.0117, %26 ], [ %.0117, %22 ], [ %.0117, %19 ], [ %.0117, %16 ], [ %.0117, %13 ], [ %.0117, %10 ], [ %.0117, %6 ]
  %.0115.be = phi i32 [ %.0115, %40 ], [ %39, %37 ], [ %.0115, %34 ], [ %.0115, %30 ], [ %.0115, %26 ], [ %.0115, %22 ], [ %.0115, %19 ], [ %.0115, %16 ], [ %.0115, %13 ], [ %.0115, %10 ], [ %.0115, %6 ]
  %.0113.be = phi i32 [ %.0113, %40 ], [ %.0113, %37 ], [ %36, %34 ], [ %.0113, %30 ], [ %.0113, %26 ], [ %.0113, %22 ], [ %.0113, %19 ], [ %.0113, %16 ], [ %.0113, %13 ], [ %.0113, %10 ], [ %.0113, %6 ]
  %.0111.be = phi float [ %.0111, %40 ], [ %.0111, %37 ], [ %.0111, %34 ], [ %33, %30 ], [ %.0111, %26 ], [ %.0111, %22 ], [ %.0111, %19 ], [ %.0111, %16 ], [ %.0111, %13 ], [ %.0111, %10 ], [ %.0111, %6 ]
  %.0109.be = phi float [ %.0109, %40 ], [ %.0109, %37 ], [ %.0109, %34 ], [ %.0109, %30 ], [ %29, %26 ], [ %.0109, %22 ], [ %.0109, %19 ], [ %.0109, %16 ], [ %.0109, %13 ], [ %.0109, %10 ], [ %.0109, %6 ]
  %.0107.be = phi float [ %.0107, %40 ], [ %.0107, %37 ], [ %.0107, %34 ], [ %.0107, %30 ], [ %.0107, %26 ], [ %25, %22 ], [ %.0107, %19 ], [ %.0107, %16 ], [ %.0107, %13 ], [ %.0107, %10 ], [ %.0107, %6 ]
  %.0105.be = phi i32 [ %.0105, %40 ], [ %.0105, %37 ], [ %.0105, %34 ], [ %.0105, %30 ], [ %.0105, %26 ], [ %.0105, %22 ], [ %.0105, %19 ], [ %.0105, %16 ], [ %.0105, %13 ], [ %.0105, %10 ], [ %9, %6 ]
  %.0103.be = phi i32 [ %.0103, %40 ], [ %.0103, %37 ], [ %.0103, %34 ], [ %.0103, %30 ], [ %.0103, %26 ], [ %.0103, %22 ], [ %21, %19 ], [ %.0103, %16 ], [ %.0103, %13 ], [ %.0103, %10 ], [ %.0103, %6 ]
  %.099.be = phi i32 [ %.099, %40 ], [ %.099, %37 ], [ %.099, %34 ], [ %.099, %30 ], [ %.099, %26 ], [ %.099, %22 ], [ %.099, %19 ], [ %18, %16 ], [ %.099, %13 ], [ %.099, %10 ], [ %.099, %6 ]
  %.093.be = phi i32 [ %.093, %40 ], [ %.093, %37 ], [ %.093, %34 ], [ %.093, %30 ], [ %.093, %26 ], [ %.093, %22 ], [ %.093, %19 ], [ %.093, %16 ], [ %15, %13 ], [ %.093, %10 ], [ %.093, %6 ]
  %.092.be = phi i32 [ %.092, %40 ], [ %.092, %37 ], [ %.092, %34 ], [ %.092, %30 ], [ %.092, %26 ], [ %.092, %22 ], [ %.092, %19 ], [ %.092, %16 ], [ %.092, %13 ], [ %12, %10 ], [ %.092, %6 ]
  br label %3, !llvm.loop !9

43:                                               ; preds = %3
  tail call void @exit(i32 noundef -1) #10
  unreachable

44:                                               ; preds = %3
  %45 = tail call ptr (...) @qpacketmodem_create() #8
  %46 = tail call i32 @qpacketmodem_configure(ptr noundef %45, i32 noundef %.0105, i32 noundef %.093, i32 noundef %.099, i32 noundef %.0103, i32 noundef %.092) #8
  %47 = tail call i32 @qpacketmodem_print(ptr noundef %45) #8
  %48 = tail call i32 @qpacketmodem_get_frame_len(ptr noundef %45) #8
  %.fr166 = freeze i32 %48
  %49 = zext i32 %.0105 to i64
  %50 = tail call ptr @llvm.stacksave.p0()
  %51 = alloca i8, i64 %49, align 16
  %52 = alloca i8, i64 %49, align 16
  %53 = zext i32 %.fr166 to i64
  %54 = alloca { float, float }, i64 %53, align 16
  %55 = alloca { float, float }, i64 %53, align 16
  %56 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15)
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.14) #8
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.17) #8
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.24)
  %.not = icmp eq i32 %.0105, 0
  %.not167 = icmp eq i32 %.fr166, 0
  %60 = shl i32 %.0105, 3
  br i1 %.not167, label %.split163, label %.split163.us

.split163.us:                                     ; preds = %44, %.thread.split.us.us
  %.0101.us = phi float [ %110, %.thread.split.us.us ], [ %.0107, %44 ]
  %61 = fcmp olt float %.0101.us, %.0109
  br i1 %61, label %.split.us.us, label %.split165.us

.split.us.us:                                     ; preds = %.split163.us
  %62 = fdiv float %.0101.us, -2.000000e+01
  %63 = call float @powf(float noundef 1.000000e+01, float noundef %62) #8
  %64 = insertelement <2 x float> poison, float %63, i64 0
  %65 = shufflevector <2 x float> %64, <2 x float> poison, <2 x i32> zeroinitializer
  br label %select.unfold

select.unfold:                                    ; preds = %select.unfold.backedge, %.split.us.us
  %.098.us.us = phi i32 [ 0, %.split.us.us ], [ %93, %select.unfold.backedge ]
  %.097.us.us = phi i32 [ 0, %.split.us.us ], [ %92, %select.unfold.backedge ]
  %.096.us.us = phi i32 [ 0, %.split.us.us ], [ %94, %select.unfold.backedge ]
  %.095.us.us = phi i32 [ 0, %.split.us.us ], [ %90, %select.unfold.backedge ]
  br i1 %.not, label %.lr.ph158.us.us, label %.lr.ph.us.us

.lr.ph158.us.us:                                  ; preds = %.lr.ph.us.us, %select.unfold
  %66 = call i32 @qpacketmodem_encode(ptr noundef %45, ptr noundef nonnull %51, ptr noundef nonnull %54) #8
  br label %68

67:                                               ; preds = %._crit_edge159.us.us
  %.not125.us.us = icmp ult i32 %92, %.0113
  %.not126.us.us = icmp ult i32 %93, %.0117
  %or.cond215 = select i1 %.not125.us.us, i1 %.not126.us.us, i1 false
  br i1 %or.cond215, label %select.unfold.backedge, label %.thread.split.us.us

select.unfold.backedge:                           ; preds = %67, %._crit_edge159.us.us
  br label %select.unfold

68:                                               ; preds = %68, %.lr.ph158.us.us
  %indvars.iv199 = phi i64 [ %indvars.iv.next200, %68 ], [ 0, %.lr.ph158.us.us ]
  %69 = getelementptr inbounds { float, float }, ptr %54, i64 %indvars.iv199
  %70 = getelementptr inbounds { float, float }, ptr %55, i64 %indvars.iv199
  %71 = load <2 x float>, ptr %69, align 8
  %72 = fpext <2 x float> %71 to <2 x double>
  %73 = call float (...) @randnf() #8
  %74 = call float (...) @randnf() #8
  %75 = fmul float %74, 0.000000e+00
  %76 = fadd float %73, %75
  %77 = insertelement <2 x float> poison, float %76, i64 0
  %78 = insertelement <2 x float> %77, float %74, i64 1
  %79 = fmul <2 x float> %65, %78
  %80 = fpext <2 x float> %79 to <2 x double>
  %81 = fmul <2 x double> %80, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %82 = fadd <2 x double> %81, %72
  %83 = fptrunc <2 x double> %82 to <2 x float>
  store <2 x float> %83, ptr %70, align 8
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %53
  br i1 %exitcond203.not, label %._crit_edge159.us.us, label %68, !llvm.loop !11

.lr.ph.us.us:                                     ; preds = %select.unfold, %.lr.ph.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.us.us ], [ 0, %select.unfold ]
  %84 = call i32 @rand() #8
  %85 = trunc i32 %84 to i8
  %86 = getelementptr inbounds i8, ptr %51, i64 %indvars.iv
  store i8 %85, ptr %86, align 1, !tbaa !12
  %87 = getelementptr inbounds i8, ptr %52, i64 %indvars.iv
  store i8 0, ptr %87, align 1, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %49
  br i1 %exitcond.not, label %.lr.ph158.us.us, label %.lr.ph.us.us, !llvm.loop !13

._crit_edge159.us.us:                             ; preds = %68
  %88 = call i32 @qpacketmodem_decode(ptr noundef %45, ptr noundef nonnull %55, ptr noundef nonnull %52) #8
  %89 = call i32 @count_bit_errors_array(ptr noundef nonnull %51, ptr noundef nonnull %52, i32 noundef %.0105) #8
  %90 = add i32 %89, %.095.us.us
  %.not124.us.us = icmp eq i32 %88, 0
  %91 = zext i1 %.not124.us.us to i32
  %92 = add i32 %.097.us.us, %91
  %93 = add i32 %.098.us.us, 1
  %94 = add i32 %.096.us.us, %60
  %95 = icmp ult i32 %93, %.0115
  br i1 %95, label %select.unfold.backedge, label %67

.thread.split.us.us:                              ; preds = %67
  %96 = uitofp i32 %90 to float
  %97 = uitofp i32 %94 to float
  %98 = fdiv float %96, %97
  %99 = uitofp i32 %92 to float
  %100 = uitofp i32 %93 to float
  %101 = fdiv float %99, %100
  %102 = fpext float %.0101.us to double
  %103 = fpext float %98 to double
  %104 = fmul float %101, 1.000000e+02
  %105 = fpext float %104 to double
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, double noundef %102, i32 noundef %90, i32 noundef %94, double noundef %103, i32 noundef %92, i32 noundef %93, double noundef %105)
  %107 = fpext float %101 to double
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.26, double noundef %102, double noundef %103, double noundef %107) #8
  %109 = icmp ult i32 %92, %.0113
  %110 = fadd float %.0111, %.0101.us
  br i1 %109, label %.split165.us, label %.split163.us

.split163:                                        ; preds = %44, %.thread.split
  %.0101 = phi float [ %142, %.thread.split ], [ %.0107, %44 ]
  %111 = fcmp olt float %.0101, %.0109
  br i1 %111, label %.split, label %.split165.us

.split:                                           ; preds = %.split163
  %112 = fdiv float %.0101, -2.000000e+01
  %113 = call float @powf(float noundef 1.000000e+01, float noundef %112) #8
  br label %select.unfold211

select.unfold211:                                 ; preds = %select.unfold211.backedge, %.split
  %.098 = phi i32 [ 0, %.split ], [ %124, %select.unfold211.backedge ]
  %.097 = phi i32 [ 0, %.split ], [ %123, %select.unfold211.backedge ]
  %.096 = phi i32 [ 0, %.split ], [ %125, %select.unfold211.backedge ]
  %.095 = phi i32 [ 0, %.split ], [ %121, %select.unfold211.backedge ]
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %select.unfold211, %.lr.ph
  %indvars.iv204 = phi i64 [ %indvars.iv.next205, %.lr.ph ], [ 0, %select.unfold211 ]
  %114 = call i32 @rand() #8
  %115 = trunc i32 %114 to i8
  %116 = getelementptr inbounds i8, ptr %51, i64 %indvars.iv204
  store i8 %115, ptr %116, align 1, !tbaa !12
  %117 = getelementptr inbounds i8, ptr %52, i64 %indvars.iv204
  store i8 0, ptr %117, align 1, !tbaa !12
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %49
  br i1 %exitcond208.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %select.unfold211
  %118 = call i32 @qpacketmodem_encode(ptr noundef %45, ptr noundef nonnull %51, ptr noundef nonnull %54) #8
  %119 = call i32 @qpacketmodem_decode(ptr noundef %45, ptr noundef nonnull %55, ptr noundef nonnull %52) #8
  %120 = call i32 @count_bit_errors_array(ptr noundef nonnull %51, ptr noundef nonnull %52, i32 noundef %.0105) #8
  %121 = add i32 %120, %.095
  %.not124 = icmp eq i32 %119, 0
  %122 = zext i1 %.not124 to i32
  %123 = add i32 %.097, %122
  %124 = add i32 %.098, 1
  %125 = add i32 %.096, %60
  %126 = icmp ult i32 %124, %.0115
  br i1 %126, label %select.unfold211.backedge, label %127

127:                                              ; preds = %._crit_edge
  %.not125 = icmp ult i32 %123, %.0113
  %.not126 = icmp ult i32 %124, %.0117
  %or.cond = select i1 %.not125, i1 %.not126, i1 false
  br i1 %or.cond, label %select.unfold211.backedge, label %.thread.split

select.unfold211.backedge:                        ; preds = %127, %._crit_edge
  br label %select.unfold211

.thread.split:                                    ; preds = %127
  %128 = uitofp i32 %121 to float
  %129 = uitofp i32 %125 to float
  %130 = fdiv float %128, %129
  %131 = uitofp i32 %123 to float
  %132 = uitofp i32 %124 to float
  %133 = fdiv float %131, %132
  %134 = fpext float %.0101 to double
  %135 = fpext float %130 to double
  %136 = fmul float %133, 1.000000e+02
  %137 = fpext float %136 to double
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25, double noundef %134, i32 noundef %121, i32 noundef %125, double noundef %135, i32 noundef %123, i32 noundef %124, double noundef %137)
  %139 = fpext float %133 to double
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.26, double noundef %134, double noundef %135, double noundef %139) #8
  %141 = icmp ult i32 %123, %.0113
  %142 = fadd float %.0111, %.0101
  br i1 %141, label %.split165.us, label %.split163

.split165.us:                                     ; preds = %.split163.us, %.thread.split.us.us, %.split163, %.thread.split
  %143 = call i32 @qpacketmodem_destroy(ptr noundef %45) #8
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.27) #8
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.28) #8
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.29) #8
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.30) #8
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.31) #8
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.32) #8
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.33) #8
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.34) #8
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.35) #8
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.36) #8
  %154 = fpext float %.0107 to double
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.37, double noundef %154) #8
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.38) #8
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.39) #8
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.40) #8
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.41) #8
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.35) #8
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.42) #8
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.43, double noundef %154) #8
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.38) #8
  %164 = call i32 @fclose(ptr noundef %56)
  %165 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44, ptr noundef nonnull @.str.14)
  %166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45)
  call void @llvm.stackrestore.p0(ptr %50)
  br label %167

167:                                              ; preds = %.split165.us, %5
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i64 @atol(ptr nocapture noundef nonnull) local_unnamed_addr #3

declare i32 @liquid_getopt_str2mod(ptr noundef) local_unnamed_addr #4

declare i32 @liquid_getopt_str2crc(ptr noundef) local_unnamed_addr #4

declare i32 @liquid_getopt_str2fec(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 #3

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

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

declare ptr @qpacketmodem_create(...) local_unnamed_addr #4

declare i32 @qpacketmodem_configure(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

declare i32 @qpacketmodem_print(ptr noundef) local_unnamed_addr #4

declare i32 @qpacketmodem_get_frame_len(ptr noundef) local_unnamed_addr #4

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

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

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

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

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

declare i32 @qpacketmodem_encode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare i32 @qpacketmodem_decode(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @count_bit_errors_array(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @qpacketmodem_destroy(ptr noundef) local_unnamed_addr #4

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

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

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 "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 = { 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 #4 = { "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 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #7 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"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 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}


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