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

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

27:                                               ; preds = %22
  %28 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %28, label %41 [
    i32 104, label %29
    i32 110, label %30
    i32 83, label %33
    i32 107, label %37
  ]

29:                                               ; preds = %27
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %290

30:                                               ; preds = %27
  %31 = load ptr, ptr @optarg, align 8, !tbaa !9
  %32 = call i32 @atoi(ptr noundef %31) #9
  store i32 %32, ptr %7, align 4, !tbaa !5
  br label %42

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

37:                                               ; preds = %27
  %38 = load ptr, ptr @optarg, align 8, !tbaa !9
  %39 = call double @atof(ptr noundef %38) #9
  %40 = fptrunc double %39 to float
  store float %40, ptr %6, align 4, !tbaa !11
  br label %42

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

42:                                               ; preds = %37, %33, %30
  br label %22, !llvm.loop !13

43:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %44 = load float, ptr %6, align 4, !tbaa !11
  %45 = call ptr @freqmod_create(float noundef %44)
  store ptr %45, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %46 = load float, ptr %6, align 4, !tbaa !11
  %47 = call ptr @freqdem_create(float noundef %46)
  store ptr %47, ptr %12, align 8, !tbaa !9
  %48 = load ptr, ptr %11, align 8, !tbaa !9
  %49 = call i32 @freqmod_print(ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = call ptr @llvm.stacksave.p0()
  store ptr %52, ptr %14, align 8
  %53 = alloca float, i64 %51, align 16
  store i64 %51, ptr %15, align 8
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = zext i32 %54 to i64
  %56 = alloca { float, float }, i64 %55, align 16
  store i64 %55, ptr %16, align 8
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = zext i32 %57 to i64
  %59 = alloca float, i64 %58, align 16
  store i64 %58, ptr %17, align 8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %86, %43
  %61 = load i32, ptr %13, align 4, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = icmp ult i32 %61, %62
  br i1 %63, label %64, label %89

64:                                               ; preds = %60
  %65 = load i32, ptr %13, align 4, !tbaa !5
  %66 = uitofp i32 %65 to double
  %67 = call double @llvm.fmuladd.f64(double 0x3FB4E912AB8E4909, double %66, double 0.000000e+00)
  %68 = fptrunc double %67 to float
  %69 = call float @cosf(float noundef %68) #8
  %70 = load i32, ptr %13, align 4, !tbaa !5
  %71 = uitofp i32 %70 to double
  %72 = call double @llvm.fmuladd.f64(double 0x3FC0E3A2BBF98B8F, double %71, double 0x3FD99999A0000000)
  %73 = fptrunc double %72 to float
  %74 = call float @cosf(float noundef %73) #8
  %75 = fmul float 0x3FC99999A0000000, %74
  %76 = call float @llvm.fmuladd.f32(float 0x3FD3333340000000, float %69, float %75)
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = uitofp i32 %77 to double
  %79 = call double @llvm.fmuladd.f64(double 0x3FCDC1D5A18054F7, double %78, double 0x3FFB333340000000)
  %80 = fptrunc double %79 to float
  %81 = call float @cosf(float noundef %80) #8
  %82 = call float @llvm.fmuladd.f32(float 0x3FD99999A0000000, float %81, float %76)
  %83 = load i32, ptr %13, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %53, i64 %84
  store float %82, ptr %85, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %64
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = add i32 %87, 1
  store i32 %88, ptr %13, align 4, !tbaa !5
  br label %60, !llvm.loop !15

89:                                               ; preds = %60
  %90 = load ptr, ptr %11, align 8, !tbaa !9
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = call i32 @freqmod_modulate_block(ptr noundef %90, ptr noundef %53, i32 noundef %91, ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %93 = load float, ptr %8, align 4, !tbaa !11
  %94 = fneg float %93
  %95 = fdiv float %94, 2.000000e+01
  %96 = call float @powf(float noundef 1.000000e+01, float noundef %95) #8
  store float %96, ptr %18, align 4, !tbaa !11
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %129, %89
  %98 = load i32, ptr %13, align 4, !tbaa !5
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %101, label %132

101:                                              ; preds = %97
  %102 = load float, ptr %18, align 4, !tbaa !11
  %103 = call float (...) @randnf()
  %104 = call float (...) @randnf()
  %105 = fmul float 0.000000e+00, %104
  %106 = fmul float 1.000000e+00, %104
  %107 = fadd float %103, %105
  %108 = fmul float %102, %107
  %109 = fmul float %102, %106
  %110 = fpext float %108 to double
  %111 = fpext float %109 to double
  %112 = fmul double %110, 0x3FE6A09E667F3BCD
  %113 = fmul double %111, 0x3FE6A09E667F3BCD
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds { float, float }, ptr %56, i64 %115
  %117 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 8
  %119 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 1
  %120 = load float, ptr %119, align 4
  %121 = fpext float %118 to double
  %122 = fpext float %120 to double
  %123 = fadd double %121, %112
  %124 = fadd double %122, %113
  %125 = fptrunc double %123 to float
  %126 = fptrunc double %124 to float
  %127 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 0
  %128 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 1
  store float %125, ptr %127, align 8
  store float %126, ptr %128, align 4
  br label %129

129:                                              ; preds = %101
  %130 = load i32, ptr %13, align 4, !tbaa !5
  %131 = add i32 %130, 1
  store i32 %131, ptr %13, align 4, !tbaa !5
  br label %97, !llvm.loop !16

132:                                              ; preds = %97
  %133 = load ptr, ptr %12, align 8, !tbaa !9
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = call i32 @freqdem_demodulate_block(ptr noundef %133, ptr noundef %56, i32 noundef %134, ptr noundef %59)
  %136 = load ptr, ptr %11, align 8, !tbaa !9
  %137 = call i32 @freqmod_destroy(ptr noundef %136)
  %138 = load ptr, ptr %12, align 8, !tbaa !9
  %139 = call i32 @freqdem_destroy(ptr noundef %138)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store float 0.000000e+00, ptr %19, align 4, !tbaa !11
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %158, %132
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = icmp ult i32 %141, %142
  br i1 %143, label %144, label %161

144:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %145 = load i32, ptr %13, align 4, !tbaa !5
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds float, ptr %59, i64 %146
  %148 = load float, ptr %147, align 4, !tbaa !11
  %149 = load i32, ptr %13, align 4, !tbaa !5
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds float, ptr %53, i64 %150
  %152 = load float, ptr %151, align 4, !tbaa !11
  %153 = fsub float %148, %152
  store float %153, ptr %20, align 4, !tbaa !11
  %154 = load float, ptr %20, align 4, !tbaa !11
  %155 = load float, ptr %20, align 4, !tbaa !11
  %156 = load float, ptr %19, align 4, !tbaa !11
  %157 = call float @llvm.fmuladd.f32(float %154, float %155, float %156)
  store float %157, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %158

158:                                              ; preds = %144
  %159 = load i32, ptr %13, align 4, !tbaa !5
  %160 = add i32 %159, 1
  store i32 %160, ptr %13, align 4, !tbaa !5
  br label %140, !llvm.loop !17

161:                                              ; preds = %140
  %162 = load float, ptr %19, align 4, !tbaa !11
  %163 = load i32, ptr %7, align 4, !tbaa !5
  %164 = sub i32 %163, 1
  %165 = uitofp i32 %164 to float
  %166 = fdiv float %162, %165
  %167 = call float @sqrtf(float noundef %166) #8
  store float %167, ptr %19, align 4, !tbaa !11
  %168 = load float, ptr %19, align 4, !tbaa !11
  %169 = fpext float %168 to double
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %169)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %171 = call noalias ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.8)
  store ptr %171, ptr %21, align 8, !tbaa !9
  %172 = load ptr, ptr %21, align 8, !tbaa !9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.9, ptr noundef @.str.7) #8
  %174 = load ptr, ptr %21, align 8, !tbaa !9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.10) #8
  %176 = load ptr, ptr %21, align 8, !tbaa !9
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.11) #8
  %178 = load ptr, ptr %21, align 8, !tbaa !9
  %179 = load i32, ptr %7, align 4, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.12, i32 noundef %179) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %224, %161
  %182 = load i32, ptr %13, align 4, !tbaa !5
  %183 = load i32, ptr %7, align 4, !tbaa !5
  %184 = icmp ult i32 %182, %183
  br i1 %184, label %185, label %227

