; LLVM IR from jgaeddert/liquid-dsp :: examples (cpfskmodem_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.11 = external hidden unnamed_addr constant [18 x i8], align 1
@optarg = external global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = 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 i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store float 5.000000e-01, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 4, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store float 0x3FD6666660000000, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 20, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store float 4.000000e+01, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  br label %33

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

38:                                               ; preds = %33
  %39 = load i32, ptr %14, align 4, !tbaa !5
  switch i32 %39, label %96 [
    i32 104, label %40
    i32 116, label %41
    i32 112, label %72
    i32 72, label %75
    i32 107, label %79
    i32 109, label %82
    i32 98, label %85
    i32 110, label %89
    i32 115, label %92
  ]

40:                                               ; preds = %38
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  br label %475

41:                                               ; preds = %38
  %42 = load ptr, ptr @optarg, align 8, !tbaa !9
  %43 = call i32 @strcmp(ptr noundef %42, ptr noundef @.str.12) #9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %71

46:                                               ; preds = %41
  %47 = load ptr, ptr @optarg, align 8, !tbaa !9
  %48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.13) #9
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %70

51:                                               ; preds = %46
  %52 = load ptr, ptr @optarg, align 8, !tbaa !9
  %53 = call i32 @strcmp(ptr noundef %52, ptr noundef @.str.14) #9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %51
  store i32 2, ptr %13, align 4, !tbaa !5
  br label %69

56:                                               ; preds = %51
  %57 = load ptr, ptr @optarg, align 8, !tbaa !9
  %58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.15) #9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %61

60:                                               ; preds = %56
  store i32 3, ptr %13, align 4, !tbaa !5
  br label %68

61:                                               ; preds = %56
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = getelementptr inbounds ptr, ptr %63, i64 0
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = load ptr, ptr @optarg, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.16, ptr noundef %65, ptr noundef %66) #8
  call void @exit(i32 noundef 1) #10
  unreachable

68:                                               ; preds = %60
  br label %69

69:                                               ; preds = %68, %55
  br label %70

70:                                               ; preds = %69, %50
  br label %71

71:                                               ; preds = %70, %45
  br label %97

72:                                               ; preds = %38
  %73 = load ptr, ptr @optarg, align 8, !tbaa !9
  %74 = call i32 @atoi(ptr noundef %73) #9
  store i32 %74, ptr %6, align 4, !tbaa !5
  br label %97

75:                                               ; preds = %38
  %76 = load ptr, ptr @optarg, align 8, !tbaa !9
  %77 = call double @atof(ptr noundef %76) #9
  %78 = fptrunc double %77 to float
  store float %78, ptr %7, align 4, !tbaa !11
  br label %97

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

82:                                               ; preds = %38
  %83 = load ptr, ptr @optarg, align 8, !tbaa !9
  %84 = call i32 @atoi(ptr noundef %83) #9
  store i32 %84, ptr %9, align 4, !tbaa !5
  br label %97

85:                                               ; preds = %38
  %86 = load ptr, ptr @optarg, align 8, !tbaa !9
  %87 = call double @atof(ptr noundef %86) #9
  %88 = fptrunc double %87 to float
  store float %88, ptr %10, align 4, !tbaa !11
  br label %97

89:                                               ; preds = %38
  %90 = load ptr, ptr @optarg, align 8, !tbaa !9
  %91 = call i32 @atoi(ptr noundef %90) #9
  store i32 %91, ptr %11, align 4, !tbaa !5
  br label %97

92:                                               ; preds = %38
  %93 = load ptr, ptr @optarg, align 8, !tbaa !9
  %94 = call double @atof(ptr noundef %93) #9
  %95 = fptrunc double %94 to float
  store float %95, ptr %12, align 4, !tbaa !11
  br label %97

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

97:                                               ; preds = %92, %89, %85, %82, %79, %75, %72, %71
  br label %33, !llvm.loop !13

98:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = mul i32 %99, %100
  store i32 %101, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = shl i32 1, %102
  store i32 %103, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %104 = load float, ptr %12, align 4, !tbaa !11
  %105 = fneg float %104
  %106 = fdiv float %105, 2.000000e+01
  %107 = call float @powf(float noundef 1.000000e+01, float noundef %106) #8
  store float %107, ptr %19, align 4, !tbaa !11
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = zext i32 %108 to i64
  %110 = call ptr @llvm.stacksave.p0()
  store ptr %110, ptr %20, align 8
  %111 = alloca i32, i64 %109, align 16
  store i64 %109, ptr %21, align 8
  %112 = load i32, ptr %17, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = alloca { float, float }, i64 %113, align 16
  store i64 %113, ptr %22, align 8
  %115 = load i32, ptr %17, align 4, !tbaa !5
  %116 = zext i32 %115 to i64
  %117 = alloca { float, float }, i64 %116, align 16
  store i64 %116, ptr %23, align 8
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = alloca i32, i64 %119, align 16
  store i64 %119, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = load float, ptr %7, align 4, !tbaa !11
  %123 = load i32, ptr %8, align 4, !tbaa !5
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = load float, ptr %10, align 4, !tbaa !11
  %126 = load i32, ptr %13, align 4, !tbaa !5
  %127 = call ptr @cpfskmod_create(i32 noundef %121, float noundef %122, i32 noundef %123, i32 noundef %124, float noundef %125, i32 noundef %126)
  store ptr %127, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = load float, ptr %7, align 4, !tbaa !11
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = load float, ptr %10, align 4, !tbaa !11
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = call ptr @cpfskdem_create(i32 noundef %128, float noundef %129, i32 noundef %130, i32 noundef %131, float noundef %132, i32 noundef %133)
  store ptr %134, ptr %26, align 8, !tbaa !9
  %135 = load ptr, ptr %25, align 8, !tbaa !9
  %136 = call i32 @cpfskmod_print(ptr noundef %135)
  %137 = load ptr, ptr %26, align 8, !tbaa !9
  %138 = call i32 @cpfskdem_print(ptr noundef %137)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %139 = load ptr, ptr %25, align 8, !tbaa !9
  %140 = call i32 @cpfskmod_get_delay(ptr noundef %139)
  %141 = load ptr, ptr %26, align 8, !tbaa !9
  %142 = call i32 @cpfskdem_get_delay(ptr noundef %141)
  %143 = add i32 %140, %142
  store i32 %143, ptr %27, align 4, !tbaa !5
  %144 = load i32, ptr %27, align 4, !tbaa !5
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %144)
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %157, %98
  %147 = load i32, ptr %16, 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 %160

