; LLVM IR from jgaeddert/liquid-dsp :: examples (agc_crcf_squelch_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.3 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.47 = 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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca float, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca [20 x i8], align 16
  %22 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  store float 2.500000e-01, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  br label %23

23:                                               ; preds = %36, %2
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = call i32 @getopt(i32 noundef %24, ptr noundef %25, ptr noundef @.str.3) #10
  store i32 %26, ptr %7, align 4, !tbaa !5
  %27 = icmp ne i32 %26, -1
  br i1 %27, label %28, label %37

28:                                               ; preds = %23
  %29 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %29, label %35 [
    i32 104, label %30
    i32 98, label %31
  ]

30:                                               ; preds = %28
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %389

31:                                               ; preds = %28
  %32 = load ptr, ptr @optarg, align 8, !tbaa !9
  %33 = call double @atof(ptr noundef %32) #11
  %34 = fptrunc double %33 to float
  store float %34, ptr %6, align 4, !tbaa !11
  br label %36

35:                                               ; preds = %28
  call void @exit(i32 noundef 1) #12
  unreachable

36:                                               ; preds = %31
  br label %23, !llvm.loop !13

37:                                               ; preds = %23
  %38 = load float, ptr %6, align 4, !tbaa !11
  %39 = fcmp olt float %38, 0.000000e+00
  br i1 %39, label %40, label %46

40:                                               ; preds = %37
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 0
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.4, ptr noundef %44) #10
  call void @exit(i32 noundef 1) #12
  unreachable

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %47 = call ptr @agc_crcf_create()
  store ptr %47, ptr %10, align 8, !tbaa !9
  %48 = load ptr, ptr %10, align 8, !tbaa !9
  %49 = load float, ptr %6, align 4, !tbaa !11
  %50 = call i32 @agc_crcf_set_bandwidth(ptr noundef %48, float noundef %49)
  %51 = load ptr, ptr %10, align 8, !tbaa !9
  %52 = call i32 @agc_crcf_set_signal_level(ptr noundef %51, float noundef 0x3F50624DE0000000)
  %53 = load ptr, ptr %10, align 8, !tbaa !9
  %54 = call i32 @agc_crcf_squelch_enable(ptr noundef %53)
  %55 = load ptr, ptr %10, align 8, !tbaa !9
  %56 = call i32 @agc_crcf_squelch_set_threshold(ptr noundef %55, float noundef -5.000000e+01)
  %57 = load ptr, ptr %10, align 8, !tbaa !9
  %58 = call i32 @agc_crcf_squelch_set_timeout(ptr noundef %57, i32 noundef 100)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 2000, ptr %11, align 4, !tbaa !5
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = call ptr @llvm.stacksave.p0()
  store ptr %61, ptr %12, align 8
  %62 = alloca { float, float }, i64 %60, align 16
  store i64 %60, ptr %13, align 8
  %63 = load i32, ptr %11, align 4, !tbaa !5
  %64 = zext i32 %63 to i64
  %65 = alloca { float, float }, i64 %64, align 16
  store i64 %64, ptr %14, align 8
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = alloca float, i64 %67, align 16
  store i64 %67, ptr %15, align 8
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = alloca i32, i64 %70, align 16
  store i64 %70, ptr %16, align 8
  %72 = load float, ptr %6, align 4, !tbaa !11
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %73)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %142, %46
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %79, label %145

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  store float 0.000000e+00, ptr %17, align 4, !tbaa !11
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = icmp ult i32 %80, 500
  br i1 %81, label %82, label %83

82:                                               ; preds = %79
  store float 0x3F50624DE0000000, ptr %17, align 4, !tbaa !11
  br label %119

83:                                               ; preds = %79
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = icmp ult i32 %84, 550
  br i1 %85, label %86, label %97

86:                                               ; preds = %83
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = sub i32 %87, 500
  %89 = uitofp i32 %88 to float
  %90 = fpext float %89 to double
  %91 = fmul double 0x400921FB54442D18, %90
  %92 = fdiv double %91, 5.000000e+01
  %93 = fptrunc double %92 to float
  %94 = call float @cosf(float noundef %93) #10
  %95 = call float @llvm.fmuladd.f32(float -5.000000e-01, float %94, float 5.000000e-01)
  %96 = call float @llvm.fmuladd.f32(float 0x3F826E9780000000, float %95, float 0x3F50624DE0000000)
  store float %96, ptr %17, align 4, !tbaa !11
  br label %118