185:                                              ; preds = %181
  %186 = load ptr, ptr %21, align 8, !tbaa !9
  %187 = load i32, ptr %13, align 4, !tbaa !5
  %188 = add i32 %187, 1
  %189 = load i32, ptr %13, align 4, !tbaa !5
  %190 = zext i32 %189 to i64
  %191 = getelementptr inbounds float, ptr %53, i64 %190
  %192 = load float, ptr %191, align 4, !tbaa !11
  %193 = fpext float %192 to double
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %186, ptr noundef @.str.13, i32 noundef %188, double noundef %193) #8
  %195 = load ptr, ptr %21, align 8, !tbaa !9
  %196 = load i32, ptr %13, align 4, !tbaa !5
  %197 = add i32 %196, 1
  %198 = load i32, ptr %13, align 4, !tbaa !5
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds { float, float }, ptr %56, i64 %199
  %201 = getelementptr inbounds { float, float }, ptr %200, i32 0, i32 0
  %202 = load float, ptr %201, align 8
  %203 = getelementptr inbounds { float, float }, ptr %200, i32 0, i32 1
  %204 = load float, ptr %203, align 4
  %205 = fpext float %202 to double
  %206 = load i32, ptr %13, align 4, !tbaa !5
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds { float, float }, ptr %56, i64 %207
  %209 = getelementptr inbounds { float, float }, ptr %208, i32 0, i32 0
  %210 = load float, ptr %209, align 8
  %211 = getelementptr inbounds { float, float }, ptr %208, i32 0, i32 1
  %212 = load float, ptr %211, align 4
  %213 = fpext float %212 to double
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %195, ptr noundef @.str.14, i32 noundef %197, double noundef %205, double noundef %213) #8
  %215 = load ptr, ptr %21, align 8, !tbaa !9
  %216 = load i32, ptr %13, align 4, !tbaa !5
  %217 = add i32 %216, 1
  %218 = load i32, ptr %13, align 4, !tbaa !5
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds float, ptr %59, i64 %219
  %221 = load float, ptr %220, align 4, !tbaa !11
  %222 = fpext float %221 to double
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.15, i32 noundef %217, double noundef %222) #8
  br label %224

