; LLVM IR from jgaeddert/liquid-dsp :: examples (symtrack_cccf_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.8 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

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

39:                                               ; preds = %69, %2
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = call i32 @getopt(i32 noundef %40, ptr noundef %41, ptr noundef @.str.8) #7
  store i32 %42, ptr %20, align 4, !tbaa !5
  %43 = icmp ne i32 %42, -1
  br i1 %43, label %44, label %70

44:                                               ; preds = %39
  %45 = load i32, ptr %20, align 4, !tbaa !5
  switch i32 %45, label %68 [
    i32 104, label %46
    i32 107, label %47
    i32 109, label %50
    i32 98, label %53
    i32 115, label %57
    i32 119, label %61
    i32 110, label %65
  ]

46:                                               ; preds = %44
  call void @usage()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %21, align 4
  br label %305

47:                                               ; preds = %44
  %48 = load ptr, ptr @optarg, align 8, !tbaa !9
  %49 = call i32 @atoi(ptr noundef %48) #8
  store i32 %49, ptr %8, align 4, !tbaa !5
  br label %69

50:                                               ; preds = %44
  %51 = load ptr, ptr @optarg, align 8, !tbaa !9
  %52 = call i32 @atoi(ptr noundef %51) #8
  store i32 %52, ptr %9, align 4, !tbaa !5
  br label %69

53:                                               ; preds = %44
  %54 = load ptr, ptr @optarg, align 8, !tbaa !9
  %55 = call double @atof(ptr noundef %54) #8
  %56 = fptrunc double %55 to float
  store float %56, ptr %10, align 4, !tbaa !11
  br label %69

57:                                               ; preds = %44
  %58 = load ptr, ptr @optarg, align 8, !tbaa !9
  %59 = call double @atof(ptr noundef %58) #8
  %60 = fptrunc double %59 to float
  store float %60, ptr %14, align 4, !tbaa !11
  br label %69

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

65:                                               ; preds = %44
  %66 = load ptr, ptr @optarg, align 8, !tbaa !9
  %67 = call i32 @atoi(ptr noundef %66) #8
  store i32 %67, ptr %11, align 4, !tbaa !5
  br label %69

68:                                               ; preds = %44
  call void @exit(i32 noundef 1) #9
  unreachable

69:                                               ; preds = %65, %61, %57, %53, %50, %47
  br label %39, !llvm.loop !13

70:                                               ; preds = %39
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = icmp ult i32 %71, 2
  br i1 %72, label %73, label %76

73:                                               ; preds = %70
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str.9) #7
  call void @exit(i32 noundef 1) #9
  unreachable

76:                                               ; preds = %70
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = icmp ult i32 %77, 1
  br i1 %78, label %79, label %82

79:                                               ; preds = %76
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.10) #7
  call void @exit(i32 noundef 1) #9
  unreachable

82:                                               ; preds = %76
  %83 = load float, ptr %10, align 4, !tbaa !11
  %84 = fcmp ole float %83, 0.000000e+00
  br i1 %84, label %88, label %85

85:                                               ; preds = %82
  %86 = load float, ptr %10, align 4, !tbaa !11
  %87 = fcmp ogt float %86, 1.000000e+00
  br i1 %87, label %88, label %91

88:                                               ; preds = %85, %82
  %89 = load ptr, ptr @stderr, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.11) #7
  call void @exit(i32 noundef 1) #9
  unreachable

91:                                               ; preds = %85
  %92 = load float, ptr %15, align 4, !tbaa !11
  %93 = fcmp ole float %92, 0.000000e+00
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load ptr, ptr @stderr, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.12) #7
  call void @exit(i32 noundef 1) #9
  unreachable

97:                                               ; preds = %91
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %103

100:                                              ; preds = %97
  %101 = load ptr, ptr @stderr, align 8, !tbaa !9
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.13) #7
  call void @exit(i32 noundef 1) #9
  unreachable