97:                                               ; preds = %83
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = icmp ult i32 %98, 1450
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  store float 0x3F847AE140000000, ptr %17, align 4, !tbaa !11
  br label %117

101:                                              ; preds = %97
  %102 = load i32, ptr %9, align 4, !tbaa !5
  %103 = icmp ult i32 %102, 1500
  br i1 %103, label %104, label %115

104:                                              ; preds = %101
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = sub i32 %105, 1450
  %107 = uitofp i32 %106 to float
  %108 = fpext float %107 to double
  %109 = fmul double 0x400921FB54442D18, %108
  %110 = fdiv double %109, 5.000000e+01
  %111 = fptrunc double %110 to float
  %112 = call float @cosf(float noundef %111) #10
  %113 = call float @llvm.fmuladd.f32(float 5.000000e-01, float %112, float 5.000000e-01)
  %114 = call float @llvm.fmuladd.f32(float 0x3F826E9780000000, float %113, float 0x3F50624DE0000000)
  store float %114, ptr %17, align 4, !tbaa !11
  br label %116

115:                                              ; preds = %101
  store float 0x3F50624DE0000000, ptr %17, align 4, !tbaa !11
  br label %116

116:                                              ; preds = %115, %104
  br label %117

117:                                              ; preds = %116, %100
  br label %118

118:                                              ; preds = %117, %86
  br label %119

119:                                              ; preds = %118, %82
  %120 = load float, ptr %17, align 4, !tbaa !11
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = uitofp i32 %121 to double
  %123 = fmul double 0.000000e+00, %122
  %124 = fmul double 0x3FBF0B412B6B99F8, %122
  %125 = fptrunc double %123 to float
  %126 = fptrunc double %124 to float
  %127 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %128 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %125, ptr %127, align 4
  store float %126, ptr %128, align 4
  %129 = load <2 x float>, ptr %18, align 4
  %130 = call <2 x float> @cexpf(<2 x float> noundef %129) #10
  store <2 x float> %130, ptr %19, align 4
  %131 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %132 = load float, ptr %131, align 4
  %133 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  %135 = fmul float %120, %132
  %136 = fmul float %120, %134
  %137 = load i32, ptr %9, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds { float, float }, ptr %62, i64 %138
  %140 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds { float, float }, ptr %139, i32 0, i32 1
  store float %135, ptr %140, align 8
  store float %136, ptr %141, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %142

142:                                              ; preds = %119
  %143 = load i32, ptr %9, align 4, !tbaa !5
  %144 = add i32 %143, 1
  store i32 %144, ptr %9, align 4, !tbaa !5
  br label %75, !llvm.loop !15

145:                                              ; preds = %75
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %239, %145
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = icmp ult i32 %147, %148
  br i1 %149, label %150, label %242

150:                                              ; preds = %146
  %151 = load ptr, ptr %10, align 8, !tbaa !9
  %152 = load i32, ptr %9, align 4, !tbaa !5
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds { float, float }, ptr %62, i64 %153
  %155 = getelementptr inbounds { float, float }, ptr %154, i32 0, i32 0
  %156 = load float, ptr %155, align 8
  %157 = getelementptr inbounds { float, float }, ptr %154, i32 0, i32 1
  %158 = load float, ptr %157, align 4
  %159 = load i32, ptr %9, align 4, !tbaa !5
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds { float, float }, ptr %65, i64 %160
  %162 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %163 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  store float %156, ptr %162, align 4
  store float %158, ptr %163, align 4
  %164 = load <2 x float>, ptr %20, align 4
  %165 = call i32 @agc_crcf_execute(ptr noundef %151, <2 x float> noundef %164, ptr noundef %161)
  %166 = load ptr, ptr %10, align 8, !tbaa !9
  %167 = call float @agc_crcf_get_rssi(ptr noundef %166)
  %168 = load i32, ptr %9, align 4, !tbaa !5
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %68, i64 %169
  store float %167, ptr %170, align 4, !tbaa !11
  %171 = load ptr, ptr %10, align 8, !tbaa !9
  %172 = call i32 @agc_crcf_squelch_get_status(ptr noundef %171)
  %173 = load i32, ptr %9, align 4, !tbaa !5
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %71, i64 %174
  store i32 %172, ptr %175, align 4, !tbaa !5
  %176 = load i32, ptr %9, align 4, !tbaa !5
  %177 = urem i32 %176, 100
  %178 = icmp eq i32 %177, 0
  br i1 %178, label %196, label %179