224:                                              ; preds = %185
  %225 = load i32, ptr %13, align 4, !tbaa !5
  %226 = add i32 %225, 1
  store i32 %226, ptr %13, align 4, !tbaa !5
  br label %181, !llvm.loop !18

227:                                              ; preds = %181
  %228 = load ptr, ptr %21, align 8, !tbaa !9
  %229 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.16) #8
  %230 = load ptr, ptr %21, align 8, !tbaa !9
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.17) #8
  %232 = load ptr, ptr %21, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.18) #8
  %234 = load ptr, ptr %21, align 8, !tbaa !9
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.19) #8
  %236 = load ptr, ptr %21, align 8, !tbaa !9
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.20) #8
  %238 = load ptr, ptr %21, align 8, !tbaa !9
  %239 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %238, ptr noundef @.str.21) #8
  %240 = load ptr, ptr %21, align 8, !tbaa !9
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.22) #8
  %242 = load ptr, ptr %21, align 8, !tbaa !9
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.23) #8
  %244 = load ptr, ptr %21, align 8, !tbaa !9
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %244, ptr noundef @.str.24) #8
  %246 = load ptr, ptr %21, align 8, !tbaa !9
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.25) #8
  %248 = load ptr, ptr %21, align 8, !tbaa !9
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.26) #8
  %250 = load ptr, ptr %21, align 8, !tbaa !9
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.27) #8
  %252 = load ptr, ptr %21, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.28) #8
  %254 = load ptr, ptr %21, align 8, !tbaa !9
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.29) #8
  %256 = load ptr, ptr %21, align 8, !tbaa !9
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.30) #8
  %258 = load ptr, ptr %21, align 8, !tbaa !9
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef @.str.31) #8
  %260 = load ptr, ptr %21, align 8, !tbaa !9
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %260, ptr noundef @.str.32) #8
  %262 = load ptr, ptr %21, align 8, !tbaa !9
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str.33) #8
  %264 = load ptr, ptr %21, align 8, !tbaa !9
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.34) #8
  %266 = load ptr, ptr %21, align 8, !tbaa !9
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.35) #8
  %268 = load ptr, ptr %21, align 8, !tbaa !9
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %268, ptr noundef @.str.24) #8
  %270 = load ptr, ptr %21, align 8, !tbaa !9
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.36) #8
  %272 = load ptr, ptr %21, align 8, !tbaa !9
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %272, ptr noundef @.str.37) #8
  %274 = load ptr, ptr %21, align 8, !tbaa !9
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.38) #8
  %276 = load ptr, ptr %21, align 8, !tbaa !9
  %277 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %276, ptr noundef @.str.39) #8
  %278 = load ptr, ptr %21, align 8, !tbaa !9
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str.35) #8
  %280 = load ptr, ptr %21, align 8, !tbaa !9
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.24) #8
  %282 = load ptr, ptr %21, align 8, !tbaa !9
  %283 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %282, ptr noundef @.str.36) #8
  %284 = load ptr, ptr %21, align 8, !tbaa !9
  %285 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %284, ptr noundef @.str.40) #8
  %286 = load ptr, ptr %21, align 8, !tbaa !9
  %287 = call i32 @fclose(ptr noundef %286)
  %288 = call i32 (ptr, ...) @printf(ptr noundef @.str.41, ptr noundef @.str.7)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  %289 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %289)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %290