150:                                              ; preds = %146
  %151 = call i32 @rand() #8
  %152 = load i32, ptr %18, align 4, !tbaa !5
  %153 = urem i32 %151, %152
  %154 = load i32, ptr %16, align 4, !tbaa !5
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %111, i64 %155
  store i32 %153, ptr %156, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %150
  %158 = load i32, ptr %16, align 4, !tbaa !5
  %159 = add i32 %158, 1
  store i32 %159, ptr %16, align 4, !tbaa !5
  br label %146, !llvm.loop !15

160:                                              ; preds = %146
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %161

161:                                              ; preds = %177, %160
  %162 = load i32, ptr %16, align 4, !tbaa !5
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = icmp ult i32 %162, %163
  br i1 %164, label %165, label %180

165:                                              ; preds = %161
  %166 = load ptr, ptr %25, align 8, !tbaa !9
  %167 = load i32, ptr %16, align 4, !tbaa !5
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %111, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = load i32, ptr %16, align 4, !tbaa !5
  %173 = mul i32 %171, %172
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds { float, float }, ptr %114, i64 %174
  %176 = call i32 @cpfskmod_modulate(ptr noundef %166, i32 noundef %170, ptr noundef %175)
  br label %177

177:                                              ; preds = %165
  %178 = load i32, ptr %16, align 4, !tbaa !5
  %179 = add i32 %178, 1
  store i32 %179, ptr %16, align 4, !tbaa !5
  br label %161, !llvm.loop !16

180:                                              ; preds = %161
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %216, %180
  %182 = load i32, ptr %16, align 4, !tbaa !5
  %183 = load i32, ptr %17, align 4, !tbaa !5
  %184 = icmp ult i32 %182, %183
  br i1 %184, label %185, label %219

185:                                              ; preds = %181
  %186 = load i32, ptr %16, align 4, !tbaa !5
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds { float, float }, ptr %114, i64 %187
  %189 = getelementptr inbounds { float, float }, ptr %188, i32 0, i32 0
  %190 = load float, ptr %189, align 8
  %191 = getelementptr inbounds { float, float }, ptr %188, i32 0, i32 1
  %192 = load float, ptr %191, align 4
  %193 = fpext float %190 to double
  %194 = fpext float %192 to double
  %195 = load float, ptr %19, align 4, !tbaa !11
  %196 = call float (...) @randnf()
  %197 = call float (...) @randnf()
  %198 = fmul float 0.000000e+00, %197
  %199 = fmul float 1.000000e+00, %197
  %200 = fadd float %196, %198
  %201 = fmul float %195, %200
  %202 = fmul float %195, %199
  %203 = fpext float %201 to double
  %204 = fpext float %202 to double
  %205 = fmul double %203, 0x3FE6A09E667F3BCD
  %206 = fmul double %204, 0x3FE6A09E667F3BCD
  %207 = fadd double %193, %205
  %208 = fadd double %194, %206
  %209 = fptrunc double %207 to float
  %210 = fptrunc double %208 to float
  %211 = load i32, ptr %16, align 4, !tbaa !5
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds { float, float }, ptr %117, i64 %212
  %214 = getelementptr inbounds { float, float }, ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds { float, float }, ptr %213, i32 0, i32 1
  store float %209, ptr %214, align 8
  store float %210, ptr %215, align 4
  br label %216

216:                                              ; preds = %185
  %217 = load i32, ptr %16, align 4, !tbaa !5
  %218 = add i32 %217, 1
  store i32 %218, ptr %16, align 4, !tbaa !5
  br label %181, !llvm.loop !17

219:                                              ; preds = %181
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %220

220:                                              ; preds = %235, %219
  %221 = load i32, ptr %16, align 4, !tbaa !5
  %222 = load i32, ptr %11, align 4, !tbaa !5
  %223 = icmp ult i32 %221, %222
  br i1 %223, label %224, label %238

224:                                              ; preds = %220
  %225 = load ptr, ptr %26, align 8, !tbaa !9
  %226 = load i32, ptr %16, align 4, !tbaa !5
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = mul i32 %226, %227
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds { float, float }, ptr %117, i64 %229
  %231 = call i32 @cpfskdem_demodulate(ptr noundef %225, ptr noundef %230)
  %232 = load i32, ptr %16, align 4, !tbaa !5
  %233 = zext i32 %232 to i64
  %234 = getelementptr inbounds i32, ptr %120, i64 %233
  store i32 %231, ptr %234, align 4, !tbaa !5
  br label %235

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

238:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !5
  %239 = load i32, ptr %27, align 4, !tbaa !5
  store i32 %239, ptr %16, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %277, %238
  %241 = load i32, ptr %16, align 4, !tbaa !5
  %242 = load i32, ptr %11, align 4, !tbaa !5
  %243 = icmp ult i32 %241, %242
  br i1 %243, label %244, label %280

244:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %245 = load i32, ptr %16, align 4, !tbaa !5
  %246 = load i32, ptr %27, align 4, !tbaa !5
  %247 = sub i32 %245, %246
  %248 = zext i32 %247 to i64
  %249 = getelementptr inbounds i32, ptr %111, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = load i32, ptr %16, align 4, !tbaa !5
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds i32, ptr %120, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = icmp eq i32 %250, %254
  %256 = zext i1 %255 to i64
  %257 = select i1 %255, i32 0, i32 1
  store i32 %257, ptr %29, align 4, !tbaa !5
  %258 = load i32, ptr %16, align 4, !tbaa !5
  %259 = load i32, ptr %16, align 4, !tbaa !5
  %260 = load i32, ptr %27, align 4, !tbaa !5
  %261 = sub i32 %259, %260
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds i32, ptr %111, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = load i32, ptr %16, align 4, !tbaa !5
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds i32, ptr %120, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = load i32, ptr %29, align 4, !tbaa !5
  %270 = icmp ne i32 %269, 0
  %271 = zext i1 %270 to i64
  %272 = select i1 %270, ptr @.str.19, ptr @.str.20
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %258, i32 noundef %264, i32 noundef %268, ptr noundef %272)
  %274 = load i32, ptr %29, align 4, !tbaa !5
  %275 = load i32, ptr %28, align 4, !tbaa !5
  %276 = add i32 %275, %274
  store i32 %276, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %277

277:                                              ; preds = %244
  %278 = load i32, ptr %16, align 4, !tbaa !5
  %279 = add i32 %278, 1
  store i32 %279, ptr %16, align 4, !tbaa !5
  br label %240, !llvm.loop !19

280:                                              ; preds = %240
  %281 = load i32, ptr %28, align 4, !tbaa !5
  %282 = load i32, ptr %11, align 4, !tbaa !5
  %283 = load i32, ptr %27, align 4, !tbaa !5
  %284 = sub i32 %282, %283
  %285 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %281, i32 noundef %284)
  %286 = load ptr, ptr %25, align 8, !tbaa !9
  %287 = call i32 @cpfskmod_destroy(ptr noundef %286)
  %288 = load ptr, ptr %26, align 8, !tbaa !9
  %289 = call i32 @cpfskdem_destroy(ptr noundef %288)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 1024, ptr %30, align 4, !tbaa !5
  %290 = load i32, ptr %30, align 4, !tbaa !5
  %291 = zext i32 %290 to i64
  %292 = alloca float, i64 %291, align 16
  store i64 %291, ptr %31, align 8
  %293 = load i32, ptr %30, align 4, !tbaa !5
  %294 = load i32, ptr %17, align 4, !tbaa !5
  %295 = call i32 @spgramcf_estimate_psd(i32 noundef %293, ptr noundef %114, i32 noundef %294, ptr noundef %292)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %296 = call noalias ptr @fopen(ptr noundef @.str.22, ptr noundef @.str.23)
  store ptr %296, ptr %32, align 8, !tbaa !9
  %297 = load ptr, ptr %32, align 8, !tbaa !9
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %297, ptr noundef @.str.24, ptr noundef @.str.22) #8
  %299 = load ptr, ptr %32, align 8, !tbaa !9
  %300 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %299, ptr noundef @.str.25) #8
  %301 = load ptr, ptr %32, align 8, !tbaa !9
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %301, ptr noundef @.str.26) #8
  %303 = load ptr, ptr %32, align 8, !tbaa !9
  %304 = load i32, ptr %8, align 4, !tbaa !5
  %305 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.27, i32 noundef %304) #8
  %306 = load ptr, ptr %32, align 8, !tbaa !9
  %307 = load float, ptr %7, align 4, !tbaa !11
  %308 = fpext float %307 to double
  %309 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %306, ptr noundef @.str.28, double noundef %308) #8
  %310 = load ptr, ptr %32, align 8, !tbaa !9
  %311 = load i32, ptr %11, align 4, !tbaa !5
  %312 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %310, ptr noundef @.str.29, i32 noundef %311) #8
  %313 = load ptr, ptr %32, align 8, !tbaa !9
  %314 = load i32, ptr %17, align 4, !tbaa !5
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %313, ptr noundef @.str.30, i32 noundef %314) #8
  %316 = load ptr, ptr %32, align 8, !tbaa !9
  %317 = load i32, ptr %30, align 4, !tbaa !5
  %318 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %316, ptr noundef @.str.31, i32 noundef %317) #8
  %319 = load ptr, ptr %32, align 8, !tbaa !9
  %320 = load i32, ptr %9, align 4, !tbaa !5
  %321 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %319, ptr noundef @.str.32, i32 noundef %320) #8
  %322 = load ptr, ptr %32, align 8, !tbaa !9
  %323 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %322, ptr noundef @.str.33) #8
  %324 = load ptr, ptr %32, align 8, !tbaa !9
  %325 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %324, ptr noundef @.str.34) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %326

326:                                              ; preds = %371, %280
  %327 = load i32, ptr %16, align 4, !tbaa !5
  %328 = load i32, ptr %17, align 4, !tbaa !5
  %329 = icmp ult i32 %327, %328
  br i1 %329, label %330, label %374