179:                                              ; preds = %150
  %180 = load i32, ptr %9, align 4, !tbaa !5
  %181 = load i32, ptr %11, align 4, !tbaa !5
  %182 = sub i32 %181, 1
  %183 = icmp eq i32 %180, %182
  br i1 %183, label %196, label %184

184:                                              ; preds = %179
  %185 = load i32, ptr %9, align 4, !tbaa !5
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds i32, ptr %71, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = icmp eq i32 %188, 2
  br i1 %189, label %196, label %190

190:                                              ; preds = %184
  %191 = load i32, ptr %9, align 4, !tbaa !5
  %192 = zext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %71, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = icmp eq i32 %194, 4
  br i1 %195, label %196, label %238

196:                                              ; preds = %190, %184, %179, %150
  call void @llvm.lifetime.start.p0(i64 20, ptr %21) #10
  call void @llvm.memset.p0.i64(ptr align 16 %21, i8 0, i64 20, i1 false)
  %197 = load i32, ptr %9, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds i32, ptr %71, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  switch i32 %200, label %222 [
    i32 1, label %201
    i32 2, label %204
    i32 3, label %207
    i32 4, label %210
    i32 5, label %213
    i32 6, label %216
    i32 7, label %219
  ]

201:                                              ; preds = %196
  %202 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %203 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %202, ptr noundef @.str.6) #10
  br label %225

204:                                              ; preds = %196
  %205 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %206 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %205, ptr noundef @.str.7) #10
  br label %225

207:                                              ; preds = %196
  %208 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %209 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %208, ptr noundef @.str.8) #10
  br label %225

210:                                              ; preds = %196
  %211 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %212 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %211, ptr noundef @.str.9) #10
  br label %225

213:                                              ; preds = %196
  %214 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %215 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %214, ptr noundef @.str.10) #10
  br label %225

216:                                              ; preds = %196
  %217 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %218 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %217, ptr noundef @.str.11) #10
  br label %225

219:                                              ; preds = %196
  %220 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %221 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %220, ptr noundef @.str.12) #10
  br label %225

222:                                              ; preds = %196
  %223 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %224 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %223, ptr noundef @.str.13) #10
  br label %225

225:                                              ; preds = %222, %219, %216, %213, %210, %207, %204, %201
  %226 = load i32, ptr %9, align 4, !tbaa !5
  %227 = getelementptr inbounds [20 x i8], ptr %21, i64 0, i64 0
  %228 = load i32, ptr %9, align 4, !tbaa !5
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds i32, ptr %71, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = load i32, ptr %9, align 4, !tbaa !5
  %233 = zext i32 %232 to i64
  %234 = getelementptr inbounds float, ptr %68, i64 %233
  %235 = load float, ptr %234, align 4, !tbaa !11
  %236 = fpext float %235 to double
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %226, ptr noundef %227, i32 noundef %231, double noundef %236)
  call void @llvm.lifetime.end.p0(i64 20, ptr %21) #10
  br label %238

238:                                              ; preds = %225, %190
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %9, align 4, !tbaa !5
  %241 = add i32 %240, 1
  store i32 %241, ptr %9, align 4, !tbaa !5
  br label %146, !llvm.loop !16

242:                                              ; preds = %146
  %243 = load ptr, ptr %10, align 8, !tbaa !9
  %244 = call i32 @agc_crcf_destroy(ptr noundef %243)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %245 = call noalias ptr @fopen(ptr noundef @.str.15, ptr noundef @.str.16)
  store ptr %245, ptr %22, align 8, !tbaa !9
  %246 = load ptr, ptr %22, align 8, !tbaa !9
  %247 = icmp ne ptr %246, null
  br i1 %247, label %254, label %248

248:                                              ; preds = %242
  %249 = load ptr, ptr @stderr, align 8, !tbaa !9
  %250 = load ptr, ptr %5, align 8, !tbaa !9
  %251 = getelementptr inbounds ptr, ptr %250, i64 0
  %252 = load ptr, ptr %251, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %249, ptr noundef @.str.17, ptr noundef %252, ptr noundef @.str.15) #10
  call void @exit(i32 noundef 1) #12
  unreachable

