; LLVM IR from jgaeddert/liquid-dsp :: examples (firpfbch2_crcf_reconstruct_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 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 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 [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 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 float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = 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) #6
  store i32 64, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 22, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 5, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 6.000000e+01, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0x3FCD70A3E0000000, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 16384, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = udiv i32 %31, 2
  store i32 %32, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = udiv i32 %33, 2
  store i32 %34, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %35 = load float, ptr %10, align 4, !tbaa !11
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = uitofp i32 %36 to float
  %38 = fmul float %35, %37
  %39 = call float @llvm.round.f32(float %38)
  %40 = fptosi float %39 to i32
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = urem i32 %40, %41
  store i32 %42, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = load float, ptr %9, align 4, !tbaa !11
  %46 = call ptr @firpfbch2_crcf_create_kaiser(i32 noundef 0, i32 noundef %43, i32 noundef %44, float noundef %45)
  store ptr %46, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = load float, ptr %9, align 4, !tbaa !11
  %50 = call ptr @firpfbch2_crcf_create_kaiser(i32 noundef 1, i32 noundef %47, i32 noundef %48, float noundef %49)
  store ptr %50, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %51 = call ptr @msourcecf_create_default()
  store ptr %51, ptr %18, align 8, !tbaa !9
  %52 = load ptr, ptr %18, align 8, !tbaa !9
  %53 = call i32 @msourcecf_add_noise(ptr noundef %52, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -6.000000e+01)
  %54 = load ptr, ptr %18, align 8, !tbaa !9
  %55 = call i32 @msourcecf_add_noise(ptr noundef %54, float noundef 0xBFD3333340000000, float noundef 0x3FB99999A0000000, float noundef -2.000000e+01)
  %56 = load ptr, ptr %18, align 8, !tbaa !9
  %57 = call i32 @msourcecf_add_tone(ptr noundef %56, float noundef 0x3FB47AE140000000, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %58 = load ptr, ptr %18, align 8, !tbaa !9
  %59 = call i32 @msourcecf_add_modem(ptr noundef %58, float noundef 0x3FC70A3D80000000, float noundef 0x3FB47AE140000000, float noundef -2.000000e+01, i32 noundef 40, i32 noundef 12, float noundef 0x3FD3333340000000)
  %60 = load ptr, ptr %18, align 8, !tbaa !9
  %61 = call i32 @msourcecf_add_tone(ptr noundef %60, float noundef 0x3FCEB851E0000000, float noundef 0.000000e+00, float noundef -4.000000e+01)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 2400, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %62 = load i32, ptr %19, align 4, !tbaa !5
  %63 = call ptr @spgramcf_create_default(i32 noundef %62)
  store ptr %63, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %64 = load i32, ptr %19, align 4, !tbaa !5
  %65 = call ptr @spgramcf_create_default(i32 noundef %64)
  store ptr %65, ptr %21, align 8, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = call ptr @llvm.stacksave.p0()
  store ptr %68, ptr %22, align 8
  %69 = alloca { float, float }, i64 %67, align 16
  store i64 %67, ptr %23, align 8
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = zext i32 %70 to i64
  %72 = alloca { float, float }, i64 %71, align 16
  store i64 %71, ptr %24, align 8
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = zext i32 %73 to i64
  %75 = alloca { float, float }, i64 %74, align 16
  store i64 %74, ptr %25, align 8
  %76 = load i32, ptr %13, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = alloca { float, float }, i64 %77, align 16
  store i64 %77, ptr %26, align 8
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %131, %2
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %82 = icmp ult i32 %80, %81
  br i1 %82, label %83, label %134

83:                                               ; preds = %79
  %84 = load ptr, ptr %18, align 8, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = call i32 @msourcecf_write_samples(ptr noundef %84, ptr noundef %69, i32 noundef %85)
  %87 = load ptr, ptr %16, align 8, !tbaa !9
  %88 = call i32 @firpfbch2_crcf_execute(ptr noundef %87, ptr noundef %69, ptr noundef %72)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %119, %83
  %90 = load i32, ptr %27, align 4, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = icmp ult i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %122

94:                                               ; preds = %89
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = load i32, ptr %14, align 4, !tbaa !5
  %97 = add i32 %95, %96
  %98 = load i32, ptr %27, align 4, !tbaa !5
  %99 = add i32 %97, %98
  %100 = load i32, ptr %13, align 4, !tbaa !5
  %101 = sub i32 %99, %100
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = urem i32 %101, %102
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds { float, float }, ptr %72, i64 %104
  %106 = getelementptr inbounds { float, float }, ptr %105, i32 0, i32 0
  %107 = load float, ptr %106, align 8
  %108 = getelementptr inbounds { float, float }, ptr %105, i32 0, i32 1
  %109 = load float, ptr %108, align 4
  %110 = load i32, ptr %27, align 4, !tbaa !5
  %111 = load i32, ptr %13, align 4, !tbaa !5
  %112 = add i32 %110, %111
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = urem i32 %112, %113
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds { float, float }, ptr %75, i64 %115
  %117 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds { float, float }, ptr %116, i32 0, i32 1
  store float %107, ptr %117, align 8
  store float %109, ptr %118, align 4
  br label %119

119:                                              ; preds = %94
  %120 = load i32, ptr %27, align 4, !tbaa !5
  %121 = add i32 %120, 1
  store i32 %121, ptr %27, align 4, !tbaa !5
  br label %89, !llvm.loop !13

122:                                              ; preds = %93
  %123 = load ptr, ptr %17, align 8, !tbaa !9
  %124 = call i32 @firpfbch2_crcf_execute(ptr noundef %123, ptr noundef %75, ptr noundef %78)
  %125 = load ptr, ptr %20, align 8, !tbaa !9
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = call i32 @spgramcf_write(ptr noundef %125, ptr noundef %69, i32 noundef %126)
  %128 = load ptr, ptr %21, align 8, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = call i32 @spgramcf_write(ptr noundef %128, ptr noundef %78, i32 noundef %129)
  br label %131

131:                                              ; preds = %122
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = add i32 %132, 1
  store i32 %133, ptr %15, align 4, !tbaa !5
  br label %79, !llvm.loop !15

134:                                              ; preds = %79
  %135 = load ptr, ptr %20, align 8, !tbaa !9
  %136 = call i32 @spgramcf_print(ptr noundef %135)
  %137 = load ptr, ptr %21, align 8, !tbaa !9
  %138 = call i32 @spgramcf_print(ptr noundef %137)
  %139 = load i32, ptr %19, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  %141 = alloca float, i64 %140, align 16
  store i64 %140, ptr %28, align 8
  %142 = load i32, ptr %19, align 4, !tbaa !5
  %143 = zext i32 %142 to i64
  %144 = alloca float, i64 %143, align 16
  store i64 %143, ptr %29, align 8
  %145 = load ptr, ptr %20, align 8, !tbaa !9
  %146 = call i32 @spgramcf_get_psd(ptr noundef %145, ptr noundef %141)
  %147 = load ptr, ptr %21, align 8, !tbaa !9
  %148 = call i32 @spgramcf_get_psd(ptr noundef %147, ptr noundef %144)
  %149 = load ptr, ptr %16, align 8, !tbaa !9
  %150 = call i32 @firpfbch2_crcf_destroy(ptr noundef %149)
  %151 = load ptr, ptr %17, align 8, !tbaa !9
  %152 = call i32 @firpfbch2_crcf_destroy(ptr noundef %151)
  %153 = load ptr, ptr %18, align 8, !tbaa !9
  %154 = call i32 @msourcecf_destroy(ptr noundef %153)
  %155 = load ptr, ptr %20, align 8, !tbaa !9
  %156 = call i32 @spgramcf_destroy(ptr noundef %155)
  %157 = load ptr, ptr %21, align 8, !tbaa !9
  %158 = call i32 @spgramcf_destroy(ptr noundef %157)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %159 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %159, ptr %30, align 8, !tbaa !9
  %160 = load ptr, ptr %30, align 8, !tbaa !9
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.2, ptr noundef @.str) #6
  %162 = load ptr, ptr %30, align 8, !tbaa !9
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.3) #6
  %164 = load ptr, ptr %30, align 8, !tbaa !9
  %165 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef @.str.4) #6
  %166 = load ptr, ptr %30, align 8, !tbaa !9
  %167 = load i32, ptr %19, align 4, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.5, i32 noundef %167) #6
  %169 = load ptr, ptr %30, align 8, !tbaa !9
  %170 = load i32, ptr %6, align 4, !tbaa !5
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.6, i32 noundef %170) #6
  %172 = load ptr, ptr %30, align 8, !tbaa !9
  %173 = load i32, ptr %7, align 4, !tbaa !5
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.7, i32 noundef %173) #6
  %175 = load ptr, ptr %30, align 8, !tbaa !9
  %176 = load i32, ptr %8, align 4, !tbaa !5
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.8, i32 noundef %176) #6
  %178 = load ptr, ptr %30, align 8, !tbaa !9
  %179 = load i32, ptr %14, align 4, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.9, i32 noundef %179) #6
  %181 = load ptr, ptr %30, align 8, !tbaa !9
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.10) #6
  %183 = load ptr, ptr %30, align 8, !tbaa !9
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.11) #6
  %185 = load ptr, ptr %30, align 8, !tbaa !9
  %186 = load i32, ptr %14, align 4, !tbaa !5
  %187 = load i32, ptr %6, align 4, !tbaa !5
  %188 = udiv i32 %187, 2
  %189 = icmp ult i32 %186, %188
  br i1 %189, label %190, label %192