330:                                              ; preds = %326
  %331 = load ptr, ptr %32, align 8, !tbaa !9
  %332 = load i32, ptr %16, align 4, !tbaa !5
  %333 = add i32 %332, 1
  %334 = load i32, ptr %16, align 4, !tbaa !5
  %335 = zext i32 %334 to i64
  %336 = getelementptr inbounds { float, float }, ptr %114, i64 %335
  %337 = getelementptr inbounds { float, float }, ptr %336, i32 0, i32 0
  %338 = load float, ptr %337, align 8
  %339 = getelementptr inbounds { float, float }, ptr %336, i32 0, i32 1
  %340 = load float, ptr %339, align 4
  %341 = fpext float %338 to double
  %342 = load i32, ptr %16, align 4, !tbaa !5
  %343 = zext i32 %342 to i64
  %344 = getelementptr inbounds { float, float }, ptr %114, i64 %343
  %345 = getelementptr inbounds { float, float }, ptr %344, i32 0, i32 0
  %346 = load float, ptr %345, align 8
  %347 = getelementptr inbounds { float, float }, ptr %344, i32 0, i32 1
  %348 = load float, ptr %347, align 4
  %349 = fpext float %348 to double
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %331, ptr noundef @.str.35, i32 noundef %333, double noundef %341, double noundef %349) #8
  %351 = load ptr, ptr %32, align 8, !tbaa !9
  %352 = load i32, ptr %16, align 4, !tbaa !5
  %353 = add i32 %352, 1
  %354 = load i32, ptr %16, align 4, !tbaa !5
  %355 = zext i32 %354 to i64
  %356 = getelementptr inbounds { float, float }, ptr %117, i64 %355
  %357 = getelementptr inbounds { float, float }, ptr %356, i32 0, i32 0
  %358 = load float, ptr %357, align 8
  %359 = getelementptr inbounds { float, float }, ptr %356, i32 0, i32 1
  %360 = load float, ptr %359, align 4
  %361 = fpext float %358 to double
  %362 = load i32, ptr %16, align 4, !tbaa !5
  %363 = zext i32 %362 to i64
  %364 = getelementptr inbounds { float, float }, ptr %117, i64 %363
  %365 = getelementptr inbounds { float, float }, ptr %364, i32 0, i32 0
  %366 = load float, ptr %365, align 8
  %367 = getelementptr inbounds { float, float }, ptr %364, i32 0, i32 1
  %368 = load float, ptr %367, align 4
  %369 = fpext float %368 to double
  %370 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %351, ptr noundef @.str.36, i32 noundef %353, double noundef %361, double noundef %369) #8
  br label %371

371:                                              ; preds = %330
  %372 = load i32, ptr %16, align 4, !tbaa !5
  %373 = add i32 %372, 1
  store i32 %373, ptr %16, align 4, !tbaa !5
  br label %326, !llvm.loop !20

374:                                              ; preds = %326
  %375 = load ptr, ptr %32, align 8, !tbaa !9
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %375, ptr noundef @.str.37) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %377

377:                                              ; preds = %391, %374
  %378 = load i32, ptr %16, align 4, !tbaa !5
  %379 = load i32, ptr %30, align 4, !tbaa !5
  %380 = icmp ult i32 %378, %379
  br i1 %380, label %381, label %394

381:                                              ; preds = %377
  %382 = load ptr, ptr %32, align 8, !tbaa !9
  %383 = load i32, ptr %16, align 4, !tbaa !5
  %384 = add i32 %383, 1
  %385 = load i32, ptr %16, align 4, !tbaa !5
  %386 = zext i32 %385 to i64
  %387 = getelementptr inbounds float, ptr %292, i64 %386
  %388 = load float, ptr %387, align 4, !tbaa !11
  %389 = fpext float %388 to double
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %382, ptr noundef @.str.38, i32 noundef %384, double noundef %389) #8
  br label %391

391:                                              ; preds = %381
  %392 = load i32, ptr %16, align 4, !tbaa !5
  %393 = add i32 %392, 1
  store i32 %393, ptr %16, align 4, !tbaa !5
  br label %377, !llvm.loop !21