103:                                              ; preds = %97
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 800, ptr %23, align 4, !tbaa !5
  %108 = load i32, ptr %23, align 4, !tbaa !5
  %109 = zext i32 %108 to i64
  %110 = call ptr @llvm.stacksave.p0()
  store ptr %110, ptr %24, align 8
  %111 = alloca { float, float }, i64 %109, align 16
  store i64 %109, ptr %25, align 8
  %112 = load i32, ptr %23, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = alloca { float, float }, i64 %113, align 16
  store i64 %113, ptr %26, align 8
  %115 = load i32, ptr %23, align 4, !tbaa !5
  %116 = zext i32 %115 to i64
  %117 = alloca { float, float }, i64 %116, align 16
  store i64 %116, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %118 = load i32, ptr %23, align 4, !tbaa !5
  %119 = call ptr @windowcf_create(i32 noundef %118)
  store ptr %119, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = load float, ptr %10, align 4, !tbaa !11
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = call ptr @symstreamcf_create_linear(i32 noundef %120, i32 noundef %121, i32 noundef %122, float noundef %123, i32 noundef %124)
  store ptr %125, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %126 = call ptr @channel_cccf_create()
  store ptr %126, ptr %30, align 8, !tbaa !9
  %127 = load ptr, ptr %30, align 8, !tbaa !9
  %128 = load float, ptr %13, align 4, !tbaa !11
  %129 = load float, ptr %14, align 4, !tbaa !11
  %130 = call i32 @channel_cccf_add_awgn(ptr noundef %127, float noundef %128, float noundef %129)
  %131 = load ptr, ptr %30, align 8, !tbaa !9
  %132 = load float, ptr %16, align 4, !tbaa !11
  %133 = load float, ptr %17, align 4, !tbaa !11
  %134 = call i32 @channel_cccf_add_carrier_offset(ptr noundef %131, float noundef %132, float noundef %133)
  %135 = load ptr, ptr %30, align 8, !tbaa !9
  %136 = load i32, ptr %12, align 4, !tbaa !5
  %137 = call i32 @channel_cccf_add_multipath(ptr noundef %135, ptr noundef null, i32 noundef %136)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %138 = load i32, ptr %6, align 4, !tbaa !5
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = load float, ptr %10, align 4, !tbaa !11
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = call ptr @symtrack_cccf_create(i32 noundef %138, i32 noundef %139, i32 noundef %140, float noundef %141, i32 noundef %142)
  store ptr %143, ptr %31, align 8, !tbaa !9
  %144 = load ptr, ptr %31, align 8, !tbaa !9
  %145 = load float, ptr %15, align 4, !tbaa !11
  %146 = call i32 @symtrack_cccf_set_bandwidth(ptr noundef %144, float noundef %145)
  %147 = load ptr, ptr %31, align 8, !tbaa !9
  %148 = call i32 @symtrack_cccf_print(ptr noundef %147)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %149 = load i32, ptr %18, align 4, !tbaa !5
  %150 = call ptr @spgramcf_create_default(i32 noundef %149)
  store ptr %150, ptr %32, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %155, %107
  %152 = load i32, ptr %33, align 4, !tbaa !5
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = icmp ult i32 %152, %153
  br i1 %154, label %155, label %177

155:                                              ; preds = %151
  %156 = load ptr, ptr %29, align 8, !tbaa !9
  %157 = load i32, ptr %23, align 4, !tbaa !5
  %158 = call i32 @symstreamcf_write_samples(ptr noundef %156, ptr noundef %111, i32 noundef %157)
  %159 = load ptr, ptr %30, align 8, !tbaa !9
  %160 = load i32, ptr %23, align 4, !tbaa !5
  %161 = call i32 @channel_cccf_execute_block(ptr noundef %159, ptr noundef %111, i32 noundef %160, ptr noundef %114)
  %162 = load ptr, ptr %32, align 8, !tbaa !9
  %163 = load i32, ptr %23, align 4, !tbaa !5
  %164 = call i32 @spgramcf_write(ptr noundef %162, ptr noundef %114, i32 noundef %163)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %165 = load ptr, ptr %31, align 8, !tbaa !9
  %166 = load i32, ptr %23, align 4, !tbaa !5
  %167 = call i32 @symtrack_cccf_execute_block(ptr noundef %165, ptr noundef %114, i32 noundef %166, ptr noundef %117, ptr noundef %35)
  %168 = load i32, ptr %35, align 4, !tbaa !5
  %169 = load i32, ptr %34, align 4, !tbaa !5
  %170 = add i32 %169, %168
  store i32 %170, ptr %34, align 4, !tbaa !5
  %171 = load ptr, ptr %28, align 8, !tbaa !9
  %172 = load i32, ptr %35, align 4, !tbaa !5
  %173 = call i32 @windowcf_write(ptr noundef %171, ptr noundef %117, i32 noundef %172)
  %174 = load i32, ptr %23, align 4, !tbaa !5
  %175 = load i32, ptr %33, align 4, !tbaa !5
  %176 = add i32 %175, %174
  store i32 %176, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %151, !llvm.loop !15