190:                                              ; preds = %134
  %191 = load i32, ptr %14, align 4, !tbaa !5
  br label %196

192:                                              ; preds = %134
  %193 = load i32, ptr %14, align 4, !tbaa !5
  %194 = load i32, ptr %6, align 4, !tbaa !5
  %195 = sub nsw i32 %193, %194
  br label %196

196:                                              ; preds = %192, %190
  %197 = phi i32 [ %191, %190 ], [ %195, %192 ]
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.12, i32 noundef %197) #6
  %199 = load ptr, ptr %30, align 8, !tbaa !9
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.13) #6
  %201 = load ptr, ptr %30, align 8, !tbaa !9
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.14) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %226, %196
  %204 = load i32, ptr %15, align 4, !tbaa !5
  %205 = load i32, ptr %19, align 4, !tbaa !5
  %206 = icmp ult i32 %204, %205
  br i1 %206, label %207, label %229

207:                                              ; preds = %203
  %208 = load ptr, ptr %30, align 8, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !5
  %210 = add i32 %209, 1
  %211 = load i32, ptr %15, align 4, !tbaa !5
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds float, ptr %141, i64 %212
  %214 = load float, ptr %213, align 4, !tbaa !11
  %215 = fpext float %214 to double
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.15, i32 noundef %210, double noundef %215) #6
  %217 = load ptr, ptr %30, align 8, !tbaa !9
  %218 = load i32, ptr %15, align 4, !tbaa !5
  %219 = add i32 %218, 1
  %220 = load i32, ptr %15, align 4, !tbaa !5
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds float, ptr %144, i64 %221
  %223 = load float, ptr %222, align 4, !tbaa !11
  %224 = fpext float %223 to double
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.16, i32 noundef %219, double noundef %224) #6
  br label %226

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