290:                                              ; preds = %227, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %291 = load i32, ptr %3, align 4
  ret i32 %291
}

; 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 i32 @atoi(ptr noundef nonnull) #4

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

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

declare ptr @freqmod_create(float noundef) #1

declare ptr @freqdem_create(float noundef) #1

declare i32 @freqmod_print(ptr noundef) #1

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

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

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

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

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

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

declare float @randnf(...) #1

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

declare i32 @freqmod_destroy(ptr noundef) #1

declare i32 @freqdem_destroy(ptr noundef) #1

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

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

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn nounwind }

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

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


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

@.str.5 = external hidden unnamed_addr constant [8 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [23 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 %.outer

.outer:                                           ; preds = %9, %2
  %.092.ph = phi float [ %12, %9 ], [ 3.000000e+01, %2 ]
  %.090.ph = phi i32 [ %.090.ph153, %9 ], [ 1024, %2 ]
  %.088.ph = phi float [ %.088, %9 ], [ 0x3FB99999A0000000, %2 ]
  br label %.outer152

.outer152:                                        ; preds = %.outer, %6
  %.090.ph153 = phi i32 [ %.090.ph, %.outer ], [ %8, %6 ]
  %.088.ph154 = phi float [ %.088.ph, %.outer ], [ %.088, %6 ]
  br label %3

3:                                                ; preds = %.outer152, %13
  %.088 = phi float [ %16, %13 ], [ %.088.ph154, %.outer152 ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.5) #9
  switch i32 %4, label %17 [
    i32 -1, label %18
    i32 104, label %5
    i32 110, label %6
    i32 83, label %9
    i32 107, label %13
  ]

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

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

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

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

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

18:                                               ; preds = %3
  %19 = tail call ptr @freqmod_create(float noundef %.088) #9
  %20 = tail call ptr @freqdem_create(float noundef %.088) #9
  %21 = tail call i32 @freqmod_print(ptr noundef %19) #9
  %22 = zext i32 %.090.ph153 to i64
  %23 = tail call ptr @llvm.stacksave.p0()
  %24 = alloca float, i64 %22, align 16
  %25 = alloca { float, float }, i64 %22, align 16
  %26 = alloca float, i64 %22, align 16
  %.not = icmp eq i32 %.090.ph153, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %18, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %18 ]
  %27 = trunc nuw i64 %indvars.iv to i32
  %28 = uitofp i32 %27 to double
  %29 = tail call double @llvm.fmuladd.f64(double %28, double 0x3FB4E912AB8E4909, double 0.000000e+00)
  %30 = fptrunc double %29 to float
  %31 = tail call float @cosf(float noundef %30) #9
  %32 = tail call double @llvm.fmuladd.f64(double %28, double 0x3FC0E3A2BBF98B8F, double 0x3FD99999A0000000)
  %33 = fptrunc double %32 to float
  %34 = tail call float @cosf(float noundef %33) #9
  %35 = fmul float %34, 0x3FC99999A0000000
  %36 = tail call float @llvm.fmuladd.f32(float %31, float 0x3FD3333340000000, float %35)
  %37 = tail call double @llvm.fmuladd.f64(double %28, double 0x3FCDC1D5A18054F7, double 0x3FFB333340000000)
  %38 = fptrunc double %37 to float
  %39 = tail call float @cosf(float noundef %38) #9
  %40 = tail call float @llvm.fmuladd.f32(float %39, float 0x3FD99999A0000000, float %36)
  %41 = getelementptr inbounds float, ptr %24, i64 %indvars.iv
  store float %40, ptr %41, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %22
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %18
  %42 = call i32 @freqmod_modulate_block(ptr noundef %19, ptr noundef nonnull %24, i32 noundef %.090.ph153, ptr noundef nonnull %25) #9
  %43 = fdiv float %.092.ph, -2.000000e+01
  %44 = call float @powf(float noundef 1.000000e+01, float noundef %43) #9
  br i1 %.not, label %._crit_edge106, label %.lr.ph105.preheader

.lr.ph105.preheader:                              ; preds = %._crit_edge
  %45 = insertelement <2 x float> poison, float %44, i64 0
  %46 = shufflevector <2 x float> %45, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph105

.lr.ph105:                                        ; preds = %.lr.ph105.preheader, %.lr.ph105
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.lr.ph105 ], [ 0, %.lr.ph105.preheader ]
  %47 = call float (...) @randnf() #9
  %48 = call float (...) @randnf() #9
  %49 = fmul float %48, 0.000000e+00
  %50 = fadd float %47, %49
  %51 = getelementptr inbounds { float, float }, ptr %25, i64 %indvars.iv125
  %52 = insertelement <2 x float> poison, float %50, i64 0
  %53 = insertelement <2 x float> %52, float %48, i64 1
  %54 = fmul <2 x float> %46, %53
  %55 = fpext <2 x float> %54 to <2 x double>
  %56 = fmul <2 x double> %55, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %57 = load <2 x float>, ptr %51, align 8
  %58 = fpext <2 x float> %57 to <2 x double>
  %59 = fadd <2 x double> %56, %58
  %60 = fptrunc <2 x double> %59 to <2 x float>
  store <2 x float> %60, ptr %51, align 8
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %22
  br i1 %exitcond129.not, label %._crit_edge106, label %.lr.ph105, !llvm.loop !14