177:                                              ; preds = %151
  %178 = load i32, ptr %33, align 4, !tbaa !5
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %178)
  %180 = load i32, ptr %34, align 4, !tbaa !5
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %180)
  %182 = load i32, ptr %18, align 4, !tbaa !5
  %183 = zext i32 %182 to i64
  %184 = alloca float, i64 %183, align 16
  store i64 %183, ptr %36, align 8
  %185 = load ptr, ptr %32, align 8, !tbaa !9
  %186 = call i32 @spgramcf_get_psd(ptr noundef %185, ptr noundef %184)
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %187 = call noalias ptr @fopen(ptr noundef @.str.16, ptr noundef @.str.17)
  store ptr %187, ptr %37, align 8, !tbaa !9
  %188 = load ptr, ptr %37, align 8, !tbaa !9
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str.18, ptr noundef @.str.16) #7
  %190 = load ptr, ptr %37, align 8, !tbaa !9
  %191 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.19) #7
  %192 = load ptr, ptr %37, align 8, !tbaa !9
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %192, ptr noundef @.str.20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %194 = load ptr, ptr %28, align 8, !tbaa !9
  %195 = call i32 @windowcf_read(ptr noundef %194, ptr noundef %38)
  %196 = load ptr, ptr %37, align 8, !tbaa !9
  %197 = load i32, ptr %23, align 4, !tbaa !5
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.21, i32 noundef %197) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %226, %177
  %200 = load i32, ptr %22, align 4, !tbaa !5
  %201 = load i32, ptr %23, align 4, !tbaa !5
  %202 = icmp ult i32 %200, %201
  br i1 %202, label %203, label %229

203:                                              ; preds = %199
  %204 = load ptr, ptr %37, align 8, !tbaa !9
  %205 = load i32, ptr %22, align 4, !tbaa !5
  %206 = add i32 %205, 1
  %207 = load ptr, ptr %38, align 8, !tbaa !9
  %208 = load i32, ptr %22, align 4, !tbaa !5
  %209 = zext i32 %208 to i64
  %210 = getelementptr inbounds { float, float }, ptr %207, i64 %209
  %211 = getelementptr inbounds { float, float }, ptr %210, i32 0, i32 0
  %212 = load float, ptr %211, align 4
  %213 = getelementptr inbounds { float, float }, ptr %210, i32 0, i32 1
  %214 = load float, ptr %213, align 4
  %215 = fpext float %212 to double
  %216 = load ptr, ptr %38, align 8, !tbaa !9
  %217 = load i32, ptr %22, align 4, !tbaa !5
  %218 = zext i32 %217 to i64
  %219 = getelementptr inbounds { float, float }, ptr %216, i64 %218
  %220 = getelementptr inbounds { float, float }, ptr %219, i32 0, i32 0
  %221 = load float, ptr %220, align 4
  %222 = getelementptr inbounds { float, float }, ptr %219, i32 0, i32 1
  %223 = load float, ptr %222, align 4
  %224 = fpext float %223 to double
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.22, i32 noundef %206, double noundef %215, double noundef %224) #7
  br label %226

226:                                              ; preds = %203
  %227 = load i32, ptr %22, align 4, !tbaa !5
  %228 = add i32 %227, 1
  store i32 %228, ptr %22, align 4, !tbaa !5
  br label %199, !llvm.loop !16

229:                                              ; preds = %199
  %230 = load ptr, ptr %37, align 8, !tbaa !9
  %231 = load i32, ptr %18, align 4, !tbaa !5
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.23, i32 noundef %231) #7
  %233 = load ptr, ptr %37, align 8, !tbaa !9
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef @.str.24) #7
  %235 = load ptr, ptr %37, align 8, !tbaa !9
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.25) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %237