254:                                              ; preds = %242
  %255 = load ptr, ptr %22, align 8, !tbaa !9
  %256 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef @.str.18, ptr noundef @.str.15) #10
  %257 = load ptr, ptr %22, align 8, !tbaa !9
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %257, ptr noundef @.str.19) #10
  %259 = load ptr, ptr %22, align 8, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !5
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.20, i32 noundef %260) #10
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %324, %254
  %263 = load i32, ptr %9, align 4, !tbaa !5
  %264 = load i32, ptr %11, align 4, !tbaa !5
  %265 = icmp ult i32 %263, %264
  br i1 %265, label %266, label %327

266:                                              ; preds = %262
  %267 = load ptr, ptr %22, align 8, !tbaa !9
  %268 = load i32, ptr %9, align 4, !tbaa !5
  %269 = add i32 %268, 1
  %270 = load i32, ptr %9, align 4, !tbaa !5
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds { float, float }, ptr %62, i64 %271
  %273 = getelementptr inbounds { float, float }, ptr %272, i32 0, i32 0
  %274 = load float, ptr %273, align 8
  %275 = getelementptr inbounds { float, float }, ptr %272, i32 0, i32 1
  %276 = load float, ptr %275, align 4
  %277 = fpext float %274 to double
  %278 = load i32, ptr %9, align 4, !tbaa !5
  %279 = zext i32 %278 to i64
  %280 = getelementptr inbounds { float, float }, ptr %62, i64 %279
  %281 = getelementptr inbounds { float, float }, ptr %280, i32 0, i32 0
  %282 = load float, ptr %281, align 8
  %283 = getelementptr inbounds { float, float }, ptr %280, i32 0, i32 1
  %284 = load float, ptr %283, align 4
  %285 = fpext float %284 to double
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %267, ptr noundef @.str.21, i32 noundef %269, double noundef %277, double noundef %285) #10
  %287 = load ptr, ptr %22, align 8, !tbaa !9
  %288 = load i32, ptr %9, align 4, !tbaa !5
  %289 = add i32 %288, 1
  %290 = load i32, ptr %9, align 4, !tbaa !5
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds { float, float }, ptr %65, i64 %291
  %293 = getelementptr inbounds { float, float }, ptr %292, i32 0, i32 0
  %294 = load float, ptr %293, align 8
  %295 = getelementptr inbounds { float, float }, ptr %292, i32 0, i32 1
  %296 = load float, ptr %295, align 4
  %297 = fpext float %294 to double
  %298 = load i32, ptr %9, align 4, !tbaa !5
  %299 = zext i32 %298 to i64
  %300 = getelementptr inbounds { float, float }, ptr %65, i64 %299
  %301 = getelementptr inbounds { float, float }, ptr %300, i32 0, i32 0
  %302 = load float, ptr %301, align 8
  %303 = getelementptr inbounds { float, float }, ptr %300, i32 0, i32 1
  %304 = load float, ptr %303, align 4
  %305 = fpext float %304 to double
  %306 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %287, ptr noundef @.str.22, i32 noundef %289, double noundef %297, double noundef %305) #10
  %307 = load ptr, ptr %22, align 8, !tbaa !9
  %308 = load i32, ptr %9, align 4, !tbaa !5
  %309 = add i32 %308, 1
  %310 = load i32, ptr %9, align 4, !tbaa !5
  %311 = zext i32 %310 to i64
  %312 = getelementptr inbounds float, ptr %68, i64 %311
  %313 = load float, ptr %312, align 4, !tbaa !11
  %314 = fpext float %313 to double
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %307, ptr noundef @.str.23, i32 noundef %309, double noundef %314) #10
  %316 = load ptr, ptr %22, align 8, !tbaa !9
  %317 = load i32, ptr %9, align 4, !tbaa !5
  %318 = add i32 %317, 1
  %319 = load i32, ptr %9, align 4, !tbaa !5
  %320 = zext i32 %319 to i64
  %321 = getelementptr inbounds i32, ptr %71, i64 %320
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %316, ptr noundef @.str.24, i32 noundef %318, i32 noundef %322) #10
  br label %324