._crit_edge106:                                   ; preds = %.lr.ph105, %._crit_edge
  %61 = call i32 @freqdem_demodulate_block(ptr noundef %20, ptr noundef nonnull %25, i32 noundef %.090.ph153, ptr noundef nonnull %26) #9
  %62 = call i32 @freqmod_destroy(ptr noundef %19) #9
  %63 = call i32 @freqdem_destroy(ptr noundef %20) #9
  %64 = icmp ugt i32 %.090.ph153, 1
  br i1 %64, label %.lr.ph110.preheader, label %._crit_edge111

.lr.ph110.preheader:                              ; preds = %._crit_edge106
  %65 = add nsw i64 %22, -1
  %66 = add nsw i64 %22, -2
  %xtraiter = and i64 %65, 3
  %67 = icmp ult i64 %66, 3
  br i1 %67, label %._crit_edge111.loopexit.unr-lcssa, label %.lr.ph110.preheader.new

.lr.ph110.preheader.new:                          ; preds = %.lr.ph110.preheader
  %unroll_iter = and i64 %65, -4
  br label %.lr.ph110

.lr.ph110:                                        ; preds = %.lr.ph110, %.lr.ph110.preheader.new
  %indvars.iv130 = phi i64 [ 1, %.lr.ph110.preheader.new ], [ %indvars.iv.next131.3, %.lr.ph110 ]
  %.089108 = phi float [ 0.000000e+00, %.lr.ph110.preheader.new ], [ %91, %.lr.ph110 ]
  %niter = phi i64 [ 0, %.lr.ph110.preheader.new ], [ %niter.next.3, %.lr.ph110 ]
  %68 = getelementptr inbounds float, ptr %26, i64 %indvars.iv130
  %69 = load float, ptr %68, align 4, !tbaa !11
  %70 = getelementptr inbounds float, ptr %24, i64 %indvars.iv130
  %71 = load float, ptr %70, align 4, !tbaa !11
  %72 = fsub float %69, %71
  %73 = call float @llvm.fmuladd.f32(float %72, float %72, float %.089108)
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %74 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next131
  %75 = load float, ptr %74, align 4, !tbaa !11
  %76 = getelementptr inbounds float, ptr %24, i64 %indvars.iv.next131
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = fsub float %75, %77
  %79 = call float @llvm.fmuladd.f32(float %78, float %78, float %73)
  %indvars.iv.next131.1 = add nuw nsw i64 %indvars.iv130, 2
  %80 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next131.1
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = getelementptr inbounds float, ptr %24, i64 %indvars.iv.next131.1
  %83 = load float, ptr %82, align 4, !tbaa !11
  %84 = fsub float %81, %83
  %85 = call float @llvm.fmuladd.f32(float %84, float %84, float %79)
  %indvars.iv.next131.2 = add nuw nsw i64 %indvars.iv130, 3
  %86 = getelementptr inbounds float, ptr %26, i64 %indvars.iv.next131.2
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = getelementptr inbounds float, ptr %24, i64 %indvars.iv.next131.2
  %89 = load float, ptr %88, align 4, !tbaa !11
  %90 = fsub float %87, %89
  %91 = call float @llvm.fmuladd.f32(float %90, float %90, float %85)
  %indvars.iv.next131.3 = add nuw nsw i64 %indvars.iv130, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge111.loopexit.unr-lcssa, label %.lr.ph110, !llvm.loop !15