237:                                              ; preds = %251, %229
  %238 = load i32, ptr %22, align 4, !tbaa !5
  %239 = load i32, ptr %18, align 4, !tbaa !5
  %240 = icmp ult i32 %238, %239
  br i1 %240, label %241, label %254

241:                                              ; preds = %237
  %242 = load ptr, ptr %37, align 8, !tbaa !9
  %243 = load i32, ptr %22, align 4, !tbaa !5
  %244 = add i32 %243, 1
  %245 = load i32, ptr %22, align 4, !tbaa !5
  %246 = zext i32 %245 to i64
  %247 = getelementptr inbounds float, ptr %184, i64 %246
  %248 = load float, ptr %247, align 4, !tbaa !11
  %249 = fpext float %248 to double
  %250 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.26, i32 noundef %244, double noundef %249) #7
  br label %251

251:                                              ; preds = %241
  %252 = load i32, ptr %22, align 4, !tbaa !5
  %253 = add i32 %252, 1
  store i32 %253, ptr %22, align 4, !tbaa !5
  br label %237, !llvm.loop !17

254:                                              ; preds = %237
  %255 = load ptr, ptr %37, align 8, !tbaa !9
  %256 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef @.str.27) #7
  %257 = load ptr, ptr %37, align 8, !tbaa !9
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %257, ptr noundef @.str.28) #7
  %259 = load ptr, ptr %37, align 8, !tbaa !9
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.29) #7
  %261 = load ptr, ptr %37, align 8, !tbaa !9
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef @.str.30) #7
  %263 = load ptr, ptr %37, align 8, !tbaa !9
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.31) #7
  %265 = load ptr, ptr %37, align 8, !tbaa !9
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.32) #7
  %267 = load ptr, ptr %37, align 8, !tbaa !9
  %268 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %267, ptr noundef @.str.33) #7
  %269 = load ptr, ptr %37, align 8, !tbaa !9
  %270 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %269, ptr noundef @.str.34) #7
  %271 = load ptr, ptr %37, align 8, !tbaa !9
  %272 = load i32, ptr %23, align 4, !tbaa !5
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %271, ptr noundef @.str.35, i32 noundef %272) #7
  %274 = load ptr, ptr %37, align 8, !tbaa !9
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %274, ptr noundef @.str.36) #7
  %276 = load ptr, ptr %37, align 8, !tbaa !9
  %277 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %276, ptr noundef @.str.37) #7
  %278 = load ptr, ptr %37, align 8, !tbaa !9
  %279 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %278, ptr noundef @.str.31) #7
  %280 = load ptr, ptr %37, align 8, !tbaa !9
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.38) #7
  %282 = load ptr, ptr %37, align 8, !tbaa !9
  %283 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %282, ptr noundef @.str.39) #7
  %284 = load ptr, ptr %37, align 8, !tbaa !9
  %285 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %284, ptr noundef @.str.40) #7
  %286 = load ptr, ptr %37, align 8, !tbaa !9
  %287 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %286, ptr noundef @.str.41) #7
  %288 = load ptr, ptr %37, align 8, !tbaa !9
  %289 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %288, ptr noundef @.str.42) #7
  %290 = load ptr, ptr %37, align 8, !tbaa !9
  %291 = call i32 @fclose(ptr noundef %290)
  %292 = call i32 (ptr, ...) @printf(ptr noundef @.str.43, ptr noundef @.str.16)
  %293 = load ptr, ptr %29, align 8, !tbaa !9
  %294 = call i32 @symstreamcf_destroy(ptr noundef %293)
  %295 = load ptr, ptr %32, align 8, !tbaa !9
  %296 = call i32 @spgramcf_destroy(ptr noundef %295)
  %297 = load ptr, ptr %30, align 8, !tbaa !9
  %298 = call i32 @channel_cccf_destroy(ptr noundef %297)
  %299 = load ptr, ptr %31, align 8, !tbaa !9
  %300 = call i32 @symtrack_cccf_destroy(ptr noundef %299)
  %301 = load ptr, ptr %28, align 8, !tbaa !9
  %302 = call i32 @windowcf_destroy(ptr noundef %301)
  %303 = call i32 (ptr, ...) @printf(ptr noundef @.str.44)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  %304 = load ptr, ptr %24, align 8
  call void @llvm.stackrestore.p0(ptr %304)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %305