324:                                              ; preds = %266
  %325 = load i32, ptr %9, align 4, !tbaa !5
  %326 = add i32 %325, 1
  store i32 %326, ptr %9, align 4, !tbaa !5
  br label %262, !llvm.loop !17

327:                                              ; preds = %262
  %328 = load ptr, ptr %22, align 8, !tbaa !9
  %329 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %328, ptr noundef @.str.25) #10
  %330 = load ptr, ptr %22, align 8, !tbaa !9
  %331 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %330, ptr noundef @.str.26) #10
  %332 = load ptr, ptr %22, align 8, !tbaa !9
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %332, ptr noundef @.str.27) #10
  %334 = load ptr, ptr %22, align 8, !tbaa !9
  %335 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.28) #10
  %336 = load ptr, ptr %22, align 8, !tbaa !9
  %337 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %336, ptr noundef @.str.29) #10
  %338 = load ptr, ptr %22, align 8, !tbaa !9
  %339 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %338, ptr noundef @.str.30) #10
  %340 = load ptr, ptr %22, align 8, !tbaa !9
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %340, ptr noundef @.str.31) #10
  %342 = load ptr, ptr %22, align 8, !tbaa !9
  %343 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %342, ptr noundef @.str.32) #10
  %344 = load ptr, ptr %22, align 8, !tbaa !9
  %345 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %344, ptr noundef @.str.33) #10
  %346 = load ptr, ptr %22, align 8, !tbaa !9
  %347 = load i32, ptr %11, align 4, !tbaa !5
  %348 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %346, ptr noundef @.str.34, i32 noundef %347) #10
  %349 = load ptr, ptr %22, align 8, !tbaa !9
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %349, ptr noundef @.str.35) #10
  %351 = load ptr, ptr %22, align 8, !tbaa !9
  %352 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %351, ptr noundef @.str.36) #10
  %353 = load ptr, ptr %22, align 8, !tbaa !9
  %354 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %353, ptr noundef @.str.37) #10
  %355 = load ptr, ptr %22, align 8, !tbaa !9
  %356 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %355, ptr noundef @.str.31) #10
  %357 = load ptr, ptr %22, align 8, !tbaa !9
  %358 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %357, ptr noundef @.str.32) #10
  %359 = load ptr, ptr %22, align 8, !tbaa !9
  %360 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %359, ptr noundef @.str.38) #10
  %361 = load ptr, ptr %22, align 8, !tbaa !9
  %362 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %361, ptr noundef @.str.39) #10
  %363 = load ptr, ptr %22, align 8, !tbaa !9
  %364 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %363, ptr noundef @.str.40) #10
  %365 = load ptr, ptr %22, align 8, !tbaa !9
  %366 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %365, ptr noundef @.str.31) #10
  %367 = load ptr, ptr %22, align 8, !tbaa !9
  %368 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %367, ptr noundef @.str.32) #10
  %369 = load ptr, ptr %22, align 8, !tbaa !9
  %370 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %369, ptr noundef @.str.41) #10
  %371 = load ptr, ptr %22, align 8, !tbaa !9
  %372 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %371, ptr noundef @.str.42) #10
  %373 = load ptr, ptr %22, align 8, !tbaa !9
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef @.str.43) #10
  %375 = load ptr, ptr %22, align 8, !tbaa !9
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %375, ptr noundef @.str.31) #10
  %377 = load ptr, ptr %22, align 8, !tbaa !9
  %378 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %377, ptr noundef @.str.32) #10
  %379 = load ptr, ptr %22, align 8, !tbaa !9
  %380 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %379, ptr noundef @.str.44) #10
  %381 = load ptr, ptr %22, align 8, !tbaa !9
  %382 = load i32, ptr %11, align 4, !tbaa !5
  %383 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %381, ptr noundef @.str.45, i32 noundef %382) #10
  %384 = load ptr, ptr %22, align 8, !tbaa !9
  %385 = call i32 @fclose(ptr noundef %384)
  %386 = call i32 (ptr, ...) @printf(ptr noundef @.str.46, ptr noundef @.str.15)
  %387 = call i32 (ptr, ...) @printf(ptr noundef @.str.47)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  %388 = load ptr, ptr %12, align 8
  call void @llvm.stackrestore.p0(ptr %388)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %389