._crit_edge111.loopexit.unr-lcssa:                ; preds = %.lr.ph110, %.lr.ph110.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph110.preheader ], [ %91, %.lr.ph110 ]
  %indvars.iv130.unr = phi i64 [ 1, %.lr.ph110.preheader ], [ %indvars.iv.next131.3, %.lr.ph110 ]
  %.089108.unr = phi float [ 0.000000e+00, %.lr.ph110.preheader ], [ %91, %.lr.ph110 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge111, label %.lr.ph110.epil

.lr.ph110.epil:                                   ; preds = %._crit_edge111.loopexit.unr-lcssa, %.lr.ph110.epil
  %indvars.iv130.epil = phi i64 [ %indvars.iv.next131.epil, %.lr.ph110.epil ], [ %indvars.iv130.unr, %._crit_edge111.loopexit.unr-lcssa ]
  %.089108.epil = phi float [ %97, %.lr.ph110.epil ], [ %.089108.unr, %._crit_edge111.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph110.epil ], [ 0, %._crit_edge111.loopexit.unr-lcssa ]
  %92 = getelementptr inbounds float, ptr %26, i64 %indvars.iv130.epil
  %93 = load float, ptr %92, align 4, !tbaa !11
  %94 = getelementptr inbounds float, ptr %24, i64 %indvars.iv130.epil
  %95 = load float, ptr %94, align 4, !tbaa !11
  %96 = fsub float %93, %95
  %97 = call float @llvm.fmuladd.f32(float %96, float %96, float %.089108.epil)
  %indvars.iv.next131.epil = add nuw nsw i64 %indvars.iv130.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge111, label %.lr.ph110.epil, !llvm.loop !16

._crit_edge111:                                   ; preds = %._crit_edge111.loopexit.unr-lcssa, %.lr.ph110.epil, %._crit_edge106
  %.089.lcssa = phi float [ 0.000000e+00, %._crit_edge106 ], [ %.lcssa.ph, %._crit_edge111.loopexit.unr-lcssa ], [ %97, %.lr.ph110.epil ]
  %98 = add i32 %.090.ph153, -1
  %99 = uitofp i32 %98 to float
  %100 = fdiv float %.089.lcssa, %99
  %101 = call float @sqrtf(float noundef %100) #9
  %102 = fpext float %101 to double
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %102)
  %104 = call noalias ptr @fopen(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8)
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.7) #9
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.10) #9
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.11) #9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.12, i32 noundef %.090.ph153) #9
  br i1 %.not, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %._crit_edge111, %.lr.ph114
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %.lr.ph114 ], [ 0, %._crit_edge111 ]
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %109 = getelementptr inbounds float, ptr %24, i64 %indvars.iv135
  %110 = load float, ptr %109, align 4, !tbaa !11
  %111 = fpext float %110 to double
  %112 = trunc nuw i64 %indvars.iv.next136 to i32
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.13, i32 noundef %112, double noundef %111) #9
  %114 = getelementptr inbounds { float, float }, ptr %25, i64 %indvars.iv135
  %115 = load float, ptr %114, align 8
  %116 = getelementptr inbounds i8, ptr %114, i64 4
  %117 = fpext float %115 to double
  %118 = load float, ptr %116, align 4
  %119 = fpext float %118 to double
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.14, i32 noundef %112, double noundef %117, double noundef %119) #9
  %121 = getelementptr inbounds float, ptr %26, i64 %indvars.iv135
  %122 = load float, ptr %121, align 4, !tbaa !11
  %123 = fpext float %122 to double
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.15, i32 noundef %112, double noundef %123) #9
  %exitcond139.not = icmp eq i64 %indvars.iv.next136, %22
  br i1 %exitcond139.not, label %._crit_edge115, label %.lr.ph114, !llvm.loop !18