305:                                              ; preds = %254, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %306 = load i32, ptr %3, align 4
  ret i32 %306
}

; 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

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

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

declare ptr @windowcf_create(i32 noundef) #1

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

declare ptr @channel_cccf_create() #1

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

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

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

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

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

declare i32 @symtrack_cccf_print(ptr noundef) #1

declare ptr @spgramcf_create_default(i32 noundef) #1

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

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

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #1

declare i32 @symstreamcf_destroy(ptr noundef) #1

declare i32 @spgramcf_destroy(ptr noundef) #1

declare i32 @channel_cccf_destroy(ptr noundef) #1

declare i32 @symtrack_cccf_destroy(ptr noundef) #1

declare i32 @windowcf_destroy(ptr noundef) #1

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind willreturn }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn nounwind }

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

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


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

@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  br label %.outer

.outer:                                           ; preds = %22, %2
  %.0113.ph = phi float [ %25, %22 ], [ 0x3FB99999A0000000, %2 ]
  %.0111.ph = phi float [ %.0111.ph176, %22 ], [ 3.000000e+01, %2 ]
  %.0109.ph = phi i32 [ %.0109.ph182, %22 ], [ 4000, %2 ]
  %.0107.ph = phi float [ %.0107.ph187, %22 ], [ 0x3FC99999A0000000, %2 ]
  %.0105.ph = phi i32 [ %.0105.ph191, %22 ], [ 7, %2 ]
  %.0102.ph = phi i32 [ %.0102, %22 ], [ 2, %2 ]
  br label %.outer175

.outer175:                                        ; preds = %.outer, %18
  %.0111.ph176 = phi float [ %.0111.ph, %.outer ], [ %21, %18 ]
  %.0109.ph177 = phi i32 [ %.0109.ph, %.outer ], [ %.0109.ph182, %18 ]
  %.0107.ph178 = phi float [ %.0107.ph, %.outer ], [ %.0107.ph187, %18 ]
  %.0105.ph179 = phi i32 [ %.0105.ph, %.outer ], [ %.0105.ph191, %18 ]
  %.0102.ph180 = phi i32 [ %.0102.ph, %.outer ], [ %.0102, %18 ]
  br label %.outer181

.outer181:                                        ; preds = %.outer175, %26
  %.0109.ph182 = phi i32 [ %.0109.ph177, %.outer175 ], [ %28, %26 ]
  %.0107.ph183 = phi float [ %.0107.ph178, %.outer175 ], [ %.0107.ph187, %26 ]
  %.0105.ph184 = phi i32 [ %.0105.ph179, %.outer175 ], [ %.0105.ph191, %26 ]
  %.0102.ph185 = phi i32 [ %.0102.ph180, %.outer175 ], [ %.0102, %26 ]
  br label %.outer186

.outer186:                                        ; preds = %.outer181, %14
  %.0107.ph187 = phi float [ %.0107.ph183, %.outer181 ], [ %17, %14 ]
  %.0105.ph188 = phi i32 [ %.0105.ph184, %.outer181 ], [ %.0105.ph191, %14 ]
  %.0102.ph189 = phi i32 [ %.0102.ph185, %.outer181 ], [ %.0102, %14 ]
  br label %.outer190

.outer190:                                        ; preds = %.outer186, %11
  %.0105.ph191 = phi i32 [ %.0105.ph188, %.outer186 ], [ %13, %11 ]
  %.0102.ph192 = phi i32 [ %.0102.ph189, %.outer186 ], [ %.0102, %11 ]
  br label %5

5:                                                ; preds = %.outer190, %8
  %.0102 = phi i32 [ %10, %8 ], [ %.0102.ph192, %.outer190 ]
  %6 = tail call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.8) #8
  switch i32 %6, label %29 [
    i32 -1, label %30
    i32 104, label %7
    i32 107, label %8
    i32 109, label %11
    i32 98, label %14
    i32 115, label %18
    i32 119, label %22
    i32 110, label %26
  ]

7:                                                ; preds = %5
  tail call void @usage()
  br label %138

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