394:                                              ; preds = %377
  %395 = load ptr, ptr %32, align 8, !tbaa !9
  %396 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %395, ptr noundef @.str.39) #8
  %397 = load ptr, ptr %32, align 8, !tbaa !9
  %398 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %397, ptr noundef @.str.40) #8
  %399 = load ptr, ptr %32, align 8, !tbaa !9
  %400 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %399, ptr noundef @.str.41) #8
  %401 = load ptr, ptr %32, align 8, !tbaa !9
  %402 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %401, ptr noundef @.str.42) #8
  %403 = load ptr, ptr %32, align 8, !tbaa !9
  %404 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %403, ptr noundef @.str.43) #8
  %405 = load ptr, ptr %32, align 8, !tbaa !9
  %406 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %405, ptr noundef @.str.44) #8
  %407 = load ptr, ptr %32, align 8, !tbaa !9
  %408 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %407, ptr noundef @.str.45) #8
  %409 = load ptr, ptr %32, align 8, !tbaa !9
  %410 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %409, ptr noundef @.str.46) #8
  %411 = load ptr, ptr %32, align 8, !tbaa !9
  %412 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %411, ptr noundef @.str.47) #8
  %413 = load ptr, ptr %32, align 8, !tbaa !9
  %414 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %413, ptr noundef @.str.48) #8
  %415 = load ptr, ptr %32, align 8, !tbaa !9
  %416 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %415, ptr noundef @.str.49) #8
  %417 = load ptr, ptr %32, align 8, !tbaa !9
  %418 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %417, ptr noundef @.str.50) #8
  %419 = load ptr, ptr %32, align 8, !tbaa !9
  %420 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %419, ptr noundef @.str.51) #8
  %421 = load ptr, ptr %32, align 8, !tbaa !9
  %422 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %421, ptr noundef @.str.45) #8
  %423 = load ptr, ptr %32, align 8, !tbaa !9
  %424 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %423, ptr noundef @.str.46) #8
  %425 = load ptr, ptr %32, align 8, !tbaa !9
  %426 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %425, ptr noundef @.str.52) #8
  %427 = load ptr, ptr %32, align 8, !tbaa !9
  %428 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %427, ptr noundef @.str.48) #8
  %429 = load ptr, ptr %32, align 8, !tbaa !9
  %430 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %429, ptr noundef @.str.53) #8
  %431 = load ptr, ptr %32, align 8, !tbaa !9
  %432 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %431, ptr noundef @.str.54) #8
  %433 = load ptr, ptr %32, align 8, !tbaa !9
  %434 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %433, ptr noundef @.str.55) #8
  %435 = load ptr, ptr %32, align 8, !tbaa !9
  %436 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %435, ptr noundef @.str.56) #8
  %437 = load ptr, ptr %32, align 8, !tbaa !9
  %438 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %437, ptr noundef @.str.57) #8
  %439 = load ptr, ptr %32, align 8, !tbaa !9
  %440 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %439, ptr noundef @.str.58) #8
  %441 = load ptr, ptr %32, align 8, !tbaa !9
  %442 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %441, ptr noundef @.str.48) #8
  %443 = load ptr, ptr %32, align 8, !tbaa !9
  %444 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %443, ptr noundef @.str.59) #8
  %445 = load ptr, ptr %32, align 8, !tbaa !9
  %446 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %445, ptr noundef @.str.60) #8
  %447 = load ptr, ptr %32, align 8, !tbaa !9
  %448 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %447, ptr noundef @.str.55) #8
  %449 = load ptr, ptr %32, align 8, !tbaa !9
  %450 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %449, ptr noundef @.str.56) #8
  %451 = load ptr, ptr %32, align 8, !tbaa !9
  %452 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %451, ptr noundef @.str.57) #8
  %453 = load ptr, ptr %32, align 8, !tbaa !9
  %454 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %453, ptr noundef @.str.58) #8
  %455 = load ptr, ptr %32, align 8, !tbaa !9
  %456 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %455, ptr noundef @.str.48) #8
  %457 = load ptr, ptr %32, align 8, !tbaa !9
  %458 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %457, ptr noundef @.str.61) #8
  %459 = load ptr, ptr %32, align 8, !tbaa !9
  %460 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %459, ptr noundef @.str.62) #8
  %461 = load ptr, ptr %32, align 8, !tbaa !9
  %462 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %461, ptr noundef @.str.63) #8
  %463 = load ptr, ptr %32, align 8, !tbaa !9
  %464 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %463, ptr noundef @.str.64) #8
  %465 = load ptr, ptr %32, align 8, !tbaa !9
  %466 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %465, ptr noundef @.str.65) #8
  %467 = load ptr, ptr %32, align 8, !tbaa !9
  %468 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %467, ptr noundef @.str.66) #8
  %469 = load ptr, ptr %32, align 8, !tbaa !9
  %470 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %469, ptr noundef @.str.48) #8
  %471 = load ptr, ptr %32, align 8, !tbaa !9
  %472 = call i32 @fclose(ptr noundef %471)
  %473 = call i32 (ptr, ...) @printf(ptr noundef @.str.67, ptr noundef @.str.22)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  %474 = load ptr, ptr %20, align 8
  call void @llvm.stackrestore.p0(ptr %474)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %475

475:                                              ; preds = %394, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  %476 = load i32, ptr %3, align 4
  ret i32 %476
}

; 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: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

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

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

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

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

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

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

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

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

declare i32 @cpfskmod_print(ptr noundef) #1

declare i32 @cpfskdem_print(ptr noundef) #1

declare i32 @cpfskmod_get_delay(ptr noundef) #1

declare i32 @cpfskdem_get_delay(ptr noundef) #1

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

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

declare float @randnf(...) #1

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

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

declare i32 @cpfskmod_destroy(ptr noundef) #1

declare i32 @cpfskdem_destroy(ptr noundef) #1

declare i32 @spgramcf_estimate_psd(i32 noundef, ptr noundef, i32 noundef, 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 = { 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 = { nounwind willreturn memory(read) "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 = { 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 #7 = { nocallback nofree nosync nounwind willreturn }
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}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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.11 = external hidden unnamed_addr constant [18 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  br label %3

3:                                                ; preds = %.backedge, %2
  %.0165 = phi i32 [ 0, %2 ], [ %.0165.be, %.backedge ]
  %.0163 = phi float [ 4.000000e+01, %2 ], [ %.0163.be, %.backedge ]
  %.0161 = phi i32 [ 20, %2 ], [ %.0161.be, %.backedge ]
  %.0159 = phi float [ 0x3FD6666660000000, %2 ], [ %.0159.be, %.backedge ]
  %.0157 = phi i32 [ 3, %2 ], [ %.0157.be, %.backedge ]
  %.0154 = phi i32 [ 4, %2 ], [ %.0154.be, %.backedge ]
  %.0152 = phi float [ 5.000000e-01, %2 ], [ %.0152.be, %.backedge ]
  %.0151 = phi i32 [ 1, %2 ], [ %.0151.be, %.backedge ]
  %4 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.11) #9
  switch i32 %4, label %47 [
    i32 -1, label %48
    i32 104, label %5
    i32 116, label %6
    i32 112, label %23
    i32 72, label %26
    i32 107, label %30
    i32 109, label %33
    i32 98, label %36
    i32 110, label %40
    i32 115, label %43
  ]

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

6:                                                ; preds = %3
  %7 = load ptr, ptr @optarg, align 8, !tbaa !5
  %8 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.12) #10
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %.backedge, label %10

10:                                               ; preds = %6
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.13) #10
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %.backedge, label %13

13:                                               ; preds = %10
  %14 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.14) #10
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.backedge, label %16

16:                                               ; preds = %13
  %17 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.15) #10
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %.backedge, label %19