229:                                              ; preds = %203
  %230 = load ptr, ptr %30, align 8, !tbaa !9
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.17) #6
  %232 = load ptr, ptr %30, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.18) #6
  %234 = load ptr, ptr %30, align 8, !tbaa !9
  %235 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.19) #6
  %236 = load ptr, ptr %30, align 8, !tbaa !9
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %236, ptr noundef @.str.20) #6
  %238 = load ptr, ptr %30, align 8, !tbaa !9
  %239 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %238, ptr noundef @.str.21) #6
  %240 = load ptr, ptr %30, align 8, !tbaa !9
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.22) #6
  %242 = load ptr, ptr %30, align 8, !tbaa !9
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.23) #6
  %244 = load ptr, ptr %30, align 8, !tbaa !9
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %244, ptr noundef @.str.24) #6
  %246 = load ptr, ptr %30, align 8, !tbaa !9
  %247 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.25) #6
  %248 = load ptr, ptr %30, align 8, !tbaa !9
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.26) #6
  %250 = load ptr, ptr %30, align 8, !tbaa !9
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.27) #6
  %252 = load ptr, ptr %30, align 8, !tbaa !9
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.23) #6
  %254 = load ptr, ptr %30, align 8, !tbaa !9
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %254, ptr noundef @.str.24) #6
  %256 = load ptr, ptr %30, align 8, !tbaa !9
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.25) #6
  %258 = load ptr, ptr %30, align 8, !tbaa !9
  %259 = call i32 @fclose(ptr noundef %258)
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, ptr noundef @.str)
  %261 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  store i32 0, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  %262 = load ptr, ptr %22, align 8
  call void @llvm.stackrestore.p0(ptr %262)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %263 = load i32, ptr %3, align 4
  ret i32 %263
}

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

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