11:                                               ; preds = %5
  %12 = load ptr, ptr @optarg, align 8, !tbaa !5
  %13 = tail call i32 @atoi(ptr nocapture noundef %12) #9
  br label %.outer190, !llvm.loop !9

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

18:                                               ; preds = %5
  %19 = load ptr, ptr @optarg, align 8, !tbaa !5
  %20 = tail call double @atof(ptr noundef %19) #9
  %21 = fptrunc double %20 to float
  br label %.outer175, !llvm.loop !9

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

26:                                               ; preds = %5
  %27 = load ptr, ptr @optarg, align 8, !tbaa !5
  %28 = tail call i32 @atoi(ptr nocapture noundef %27) #9
  br label %.outer181, !llvm.loop !9

29:                                               ; preds = %5
  tail call void @exit(i32 noundef 1) #10
  unreachable

30:                                               ; preds = %5
  %31 = icmp ult i32 %.0102, 2
  br i1 %31, label %32, label %35

32:                                               ; preds = %30
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.9) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

35:                                               ; preds = %30
  %36 = icmp eq i32 %.0105.ph191, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %35
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.10) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

40:                                               ; preds = %35
  %41 = fcmp ole float %.0107.ph187, 0.000000e+00
  %42 = fcmp ogt float %.0107.ph187, 1.000000e+00
  %or.cond = or i1 %41, %42
  br i1 %or.cond, label %43, label %46

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.11) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

46:                                               ; preds = %40
  %47 = fcmp ugt float %.0113.ph, 0.000000e+00
  br i1 %47, label %51, label %48

48:                                               ; preds = %46
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.12) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

51:                                               ; preds = %46
  %52 = icmp eq i32 %.0109.ph182, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %51
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.13) #11
  tail call void @exit(i32 noundef 1) #10
  unreachable

56:                                               ; preds = %51
  %57 = tail call ptr @llvm.stacksave.p0()
  %58 = alloca [800 x { float, float }], align 16
  %59 = alloca [800 x { float, float }], align 16
  %60 = alloca [800 x { float, float }], align 16
  %61 = tail call ptr @windowcf_create(i32 noundef 800) #8
  %62 = tail call ptr @symstreamcf_create_linear(i32 noundef 7, i32 noundef %.0102, i32 noundef %.0105.ph191, float noundef %.0107.ph187, i32 noundef 27) #8
  %63 = tail call ptr @channel_cccf_create() #8
  %64 = tail call i32 @channel_cccf_add_awgn(ptr noundef %63, float noundef -6.000000e+01, float noundef %.0111.ph176) #8
  %65 = tail call i32 @channel_cccf_add_carrier_offset(ptr noundef %63, float noundef 0x3F947AE140000000, float noundef 0x4000CCCCC0000000) #8
  %66 = tail call i32 @channel_cccf_add_multipath(ptr noundef %63, ptr noundef null, i32 noundef 4) #8
  %67 = tail call ptr @symtrack_cccf_create(i32 noundef 7, i32 noundef %.0102, i32 noundef %.0105.ph191, float noundef %.0107.ph187, i32 noundef 27) #8
  %68 = tail call i32 @symtrack_cccf_set_bandwidth(ptr noundef %67, float noundef %.0113.ph) #8
  %69 = tail call i32 @symtrack_cccf_print(ptr noundef %67) #8
  %70 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #8
  br label %71

71:                                               ; preds = %56, %71
  %.0103130 = phi i32 [ 0, %56 ], [ %77, %71 ]
  %.0104129 = phi i32 [ 0, %56 ], [ %79, %71 ]
  %72 = call i32 @symstreamcf_write_samples(ptr noundef %62, ptr noundef nonnull %58, i32 noundef 800) #8
  %73 = call i32 @channel_cccf_execute_block(ptr noundef %63, ptr noundef nonnull %58, i32 noundef 800, ptr noundef nonnull %59) #8
  %74 = call i32 @spgramcf_write(ptr noundef %70, ptr noundef nonnull %59, i32 noundef 800) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %75 = call i32 @symtrack_cccf_execute_block(ptr noundef %67, ptr noundef nonnull %59, i32 noundef 800, ptr noundef nonnull %60, ptr noundef nonnull %3) #8
  %76 = load i32, ptr %3, align 4, !tbaa !11
  %77 = add i32 %76, %.0103130
  %78 = call i32 @windowcf_write(ptr noundef %61, ptr noundef nonnull %60, i32 noundef %76) #8
  %79 = add nuw nsw i32 %.0104129, 800
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %80 = icmp ult i32 %.0104129, 199200
  br i1 %80, label %71, label %81, !llvm.loop !13