.backedge:                                        ; preds = %16, %13, %10, %6, %43, %40, %36, %33, %30, %26, %23
  %.0165.be = phi i32 [ %.0165, %43 ], [ %.0165, %40 ], [ %.0165, %36 ], [ %.0165, %33 ], [ %.0165, %30 ], [ %.0165, %26 ], [ %.0165, %23 ], [ 0, %6 ], [ 1, %10 ], [ 2, %13 ], [ 3, %16 ]
  %.0163.be = phi float [ %46, %43 ], [ %.0163, %40 ], [ %.0163, %36 ], [ %.0163, %33 ], [ %.0163, %30 ], [ %.0163, %26 ], [ %.0163, %23 ], [ %.0163, %6 ], [ %.0163, %10 ], [ %.0163, %13 ], [ %.0163, %16 ]
  %.0161.be = phi i32 [ %.0161, %43 ], [ %42, %40 ], [ %.0161, %36 ], [ %.0161, %33 ], [ %.0161, %30 ], [ %.0161, %26 ], [ %.0161, %23 ], [ %.0161, %6 ], [ %.0161, %10 ], [ %.0161, %13 ], [ %.0161, %16 ]
  %.0159.be = phi float [ %.0159, %43 ], [ %.0159, %40 ], [ %39, %36 ], [ %.0159, %33 ], [ %.0159, %30 ], [ %.0159, %26 ], [ %.0159, %23 ], [ %.0159, %6 ], [ %.0159, %10 ], [ %.0159, %13 ], [ %.0159, %16 ]
  %.0157.be = phi i32 [ %.0157, %43 ], [ %.0157, %40 ], [ %.0157, %36 ], [ %35, %33 ], [ %.0157, %30 ], [ %.0157, %26 ], [ %.0157, %23 ], [ %.0157, %6 ], [ %.0157, %10 ], [ %.0157, %13 ], [ %.0157, %16 ]
  %.0154.be = phi i32 [ %.0154, %43 ], [ %.0154, %40 ], [ %.0154, %36 ], [ %.0154, %33 ], [ %32, %30 ], [ %.0154, %26 ], [ %.0154, %23 ], [ %.0154, %6 ], [ %.0154, %10 ], [ %.0154, %13 ], [ %.0154, %16 ]
  %.0152.be = phi float [ %.0152, %43 ], [ %.0152, %40 ], [ %.0152, %36 ], [ %.0152, %33 ], [ %.0152, %30 ], [ %29, %26 ], [ %.0152, %23 ], [ %.0152, %6 ], [ %.0152, %10 ], [ %.0152, %13 ], [ %.0152, %16 ]
  %.0151.be = phi i32 [ %.0151, %43 ], [ %.0151, %40 ], [ %.0151, %36 ], [ %.0151, %33 ], [ %.0151, %30 ], [ %.0151, %26 ], [ %25, %23 ], [ %.0151, %6 ], [ %.0151, %10 ], [ %.0151, %13 ], [ %.0151, %16 ]
  br label %3, !llvm.loop !9

19:                                               ; preds = %16
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.16, ptr noundef %21, ptr noundef %7) #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

23:                                               ; preds = %3
  %24 = load ptr, ptr @optarg, align 8, !tbaa !5
  %25 = tail call i32 @atoi(ptr nocapture noundef %24) #10
  br label %.backedge

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

30:                                               ; preds = %3
  %31 = load ptr, ptr @optarg, align 8, !tbaa !5
  %32 = tail call i32 @atoi(ptr nocapture noundef %31) #10
  br label %.backedge

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

36:                                               ; preds = %3
  %37 = load ptr, ptr @optarg, align 8, !tbaa !5
  %38 = tail call double @atof(ptr noundef %37) #10
  %39 = fptrunc double %38 to float
  br label %.backedge

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

43:                                               ; preds = %3
  %44 = load ptr, ptr @optarg, align 8, !tbaa !5
  %45 = tail call double @atof(ptr noundef %44) #10
  %46 = fptrunc double %45 to float
  br label %.backedge

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

48:                                               ; preds = %3
  %49 = mul i32 %.0154, %.0161
  %50 = fdiv float %.0163, -2.000000e+01
  %51 = tail call float @powf(float noundef 1.000000e+01, float noundef %50) #9
  %52 = zext i32 %.0161 to i64
  %53 = tail call ptr @llvm.stacksave.p0()
  %54 = alloca i32, i64 %52, align 16
  %55 = zext i32 %49 to i64
  %56 = alloca { float, float }, i64 %55, align 16
  %57 = alloca { float, float }, i64 %55, align 16
  %58 = alloca i32, i64 %52, align 16
  %59 = tail call ptr @cpfskmod_create(i32 noundef %.0151, float noundef %.0152, i32 noundef %.0154, i32 noundef %.0157, float noundef %.0159, i32 noundef %.0165) #9
  %60 = tail call ptr @cpfskdem_create(i32 noundef %.0151, float noundef %.0152, i32 noundef %.0154, i32 noundef %.0157, float noundef %.0159, i32 noundef %.0165) #9
  %61 = tail call i32 @cpfskmod_print(ptr noundef %59) #9
  %62 = tail call i32 @cpfskdem_print(ptr noundef %60) #9
  %63 = tail call i32 @cpfskmod_get_delay(ptr noundef %59) #9
  %64 = tail call i32 @cpfskdem_get_delay(ptr noundef %60) #9
  %65 = add i32 %64, %63
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %65)
  %.not = icmp eq i32 %.0161, 0
  br i1 %.not, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %48
  %notmask = shl nsw i32 -1, %.0151
  %67 = xor i32 %notmask, -1
  br label %68

.preheader172:                                    ; preds = %68
  br i1 %.not, label %.preheader, label %.lr.ph199