389:                                              ; preds = %327, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  %390 = load i32, ptr %3, align 4
  ret i32 %390
}

; 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare ptr @agc_crcf_create() #1

declare i32 @agc_crcf_set_bandwidth(ptr noundef, float noundef) #1

declare i32 @agc_crcf_set_signal_level(ptr noundef, float noundef) #1

declare i32 @agc_crcf_squelch_enable(ptr noundef) #1

declare i32 @agc_crcf_squelch_set_threshold(ptr noundef, float noundef) #1

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x 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 @agc_crcf_execute(ptr noundef, <2 x float> noundef, ptr noundef) #1

declare float @agc_crcf_get_rssi(ptr noundef) #1

declare i32 @agc_crcf_squelch_get_status(ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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

declare i32 @agc_crcf_destroy(ptr noundef) #1

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

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { "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 nosync nounwind willreturn }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { 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}


; 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.3 = external hidden unnamed_addr constant [10 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [7 x i8], align 1
@switch.table.main = private unnamed_addr constant [7 x ptr] [ptr @.str.6, ptr @.str.7, ptr @.str.8, ptr @.str.9, ptr @.str.10, ptr @.str.11, ptr @.str.12], align 8

; 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 [20 x i8], align 16
  br label %4

4:                                                ; preds = %7, %2
  %.0106 = phi float [ 2.500000e-01, %2 ], [ %10, %7 ]
  %5 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.3) #12
  switch i32 %5, label %11 [
    i32 -1, label %12
    i32 104, label %6
    i32 98, label %7
  ]

6:                                                ; preds = %4
  tail call void @usage()
  br label %160

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

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

12:                                               ; preds = %4
  %13 = fcmp olt float %.0106, 0.000000e+00
  br i1 %13, label %14, label %18

14:                                               ; preds = %12
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = load ptr, ptr %1, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.4, ptr noundef %16) #15
  tail call void @exit(i32 noundef 1) #14
  unreachable

18:                                               ; preds = %12
  %19 = tail call ptr @agc_crcf_create() #12
  %20 = tail call i32 @agc_crcf_set_bandwidth(ptr noundef %19, float noundef %.0106) #12
  %21 = tail call i32 @agc_crcf_set_signal_level(ptr noundef %19, float noundef 0x3F50624DE0000000) #12
  %22 = tail call i32 @agc_crcf_squelch_enable(ptr noundef %19) #12
  %23 = tail call i32 @agc_crcf_squelch_set_threshold(ptr noundef %19, float noundef -5.000000e+01) #12
  %24 = tail call i32 @agc_crcf_squelch_set_timeout(ptr noundef %19, i32 noundef 100) #12
  %25 = tail call ptr @llvm.stacksave.p0()
  %26 = alloca [2000 x { float, float }], align 16
  %27 = alloca [2000 x { float, float }], align 16
  %28 = alloca [2000 x float], align 16
  %29 = alloca [2000 x i32], align 16
  %30 = fpext float %.0106 to double
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %30)
  br label %32

32:                                               ; preds = %18, %62
  %indvars.iv = phi i64 [ 0, %18 ], [ %indvars.iv.next, %62 ]
  %33 = icmp ult i64 %indvars.iv, 500
  br i1 %33, label %62, label %34

34:                                               ; preds = %32
  %35 = icmp ult i64 %indvars.iv, 550
  br i1 %35, label %36, label %47

36:                                               ; preds = %34
  %37 = trunc nuw i64 %indvars.iv to i32
  %38 = add nsw i32 %37, -500
  %39 = uitofp nneg i32 %38 to float
  %40 = fpext float %39 to double
  %41 = fmul double %40, 0x400921FB54442D18
  %42 = fdiv double %41, 5.000000e+01
  %43 = fptrunc double %42 to float
  %44 = tail call float @cosf(float noundef %43) #12
  %45 = tail call float @llvm.fmuladd.f32(float %44, float -5.000000e-01, float 5.000000e-01)
  %46 = tail call float @llvm.fmuladd.f32(float %45, float 0x3F826E9780000000, float 0x3F50624DE0000000)
  br label %62

47:                                               ; preds = %34
  %48 = icmp ult i64 %indvars.iv, 1450
  br i1 %48, label %62, label %49

49:                                               ; preds = %47
  %50 = icmp ult i64 %indvars.iv, 1500
  br i1 %50, label %51, label %62