81:                                               ; preds = %71
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i32 noundef 200000)
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %77)
  %84 = alloca [2400 x float], align 16
  %85 = call i32 @spgramcf_get_psd(ptr noundef %70, ptr noundef nonnull %84) #8
  %86 = call noalias ptr @fopen(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.17)
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.16) #8
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.19) #8
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %90 = call i32 @windowcf_read(ptr noundef %61, ptr noundef nonnull %4) #8
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.21, i32 noundef 800) #8
  br label %92

92:                                               ; preds = %81, %92
  %indvars.iv = phi i64 [ 0, %81 ], [ %indvars.iv.next, %92 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds { float, float }, ptr %93, i64 %indvars.iv
  %95 = load float, ptr %94, align 4
  %96 = getelementptr inbounds i8, ptr %94, i64 4
  %97 = fpext float %95 to double
  %98 = load float, ptr %96, align 4
  %99 = fpext float %98 to double
  %100 = trunc nuw nsw i64 %indvars.iv.next to i32
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.22, i32 noundef %100, double noundef %97, double noundef %99) #8
  %exitcond.not = icmp eq i64 %indvars.iv.next, 800
  br i1 %exitcond.not, label %102, label %92, !llvm.loop !14

102:                                              ; preds = %92
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.23, i32 noundef 2400) #8
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.24) #8
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.25) #8
  br label %106

106:                                              ; preds = %102, %106
  %indvars.iv147 = phi i64 [ 0, %102 ], [ %indvars.iv.next148, %106 ]
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %107 = getelementptr inbounds float, ptr %84, i64 %indvars.iv147
  %108 = load float, ptr %107, align 4, !tbaa !15
  %109 = fpext float %108 to double
  %110 = trunc nuw nsw i64 %indvars.iv.next148 to i32
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.26, i32 noundef %110, double noundef %109) #8
  %exitcond150.not = icmp eq i64 %indvars.iv.next148, 2400
  br i1 %exitcond150.not, label %112, label %106, !llvm.loop !17

112:                                              ; preds = %106
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.27) #8
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.28) #8
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.29) #8
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.30) #8
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.31) #8
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.32) #8
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.33) #8
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.34) #8
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.35, i32 noundef 800) #8
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.36) #8
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.37) #8
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.31) #8
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.38) #8
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.39) #8
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.40) #8
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.41) #8
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.42) #8
  %130 = call i32 @fclose(ptr noundef %86)
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43, ptr noundef nonnull @.str.16)
  %132 = call i32 @symstreamcf_destroy(ptr noundef %62) #8
  %133 = call i32 @spgramcf_destroy(ptr noundef %70) #8
  %134 = call i32 @channel_cccf_destroy(ptr noundef %63) #8
  %135 = call i32 @symtrack_cccf_destroy(ptr noundef %67) #8
  %136 = call i32 @windowcf_destroy(ptr noundef %61) #8
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.stackrestore.p0(ptr %57)
  br label %138

138:                                              ; preds = %112, %7
  ret i32 0
}

; Function Attrs: mustprogress 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) local_unnamed_addr #3

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

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

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

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

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

declare ptr @windowcf_create(i32 noundef) local_unnamed_addr #7

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

declare ptr @channel_cccf_create() local_unnamed_addr #7

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

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

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

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

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

declare i32 @symtrack_cccf_print(ptr noundef) local_unnamed_addr #7

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #7

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

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

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

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

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

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

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

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

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

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

declare i32 @symstreamcf_destroy(ptr noundef) local_unnamed_addr #7

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #7

declare i32 @channel_cccf_destroy(ptr noundef) local_unnamed_addr #7

declare i32 @symtrack_cccf_destroy(ptr noundef) local_unnamed_addr #7

declare i32 @windowcf_destroy(ptr noundef) local_unnamed_addr #7

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

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

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


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