68:                                               ; preds = %.lr.ph, %68
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %68 ]
  %69 = tail call i32 @rand() #9
  %70 = and i32 %69, %67
  %71 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv
  store i32 %70, ptr %71, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %52
  br i1 %exitcond.not, label %.preheader172, label %68, !llvm.loop !13

.preheader171:                                    ; preds = %.lr.ph199
  %.not213 = icmp eq i32 %49, 0
  br i1 %.not213, label %.preheader170, label %.lr.ph201.preheader

.lr.ph201.preheader:                              ; preds = %.preheader171
  %72 = insertelement <2 x float> poison, float %51, i64 0
  %73 = shufflevector <2 x float> %72, <2 x float> poison, <2 x i32> zeroinitializer
  br label %.lr.ph201

.lr.ph199:                                        ; preds = %.preheader172, %.lr.ph199
  %indvars.iv242 = phi i64 [ %indvars.iv.next243, %.lr.ph199 ], [ 0, %.preheader172 ]
  %74 = getelementptr inbounds i32, ptr %54, i64 %indvars.iv242
  %75 = load i32, ptr %74, align 4, !tbaa !11
  %76 = trunc nuw i64 %indvars.iv242 to i32
  %77 = mul i32 %.0154, %76
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds { float, float }, ptr %56, i64 %78
  %80 = call i32 @cpfskmod_modulate(ptr noundef %59, i32 noundef %75, ptr noundef nonnull %79) #9
  %indvars.iv.next243 = add nuw nsw i64 %indvars.iv242, 1
  %exitcond246.not = icmp eq i64 %indvars.iv.next243, %52
  br i1 %exitcond246.not, label %.preheader171, label %.lr.ph199, !llvm.loop !14

.preheader170:                                    ; preds = %.lr.ph201, %.preheader171
  %.not213270 = phi i1 [ true, %.preheader171 ], [ %.not213, %.lr.ph201 ]
  br i1 %.not, label %.preheader, label %.lr.ph203

.lr.ph201:                                        ; preds = %.lr.ph201.preheader, %.lr.ph201
  %indvars.iv247 = phi i64 [ %indvars.iv.next248, %.lr.ph201 ], [ 0, %.lr.ph201.preheader ]
  %81 = getelementptr inbounds { float, float }, ptr %56, i64 %indvars.iv247
  %82 = getelementptr inbounds { float, float }, ptr %57, i64 %indvars.iv247
  %83 = load <2 x float>, ptr %81, align 8
  %84 = fpext <2 x float> %83 to <2 x double>
  %85 = call float (...) @randnf() #9
  %86 = call float (...) @randnf() #9
  %87 = fmul float %86, 0.000000e+00
  %88 = fadd float %85, %87
  %89 = insertelement <2 x float> poison, float %88, i64 0
  %90 = insertelement <2 x float> %89, float %86, i64 1
  %91 = fmul <2 x float> %73, %90
  %92 = fpext <2 x float> %91 to <2 x double>
  %93 = fmul <2 x double> %92, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %94 = fadd <2 x double> %93, %84
  %95 = fptrunc <2 x double> %94 to <2 x float>
  store <2 x float> %95, ptr %82, align 8
  %indvars.iv.next248 = add nuw nsw i64 %indvars.iv247, 1
  %exitcond251.not = icmp eq i64 %indvars.iv.next248, %55
  br i1 %exitcond251.not, label %.preheader170, label %.lr.ph201, !llvm.loop !15

.preheader:                                       ; preds = %.lr.ph203, %.preheader172, %48, %.preheader170
  %.not213270272 = phi i1 [ %.not213270, %.preheader170 ], [ true, %48 ], [ true, %.preheader172 ], [ %.not213270, %.lr.ph203 ]
  %96 = icmp ult i32 %65, %.0161
  br i1 %96, label %.lr.ph206.preheader, label %._crit_edge

.lr.ph206.preheader:                              ; preds = %.preheader
  %97 = zext i32 %65 to i64
  br label %.lr.ph206

.lr.ph203:                                        ; preds = %.preheader170, %.lr.ph203
  %indvars.iv252 = phi i64 [ %indvars.iv.next253, %.lr.ph203 ], [ 0, %.preheader170 ]
  %98 = trunc nuw i64 %indvars.iv252 to i32
  %99 = mul i32 %.0154, %98
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds { float, float }, ptr %57, i64 %100
  %102 = call i32 @cpfskdem_demodulate(ptr noundef %60, ptr noundef nonnull %101) #9
  %103 = getelementptr inbounds i32, ptr %58, i64 %indvars.iv252
  store i32 %102, ptr %103, align 4, !tbaa !11
  %indvars.iv.next253 = add nuw nsw i64 %indvars.iv252, 1
  %exitcond256.not = icmp eq i64 %indvars.iv.next253, %52
  br i1 %exitcond256.not, label %.preheader, label %.lr.ph203, !llvm.loop !16