51:                                               ; preds = %49
  %52 = trunc nuw i64 %indvars.iv to i32
  %53 = add nsw i32 %52, -1450
  %54 = uitofp nneg i32 %53 to float
  %55 = fpext float %54 to double
  %56 = fmul double %55, 0x400921FB54442D18
  %57 = fdiv double %56, 5.000000e+01
  %58 = fptrunc double %57 to float
  %59 = tail call float @cosf(float noundef %58) #12
  %60 = tail call float @llvm.fmuladd.f32(float %59, float 5.000000e-01, float 5.000000e-01)
  %61 = tail call float @llvm.fmuladd.f32(float %60, float 0x3F826E9780000000, float 0x3F50624DE0000000)
  br label %62

62:                                               ; preds = %49, %47, %32, %36, %51
  %.0107 = phi float [ %46, %36 ], [ %61, %51 ], [ 0x3F50624DE0000000, %32 ], [ 0x3F847AE140000000, %47 ], [ 0x3F50624DE0000000, %49 ]
  %63 = trunc nuw nsw i64 %indvars.iv to i32
  %64 = uitofp nneg i32 %63 to double
  %65 = fmul double %64, 0x3FBF0B412B6B99F8
  %66 = fptrunc double %65 to float
  %.sroa.038.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %66, i64 1
  %67 = tail call <2 x float> @cexpf(<2 x float> noundef %.sroa.038.4.vec.insert) #12
  %68 = getelementptr inbounds { float, float }, ptr %26, i64 %indvars.iv
  %69 = insertelement <2 x float> poison, float %.0107, i64 0
  %70 = shufflevector <2 x float> %69, <2 x float> poison, <2 x i32> zeroinitializer
  %71 = fmul <2 x float> %70, %67
  store <2 x float> %71, ptr %68, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 2000
  br i1 %exitcond.not, label %.preheader, label %32, !llvm.loop !11

.preheader:                                       ; preds = %62, %94
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %94 ], [ 0, %62 ]
  %72 = getelementptr inbounds { float, float }, ptr %26, i64 %indvars.iv122
  %73 = load <2 x float>, ptr %72, align 8
  %74 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv122
  %75 = call i32 @agc_crcf_execute(ptr noundef %19, <2 x float> noundef %73, ptr noundef nonnull %74) #12
  %76 = call float @agc_crcf_get_rssi(ptr noundef %19) #12
  %77 = getelementptr inbounds float, ptr %28, i64 %indvars.iv122
  store float %76, ptr %77, align 4, !tbaa !12
  %78 = call i32 @agc_crcf_squelch_get_status(ptr noundef %19) #12
  %79 = getelementptr inbounds i32, ptr %29, i64 %indvars.iv122
  store i32 %78, ptr %79, align 4, !tbaa !14
  %80 = trunc nuw nsw i64 %indvars.iv122 to i32
  %.lhs.trunc = trunc i64 %indvars.iv122 to i16
  %81 = urem i16 %.lhs.trunc, 100
  %82 = icmp eq i16 %81, 0
  %83 = icmp eq i64 %indvars.iv122, 1999
  %or.cond = or i1 %83, %82
  %84 = icmp eq i32 %78, 2
  %85 = icmp eq i32 %78, 4
  %86 = or i1 %84, %85
  %or.cond113 = select i1 %or.cond, i1 true, i1 %86
  br i1 %or.cond113, label %87, label %94

87:                                               ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %3, i8 0, i64 20, i1 false)
  %switch.tableidx = add i32 %78, -1
  %88 = icmp ult i32 %switch.tableidx, 7
  br i1 %88, label %switch.lookup, label %90

switch.lookup:                                    ; preds = %87
  %89 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [7 x ptr], ptr @switch.table.main, i64 0, i64 %89
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %90

90:                                               ; preds = %87, %switch.lookup
  %.str.13.sink = phi ptr [ %switch.load, %switch.lookup ], [ @.str.13, %87 ]
  %91 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %.str.13.sink) #12
  %92 = fpext float %76 to double
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef %80, ptr noundef nonnull %3, i32 noundef %78, double noundef %92)
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #12
  br label %94

94:                                               ; preds = %.preheader, %90
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next123, 2000
  br i1 %exitcond125.not, label %95, label %.preheader, !llvm.loop !16

95:                                               ; preds = %94
  %96 = call i32 @agc_crcf_destroy(ptr noundef %19) #12
  %97 = call noalias ptr @fopen(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.16)
  %.not111 = icmp eq ptr %97, null
  br i1 %.not111, label %98, label %102

98:                                               ; preds = %95
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  %100 = load ptr, ptr %1, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef nonnull @.str.17, ptr noundef %100, ptr noundef nonnull @.str.15) #15
  call void @exit(i32 noundef 1) #14
  unreachable

102:                                              ; preds = %95
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %97, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.15) #12
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %97, ptr noundef nonnull @.str.19) #12
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %97, ptr noundef nonnull @.str.20, i32 noundef 2000) #12
  br label %106

106:                                              ; preds = %102, %106
  %indvars.iv126 = phi i64 [ 0, %102 ], [ %indvars.iv.next127, %106 ]
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %107 = getelementptr inbounds { float, float }, ptr %26, i64 %indvars.iv126
  %108 = load float, ptr %107, align 8
  %109 = getelementptr inbounds i8, ptr %107, i64 4
  %110 = fpext float %108 to double
  %111 = load float, ptr %109, align 4
  %112 = fpext float %111 to double
  %113 = trunc nuw nsw i64 %indvars.iv.next127 to i32
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.21, i32 noundef %113, double noundef %110, double noundef %112) #12
  %115 = getelementptr inbounds { float, float }, ptr %27, i64 %indvars.iv126
  %116 = load float, ptr %115, align 8
  %117 = getelementptr inbounds i8, ptr %115, i64 4
  %118 = fpext float %116 to double
  %119 = load float, ptr %117, align 4
  %120 = fpext float %119 to double
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.22, i32 noundef %113, double noundef %118, double noundef %120) #12
  %122 = getelementptr inbounds float, ptr %28, i64 %indvars.iv126
  %123 = load float, ptr %122, align 4, !tbaa !12
  %124 = fpext float %123 to double
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.23, i32 noundef %113, double noundef %124) #12
  %126 = getelementptr inbounds i32, ptr %29, i64 %indvars.iv126
  %127 = load i32, ptr %126, align 4, !tbaa !14
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.24, i32 noundef %113, i32 noundef %127) #12
  %exitcond129.not = icmp eq i64 %indvars.iv.next127, 2000
  br i1 %exitcond129.not, label %129, label %106, !llvm.loop !17

129:                                              ; preds = %106
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.25) #12
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.26) #12
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.27) #12
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.28) #12
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.29) #12
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.30) #12
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.31) #12
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.32) #12
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.33) #12
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.34, i32 noundef 2000) #12
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.35) #12
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.36) #12
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.37) #12
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.31) #12
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.32) #12
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.38) #12
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.39) #12
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.40) #12
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.31) #12
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.32) #12
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.41) #12
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.42) #12
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.43) #12
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.31) #12
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.32) #12
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.44) #12
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.45, i32 noundef 2000) #12
  %157 = call i32 @fclose(ptr noundef %97)
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.46, ptr noundef nonnull @.str.15)
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47)
  call void @llvm.stackrestore.p0(ptr %25)
  br label %160

160:                                              ; preds = %129, %6
  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

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

declare ptr @agc_crcf_create() local_unnamed_addr #7

declare i32 @agc_crcf_set_bandwidth(ptr noundef, float noundef) local_unnamed_addr #7

declare i32 @agc_crcf_set_signal_level(ptr noundef, float noundef) local_unnamed_addr #7

declare i32 @agc_crcf_squelch_enable(ptr noundef) local_unnamed_addr #7

declare i32 @agc_crcf_squelch_set_threshold(ptr noundef, float noundef) local_unnamed_addr #7

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #10

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x 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

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

declare float @agc_crcf_get_rssi(ptr noundef) local_unnamed_addr #7

declare i32 @agc_crcf_squelch_get_status(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #11

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

declare i32 @agc_crcf_destroy(ptr noundef) local_unnamed_addr #7

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 nocallback nofree nosync nounwind willreturn }
attributes #9 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #12 = { nounwind }
attributes #13 = { nounwind willreturn memory(read) }
attributes #14 = { noreturn nounwind }
attributes #15 = { cold nounwind }

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

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


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