declare ptr @firpfbch2_crcf_create_kaiser(i32 noundef, i32 noundef, i32 noundef, float noundef) #3

declare ptr @msourcecf_create_default() #3

declare i32 @msourcecf_add_noise(ptr noundef, float noundef, float noundef, float noundef) #3

declare i32 @msourcecf_add_tone(ptr noundef, float noundef, float noundef, float noundef) #3

declare i32 @msourcecf_add_modem(ptr noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef) #3

declare ptr @spgramcf_create_default(i32 noundef) #3

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

declare i32 @msourcecf_write_samples(ptr noundef, ptr noundef, i32 noundef) #3

declare i32 @firpfbch2_crcf_execute(ptr noundef, ptr noundef, ptr noundef) #3

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

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

declare i32 @spgramcf_print(ptr noundef) #3

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

declare i32 @firpfbch2_crcf_destroy(ptr noundef) #3

declare i32 @msourcecf_destroy(ptr noundef) #3

declare i32 @spgramcf_destroy(ptr noundef) #3

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

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

declare i32 @fclose(ptr noundef) #3

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { 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 = { 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}


; 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 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 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 [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call ptr @firpfbch2_crcf_create_kaiser(i32 noundef 0, i32 noundef 64, i32 noundef 5, float noundef 6.000000e+01) #3
  %4 = tail call ptr @firpfbch2_crcf_create_kaiser(i32 noundef 1, i32 noundef 22, i32 noundef 5, float noundef 6.000000e+01) #3
  %5 = tail call ptr @msourcecf_create_default() #3
  %6 = tail call i32 @msourcecf_add_noise(ptr noundef %5, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef -6.000000e+01) #3
  %7 = tail call i32 @msourcecf_add_noise(ptr noundef %5, float noundef 0xBFD3333340000000, float noundef 0x3FB99999A0000000, float noundef -2.000000e+01) #3
  %8 = tail call i32 @msourcecf_add_tone(ptr noundef %5, float noundef 0x3FB47AE140000000, float noundef 0.000000e+00, float noundef 0.000000e+00) #3
  %9 = tail call i32 @msourcecf_add_modem(ptr noundef %5, float noundef 0x3FC70A3D80000000, float noundef 0x3FB47AE140000000, float noundef -2.000000e+01, i32 noundef 40, i32 noundef 12, float noundef 0x3FD3333340000000) #3
  %10 = tail call i32 @msourcecf_add_tone(ptr noundef %5, float noundef 0x3FCEB851E0000000, float noundef 0.000000e+00, float noundef -4.000000e+01) #3
  %11 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #3
  %12 = tail call ptr @spgramcf_create_default(i32 noundef 2400) #3
  %13 = alloca [32 x { float, float }], align 16
  %14 = alloca [64 x { float, float }], align 16
  %15 = alloca [22 x { float, float }], align 16
  %16 = alloca [11 x { float, float }], align 16
  %17 = getelementptr inbounds i8, ptr %14, i64 32
  %18 = getelementptr inbounds i8, ptr %14, i64 40
  %19 = getelementptr inbounds i8, ptr %15, i64 96
  %20 = getelementptr inbounds i8, ptr %14, i64 56
  %21 = getelementptr inbounds i8, ptr %15, i64 112
  %22 = getelementptr inbounds i8, ptr %14, i64 72
  %23 = getelementptr inbounds i8, ptr %15, i64 128
  %24 = getelementptr inbounds i8, ptr %14, i64 88
  %25 = getelementptr inbounds i8, ptr %15, i64 144
  %26 = getelementptr inbounds i8, ptr %14, i64 104
  %27 = getelementptr inbounds i8, ptr %15, i64 160
  %28 = getelementptr inbounds i8, ptr %14, i64 120
  %29 = getelementptr inbounds i8, ptr %14, i64 136
  %30 = getelementptr inbounds i8, ptr %15, i64 16
  %31 = getelementptr inbounds i8, ptr %14, i64 152
  %32 = getelementptr inbounds i8, ptr %15, i64 32
  %33 = getelementptr inbounds i8, ptr %14, i64 168
  %34 = getelementptr inbounds i8, ptr %15, i64 48
  %35 = getelementptr inbounds i8, ptr %14, i64 184
  %36 = getelementptr inbounds i8, ptr %15, i64 64
  %37 = getelementptr inbounds i8, ptr %14, i64 200
  %38 = getelementptr inbounds i8, ptr %15, i64 80
  br label %39

39:                                               ; preds = %2, %39
  %.0105 = phi i32 [ 0, %2 ], [ %58, %39 ]
  %40 = call i32 @msourcecf_write_samples(ptr noundef %5, ptr noundef nonnull %13, i32 noundef 32) #3
  %41 = call i32 @firpfbch2_crcf_execute(ptr noundef %3, ptr noundef nonnull %13, ptr noundef nonnull %14) #3
  %42 = load <4 x float>, ptr %17, align 16
  %43 = load <4 x float>, ptr %18, align 8
  store <4 x float> %43, ptr %19, align 16
  %44 = load <4 x float>, ptr %20, align 8
  store <4 x float> %44, ptr %21, align 16
  %45 = load <4 x float>, ptr %22, align 8
  store <4 x float> %45, ptr %23, align 16
  %46 = load <4 x float>, ptr %24, align 8
  store <4 x float> %46, ptr %25, align 16
  %47 = load <4 x float>, ptr %26, align 8
  store <4 x float> %47, ptr %27, align 16
  %48 = load <4 x float>, ptr %28, align 8
  store <4 x float> %48, ptr %15, align 16
  %49 = load <4 x float>, ptr %29, align 8
  store <4 x float> %49, ptr %30, align 16
  %50 = load <4 x float>, ptr %31, align 8
  store <4 x float> %50, ptr %32, align 16
  %51 = load <4 x float>, ptr %33, align 8
  store <4 x float> %51, ptr %34, align 16
  %52 = load <4 x float>, ptr %35, align 8
  store <4 x float> %52, ptr %36, align 16
  %53 = load <4 x float>, ptr %37, align 8
  %54 = shufflevector <4 x float> %53, <4 x float> %42, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
  store <4 x float> %54, ptr %38, align 16
  %55 = call i32 @firpfbch2_crcf_execute(ptr noundef %4, ptr noundef nonnull %15, ptr noundef nonnull %16) #3
  %56 = call i32 @spgramcf_write(ptr noundef %11, ptr noundef nonnull %13, i32 noundef 32) #3
  %57 = call i32 @spgramcf_write(ptr noundef %12, ptr noundef nonnull %16, i32 noundef 11) #3
  %58 = add nuw nsw i32 %.0105, 1
  %exitcond.not = icmp eq i32 %58, 16384
  br i1 %exitcond.not, label %59, label %39, !llvm.loop !5

59:                                               ; preds = %39
  %60 = call i32 @spgramcf_print(ptr noundef %11) #3
  %61 = call i32 @spgramcf_print(ptr noundef %12) #3
  %62 = alloca [2400 x float], align 16
  %63 = alloca [2400 x float], align 16
  %64 = call i32 @spgramcf_get_psd(ptr noundef %11, ptr noundef nonnull %62) #3
  %65 = call i32 @spgramcf_get_psd(ptr noundef %12, ptr noundef nonnull %63) #3
  %66 = call i32 @firpfbch2_crcf_destroy(ptr noundef %3) #3
  %67 = call i32 @firpfbch2_crcf_destroy(ptr noundef %4) #3
  %68 = call i32 @msourcecf_destroy(ptr noundef %5) #3
  %69 = call i32 @spgramcf_destroy(ptr noundef %11) #3
  %70 = call i32 @spgramcf_destroy(ptr noundef %12) #3
  %71 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #3
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.3) #3
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.4) #3
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.5, i32 noundef 2400) #3
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.6, i32 noundef 64) #3
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.7, i32 noundef 22) #3
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.8, i32 noundef 5) #3
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.9, i32 noundef 15) #3
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.10) #3
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.11) #3
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.12, i32 noundef 15) #3
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.13) #3
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.14) #3
  br label %85