.lr.ph206:                                        ; preds = %.lr.ph206.preheader, %.lr.ph206
  %indvars.iv257 = phi i64 [ %97, %.lr.ph206.preheader ], [ %indvars.iv.next258, %.lr.ph206 ]
  %.0156205 = phi i32 [ 0, %.lr.ph206.preheader ], [ %114, %.lr.ph206 ]
  %104 = sub nuw nsw i64 %indvars.iv257, %97
  %105 = getelementptr inbounds i32, ptr %54, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !11
  %107 = getelementptr inbounds i32, ptr %58, i64 %indvars.iv257
  %108 = load i32, ptr %107, align 4, !tbaa !11
  %109 = icmp ne i32 %106, %108
  %110 = zext i1 %109 to i32
  %111 = select i1 %109, ptr @.str.19, ptr @.str.20
  %112 = trunc nuw i64 %indvars.iv257 to i32
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %112, i32 noundef %106, i32 noundef %108, ptr noundef nonnull %111)
  %114 = add i32 %.0156205, %110
  %indvars.iv.next258 = add nuw nsw i64 %indvars.iv257, 1
  %115 = icmp ult i64 %indvars.iv.next258, %52
  br i1 %115, label %.lr.ph206, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph206, %.preheader
  %.0156.lcssa = phi i32 [ 0, %.preheader ], [ %114, %.lr.ph206 ]
  %116 = sub i32 %.0161, %65
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %.0156.lcssa, i32 noundef %116)
  %118 = call i32 @cpfskmod_destroy(ptr noundef %59) #9
  %119 = call i32 @cpfskdem_destroy(ptr noundef %60) #9
  %120 = alloca [1024 x float], align 16
  %121 = call i32 @spgramcf_estimate_psd(i32 noundef 1024, ptr noundef nonnull %56, i32 noundef %49, ptr noundef nonnull %120) #9
  %122 = call noalias ptr @fopen(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.23)
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.22) #9
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.25) #9
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.26) #9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.27, i32 noundef %.0154) #9
  %127 = fpext float %.0152 to double
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.28, double noundef %127) #9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.29, i32 noundef %.0161) #9
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.30, i32 noundef %49) #9
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.31, i32 noundef 1024) #9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.32, i32 noundef %.0157) #9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.33) #9
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.34) #9
  br i1 %.not213270272, label %._crit_edge210, label %.lr.ph209

.lr.ph209:                                        ; preds = %._crit_edge, %.lr.ph209
  %indvars.iv260 = phi i64 [ %indvars.iv.next261, %.lr.ph209 ], [ 0, %._crit_edge ]
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %135 = getelementptr inbounds { float, float }, ptr %56, i64 %indvars.iv260
  %136 = load float, ptr %135, align 8
  %137 = getelementptr inbounds i8, ptr %135, i64 4
  %138 = fpext float %136 to double
  %139 = load float, ptr %137, align 4
  %140 = fpext float %139 to double
  %141 = trunc nuw i64 %indvars.iv.next261 to i32
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.35, i32 noundef %141, double noundef %138, double noundef %140) #9
  %143 = getelementptr inbounds { float, float }, ptr %57, i64 %indvars.iv260
  %144 = load float, ptr %143, align 8
  %145 = getelementptr inbounds i8, ptr %143, i64 4
  %146 = fpext float %144 to double
  %147 = load float, ptr %145, align 4
  %148 = fpext float %147 to double
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.36, i32 noundef %141, double noundef %146, double noundef %148) #9
  %exitcond264.not = icmp eq i64 %indvars.iv.next261, %55
  br i1 %exitcond264.not, label %._crit_edge210, label %.lr.ph209, !llvm.loop !18

._crit_edge210:                                   ; preds = %.lr.ph209, %._crit_edge
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.37) #9
  br label %151

151:                                              ; preds = %._crit_edge210, %151
  %indvars.iv265 = phi i64 [ 0, %._crit_edge210 ], [ %indvars.iv.next266, %151 ]
  %indvars.iv.next266 = add nuw nsw i64 %indvars.iv265, 1
  %152 = getelementptr inbounds float, ptr %120, i64 %indvars.iv265
  %153 = load float, ptr %152, align 4, !tbaa !19
  %154 = fpext float %153 to double
  %155 = trunc nuw nsw i64 %indvars.iv.next266 to i32
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.38, i32 noundef %155, double noundef %154) #9
  %exitcond268.not = icmp eq i64 %indvars.iv.next266, 1024
  br i1 %exitcond268.not, label %157, label %151, !llvm.loop !21

157:                                              ; preds = %151
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.39) #9
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.40) #9
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.41) #9
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.42) #9
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.43) #9
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.44) #9
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.45) #9
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.46) #9
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.47) #9
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.48) #9
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.49) #9
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.50) #9
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.51) #9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.45) #9
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.46) #9
  %173 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.52) #9
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.48) #9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.53) #9
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.54) #9
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.55) #9
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.56) #9
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.57) #9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.58) #9
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.48) #9
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.59) #9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.60) #9
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.55) #9
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.56) #9
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.57) #9
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.58) #9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.48) #9
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.61) #9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.62) #9
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.63) #9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.64) #9
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.65) #9
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.66) #9
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.48) #9
  %196 = call i32 @fclose(ptr noundef %122)
  %197 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.67, ptr noundef nonnull @.str.22)
  call void @llvm.stackrestore.p0(ptr %53)
  br label %198

198:                                              ; preds = %157, %5
  ret i32 0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

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

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

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

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

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

declare ptr @cpfskmod_create(i32 noundef, float noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #8

declare ptr @cpfskdem_create(i32 noundef, float noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #8

declare i32 @cpfskmod_print(ptr noundef) local_unnamed_addr #8

declare i32 @cpfskdem_print(ptr noundef) local_unnamed_addr #8

declare i32 @cpfskmod_get_delay(ptr noundef) local_unnamed_addr #8

declare i32 @cpfskdem_get_delay(ptr noundef) local_unnamed_addr #8

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

declare i32 @cpfskmod_modulate(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

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

declare i32 @cpfskdem_demodulate(ptr noundef, ptr noundef) local_unnamed_addr #8

declare i32 @cpfskmod_destroy(ptr noundef) local_unnamed_addr #8

declare i32 @cpfskdem_destroy(ptr noundef) local_unnamed_addr #8

declare i32 @spgramcf_estimate_psd(i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 nofree nounwind willreturn memory(argmem: read) "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 = { 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 = { 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 #7 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #8 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = distinct !{!21, !10}


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