._crit_edge115:                                   ; preds = %.lr.ph114, %._crit_edge111
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.16) #9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.17) #9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.18) #9
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.19) #9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.20) #9
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.21) #9
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.22) #9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.23) #9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.24) #9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.25) #9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.26) #9
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.27) #9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.28) #9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.29) #9
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.30) #9
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.31) #9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.32) #9
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.33) #9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.34) #9
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.35) #9
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.24) #9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.36) #9
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.37) #9
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.38) #9
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.39) #9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.35) #9
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.24) #9
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.36) #9
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef nonnull @.str.40) #9
  %154 = call i32 @fclose(ptr noundef %104)
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, ptr noundef nonnull @.str.7)
  call void @llvm.stackrestore.p0(ptr %23)
  br label %156

156:                                              ; preds = %._crit_edge115, %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 i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #3

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

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

declare ptr @freqmod_create(float noundef) local_unnamed_addr #5

declare ptr @freqdem_create(float noundef) local_unnamed_addr #5

declare i32 @freqmod_print(ptr noundef) local_unnamed_addr #5

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

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

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

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

declare i32 @freqmod_modulate_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

declare i32 @freqdem_demodulate_block(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @freqmod_destroy(ptr noundef) local_unnamed_addr #5

declare i32 @freqdem_destroy(ptr noundef) local_unnamed_addr #5

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

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

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

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

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

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

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


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