85:                                               ; preds = %59, %85
  %indvars.iv = phi i64 [ 0, %59 ], [ %indvars.iv.next, %85 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = getelementptr inbounds float, ptr %62, i64 %indvars.iv
  %87 = load float, ptr %86, align 4, !tbaa !7
  %88 = fpext float %87 to double
  %89 = trunc nuw nsw i64 %indvars.iv.next to i32
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.15, i32 noundef %89, double noundef %88) #3
  %91 = getelementptr inbounds float, ptr %63, i64 %indvars.iv
  %92 = load float, ptr %91, align 4, !tbaa !7
  %93 = fpext float %92 to double
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.16, i32 noundef %89, double noundef %93) #3
  %exitcond109.not = icmp eq i64 %indvars.iv.next, 2400
  br i1 %exitcond109.not, label %95, label %85, !llvm.loop !11

95:                                               ; preds = %85
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.17) #3
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.18) #3
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.19) #3
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.20) #3
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.21) #3
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.22) #3
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.23) #3
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.24) #3
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.25) #3
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.26) #3
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.27) #3
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.23) #3
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.24) #3
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.25) #3
  %110 = call i32 @fclose(ptr noundef %71)
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, ptr noundef nonnull @.str)
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  ret i32 0
}

declare ptr @firpfbch2_crcf_create_kaiser(i32 noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #1

declare ptr @msourcecf_create_default() local_unnamed_addr #1

declare i32 @msourcecf_add_noise(ptr noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

declare i32 @msourcecf_add_tone(ptr noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

declare i32 @msourcecf_add_modem(ptr noundef, float noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #1

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #1

declare i32 @msourcecf_write_samples(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @firpfbch2_crcf_execute(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @spgramcf_print(ptr noundef) local_unnamed_addr #1

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

declare i32 @firpfbch2_crcf_destroy(ptr noundef) local_unnamed_addr #1

declare i32 @msourcecf_destroy(ptr noundef) local_unnamed_addr #1

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #1

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

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

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

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

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 = { 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 #3 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass