; LLVM IR from jgaeddert/liquid-dsp :: examples (gmsk_eqlms_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 [21 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 [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 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 float, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca { float, float }, align 4
  %20 = alloca i32, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca { float, float }, align 4
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, 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) #5
  store i32 4, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 0x3FD3333340000000, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store float 0x3FB47AE140000000, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 2400, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1200, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = load float, ptr %7, align 4, !tbaa !11
  %29 = call ptr @gmskmod_create(i32 noundef %27, i32 noundef 3, float noundef %28)
  store ptr %29, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = load i32, ptr %8, align 4, !tbaa !5
  %32 = load float, ptr %7, align 4, !tbaa !11
  %33 = call ptr @eqlms_cccf_create_rnyquist(i32 noundef 12, i32 noundef %30, i32 noundef %31, float noundef %32, float noundef 0.000000e+00)
  store ptr %33, ptr %13, align 8, !tbaa !9
  %34 = load ptr, ptr %13, align 8, !tbaa !9
  %35 = load float, ptr %9, align 4, !tbaa !11
  %36 = call i32 @eqlms_cccf_set_bw(ptr noundef %34, float noundef %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %37 = load i32, ptr %11, align 4, !tbaa !5
  %38 = call ptr @spgramcf_create_default(i32 noundef %37)
  store ptr %38, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %39 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %39, ptr %15, align 8, !tbaa !9
  %40 = load ptr, ptr %15, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.2, ptr noundef @.str) #5
  %42 = load ptr, ptr %15, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.3) #5
  %44 = load ptr, ptr %15, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.4) #5
  %46 = load ptr, ptr %15, align 8, !tbaa !9
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.5, i32 noundef %47) #5
  %49 = load ptr, ptr %15, align 8, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.6, i32 noundef %50) #5
  %52 = load ptr, ptr %15, align 8, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.7, i32 noundef %53) #5
  %55 = load ptr, ptr %15, align 8, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.8) #5
  %57 = load ptr, ptr %15, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.9) #5
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = zext i32 %59 to i64
  %61 = call ptr @llvm.stacksave.p0()
  store ptr %61, ptr %16, align 8
  %62 = alloca { float, float }, i64 %60, align 16
  store i64 %60, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %143, %2
  %64 = load i32, ptr %18, align 4, !tbaa !5
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %67, label %146

67:                                               ; preds = %63
  %68 = load ptr, ptr %12, align 8, !tbaa !9
  %69 = call i32 @rand() #5
  %70 = and i32 %69, 1
  %71 = call i32 @gmskmod_modulate(ptr noundef %68, i32 noundef %70, ptr noundef %62)
  %72 = load ptr, ptr %13, align 8, !tbaa !9
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = call i32 @eqlms_cccf_push_block(ptr noundef %72, ptr noundef %62, i32 noundef %73)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %75 = load ptr, ptr %13, align 8, !tbaa !9
  %76 = call i32 @eqlms_cccf_execute(ptr noundef %75, ptr noundef %19)
  %77 = load ptr, ptr %14, align 8, !tbaa !9
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = call i32 @spgramcf_write(ptr noundef %77, ptr noundef %62, i32 noundef %78)
  %80 = load ptr, ptr %15, align 8, !tbaa !9
  %81 = load i32, ptr %18, align 4, !tbaa !5
  %82 = add i32 %81, 1
  %83 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %84 = load float, ptr %83, align 4
  %85 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %86 = load float, ptr %85, align 4
  %87 = fpext float %84 to double
  %88 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %89 = load float, ptr %88, align 4
  %90 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %91 = load float, ptr %90, align 4
  %92 = fpext float %91 to double
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.10, i32 noundef %82, double noundef %87, double noundef %92) #5
  %94 = load i32, ptr %18, align 4, !tbaa !5
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = icmp ult i32 %94, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %67
  store i32 4, ptr %20, align 4
  br label %140

98:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %99 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %100 = load float, ptr %99, align 4
  %101 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %102 = load float, ptr %101, align 4
  %103 = fcmp ogt float %100, 0.000000e+00
  %104 = zext i1 %103 to i64
  %105 = select i1 %103, i32 1, i32 -1
  %106 = sitofp i32 %105 to double
  %107 = fmul double %106, 0x3FE6A09E667F3BCD
  %108 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %109 = load float, ptr %108, align 4
  %110 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  %112 = fcmp ogt float %111, 0.000000e+00
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, i32 1, i32 -1
  %115 = sitofp i32 %114 to double
  %116 = fmul double %115, 0x3FE6A09E667F3BCD
  %117 = fmul double %116, 0.000000e+00
  %118 = fmul double %116, 1.000000e+00
  %119 = fadd double %107, %117
  %120 = fptrunc double %119 to float
  %121 = fptrunc double %118 to float
  %122 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %123 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %120, ptr %122, align 4
  store float %121, ptr %123, align 4
  %124 = load ptr, ptr %13, align 8, !tbaa !9
  %125 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %126 = load float, ptr %125, align 4
  %127 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %128 = load float, ptr %127, align 4
  %129 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 0
  %130 = load float, ptr %129, align 4
  %131 = getelementptr inbounds { float, float }, ptr %19, i32 0, i32 1
  %132 = load float, ptr %131, align 4
  %133 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %134 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  store float %126, ptr %133, align 4
  store float %128, ptr %134, align 4
  %135 = load <2 x float>, ptr %22, align 4
  %136 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 0
  %137 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 1
  store float %130, ptr %136, align 4
  store float %132, ptr %137, align 4
  %138 = load <2 x float>, ptr %23, align 4
  %139 = call i32 @eqlms_cccf_step(ptr noundef %124, <2 x float> noundef %135, <2 x float> noundef %138)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  store i32 0, ptr %20, align 4
  br label %140

140:                                              ; preds = %98, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %141 = load i32, ptr %20, align 4
  switch i32 %141, label %245 [
    i32 0, label %142
    i32 4, label %143
  ]

142:                                              ; preds = %140
  br label %143

143:                                              ; preds = %142, %140
  %144 = load i32, ptr %18, align 4, !tbaa !5
  %145 = add i32 %144, 1
  store i32 %145, ptr %18, align 4, !tbaa !5
  br label %63, !llvm.loop !13

146:                                              ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = mul i32 2, %147
  %149 = load i32, ptr %8, align 4, !tbaa !5
  %150 = mul i32 %148, %149
  %151 = add i32 %150, 1
  store i32 %151, ptr %24, align 4, !tbaa !5
  %152 = load i32, ptr %24, align 4, !tbaa !5
  %153 = zext i32 %152 to i64
  %154 = alloca { float, float }, i64 %153, align 16
  store i64 %153, ptr %25, align 8
  %155 = load ptr, ptr %13, align 8, !tbaa !9
  %156 = call i32 @eqlms_cccf_copy_coefficients(ptr noundef %155, ptr noundef %154)
  %157 = load ptr, ptr %15, align 8, !tbaa !9
  %158 = load i32, ptr %24, align 4, !tbaa !5
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.11, i32 noundef %158) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %185, %146
  %161 = load i32, ptr %18, align 4, !tbaa !5
  %162 = load i32, ptr %24, align 4, !tbaa !5
  %163 = icmp ult i32 %161, %162
  br i1 %163, label %164, label %188

164:                                              ; preds = %160
  %165 = load ptr, ptr %15, align 8, !tbaa !9
  %166 = load i32, ptr %18, align 4, !tbaa !5
  %167 = add i32 %166, 1
  %168 = load i32, ptr %18, align 4, !tbaa !5
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds { float, float }, ptr %154, i64 %169
  %171 = getelementptr inbounds { float, float }, ptr %170, i32 0, i32 0
  %172 = load float, ptr %171, align 8
  %173 = getelementptr inbounds { float, float }, ptr %170, i32 0, i32 1
  %174 = load float, ptr %173, align 4
  %175 = fpext float %172 to double
  %176 = load i32, ptr %18, align 4, !tbaa !5
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds { float, float }, ptr %154, i64 %177
  %179 = getelementptr inbounds { float, float }, ptr %178, i32 0, i32 0
  %180 = load float, ptr %179, align 8
  %181 = getelementptr inbounds { float, float }, ptr %178, i32 0, i32 1
  %182 = load float, ptr %181, align 4
  %183 = fpext float %182 to double
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %165, ptr noundef @.str.12, i32 noundef %167, double noundef %175, double noundef %183) #5
  br label %185

185:                                              ; preds = %164
  %186 = load i32, ptr %18, align 4, !tbaa !5
  %187 = add i32 %186, 1
  store i32 %187, ptr %18, align 4, !tbaa !5
  br label %160, !llvm.loop !15

188:                                              ; preds = %160
  %189 = load i32, ptr %11, align 4, !tbaa !5
  %190 = zext i32 %189 to i64
  %191 = alloca float, i64 %190, align 16
  store i64 %190, ptr %26, align 8
  %192 = load ptr, ptr %14, align 8, !tbaa !9
  %193 = call i32 @spgramcf_get_psd(ptr noundef %192, ptr noundef %191)
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %208, %188
  %195 = load i32, ptr %18, align 4, !tbaa !5
  %196 = load i32, ptr %11, align 4, !tbaa !5
  %197 = icmp ult i32 %195, %196
  br i1 %197, label %198, label %211

198:                                              ; preds = %194
  %199 = load ptr, ptr %15, align 8, !tbaa !9
  %200 = load i32, ptr %18, align 4, !tbaa !5
  %201 = add i32 %200, 1
  %202 = load i32, ptr %18, align 4, !tbaa !5
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds float, ptr %191, i64 %203
  %205 = load float, ptr %204, align 4, !tbaa !11
  %206 = fpext float %205 to double
  %207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.13, i32 noundef %201, double noundef %206) #5
  br label %208

208:                                              ; preds = %198
  %209 = load i32, ptr %18, align 4, !tbaa !5
  %210 = add i32 %209, 1
  store i32 %210, ptr %18, align 4, !tbaa !5
  br label %194, !llvm.loop !16

211:                                              ; preds = %194
  %212 = load ptr, ptr %15, align 8, !tbaa !9
  %213 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.14) #5
  %214 = load ptr, ptr %15, align 8, !tbaa !9
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.15) #5
  %216 = load ptr, ptr %15, align 8, !tbaa !9
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef @.str.16) #5
  %218 = load ptr, ptr %15, align 8, !tbaa !9
  %219 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.17) #5
  %220 = load ptr, ptr %15, align 8, !tbaa !9
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.18) #5
  %222 = load ptr, ptr %15, align 8, !tbaa !9
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %222, ptr noundef @.str.19) #5
  %224 = load ptr, ptr %15, align 8, !tbaa !9
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.15) #5
  %226 = load ptr, ptr %15, align 8, !tbaa !9
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %226, ptr noundef @.str.20) #5
  %228 = load ptr, ptr %15, align 8, !tbaa !9
  %229 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.21) #5
  %230 = load ptr, ptr %15, align 8, !tbaa !9
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.22) #5
  %232 = load ptr, ptr %15, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.23) #5
  %234 = load ptr, ptr %15, align 8, !tbaa !9
  %235 = call i32 @fclose(ptr noundef %234)
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef @.str)
  %237 = load ptr, ptr %12, align 8, !tbaa !9
  %238 = call i32 @gmskmod_destroy(ptr noundef %237)
  %239 = load ptr, ptr %13, align 8, !tbaa !9
  %240 = call i32 @eqlms_cccf_destroy(ptr noundef %239)
  %241 = load ptr, ptr %14, align 8, !tbaa !9
  %242 = call i32 @spgramcf_destroy(ptr noundef %241)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %243 = load ptr, ptr %16, align 8
  call void @llvm.stackrestore.p0(ptr %243)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %244 = load i32, ptr %3, align 4
  ret i32 %244

245:                                              ; preds = %140
  unreachable
}

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

declare ptr @gmskmod_create(i32 noundef, i32 noundef, float noundef) #2

declare ptr @eqlms_cccf_create_rnyquist(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) #2

declare i32 @eqlms_cccf_set_bw(ptr noundef, float noundef) #2

declare ptr @spgramcf_create_default(i32 noundef) #2

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

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

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

declare i32 @gmskmod_modulate(ptr noundef, i32 noundef, ptr noundef) #2

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

declare i32 @eqlms_cccf_push_block(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @eqlms_cccf_execute(ptr noundef, ptr noundef) #2

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

declare i32 @eqlms_cccf_step(ptr noundef, <2 x float> noundef, <2 x float> noundef) #2

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

declare i32 @eqlms_cccf_copy_coefficients(ptr noundef, ptr noundef) #2

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

declare i32 @fclose(ptr noundef) #2

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

declare i32 @gmskmod_destroy(ptr noundef) #2

declare i32 @eqlms_cccf_destroy(ptr noundef) #2

declare i32 @spgramcf_destroy(ptr noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 "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 }

!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 [21 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 [11 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 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 {
.peel.next84:
  %2 = alloca { float, float }, align 8
  %3 = tail call ptr @gmskmod_create(i32 noundef 4, i32 noundef 3, float noundef 0x3FD3333340000000) #6
  %4 = tail call ptr @eqlms_cccf_create_rnyquist(i32 noundef 12, i32 noundef 4, i32 noundef 3, float noundef 0x3FD3333340000000, float noundef 0.000000e+00) #6
  %5 = tail call i32 @eqlms_cccf_set_bw(ptr noundef %4, float noundef 0x3FB47AE140000000) #6
  %6 = tail call ptr @spgramcf_create_default(i32 noundef 1200) #6
  %7 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #6
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.3) #6
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.4) #6
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.5, i32 noundef 4) #6
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.6, i32 noundef 2400) #6
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.7, i32 noundef 1200) #6
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.8) #6
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.9) #6
  %16 = alloca [4 x { float, float }], align 16
  %17 = getelementptr inbounds i8, ptr %2, i64 4
  %18 = tail call i32 @rand() #6
  %19 = and i32 %18, 1
  %20 = call i32 @gmskmod_modulate(ptr noundef %3, i32 noundef %19, ptr noundef nonnull %16) #6
  %21 = call i32 @eqlms_cccf_push_block(ptr noundef %4, ptr noundef nonnull %16, i32 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %22 = call i32 @eqlms_cccf_execute(ptr noundef %4, ptr noundef nonnull %2) #6
  %23 = call i32 @spgramcf_write(ptr noundef %6, ptr noundef nonnull %16, i32 noundef 4) #6
  %24 = load float, ptr %2, align 8
  %25 = fpext float %24 to double
  %26 = load float, ptr %17, align 4
  %27 = fpext float %26 to double
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.10, i32 noundef 1, double noundef %25, double noundef %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %29 = call i32 @rand() #6
  %30 = and i32 %29, 1
  %31 = call i32 @gmskmod_modulate(ptr noundef %3, i32 noundef %30, ptr noundef nonnull %16) #6
  %32 = call i32 @eqlms_cccf_push_block(ptr noundef %4, ptr noundef nonnull %16, i32 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %33 = call i32 @eqlms_cccf_execute(ptr noundef %4, ptr noundef nonnull %2) #6
  %34 = call i32 @spgramcf_write(ptr noundef %6, ptr noundef nonnull %16, i32 noundef 4) #6
  %35 = load float, ptr %2, align 8
  %36 = fpext float %35 to double
  %37 = load float, ptr %17, align 4
  %38 = fpext float %37 to double
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.10, i32 noundef 2, double noundef %36, double noundef %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %40 = call i32 @rand() #6
  %41 = and i32 %40, 1
  %42 = call i32 @gmskmod_modulate(ptr noundef %3, i32 noundef %41, ptr noundef nonnull %16) #6
  %43 = call i32 @eqlms_cccf_push_block(ptr noundef %4, ptr noundef nonnull %16, i32 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %44 = call i32 @eqlms_cccf_execute(ptr noundef %4, ptr noundef nonnull %2) #6
  %45 = call i32 @spgramcf_write(ptr noundef %6, ptr noundef nonnull %16, i32 noundef 4) #6
  %46 = load float, ptr %2, align 8
  %47 = fpext float %46 to double
  %48 = load float, ptr %17, align 4
  %49 = fpext float %48 to double
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.10, i32 noundef 3, double noundef %47, double noundef %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %51

51:                                               ; preds = %.peel.next84, %51
  %.075 = phi i32 [ 3, %.peel.next84 ], [ %58, %51 ]
  %52 = call i32 @rand() #6
  %53 = and i32 %52, 1
  %54 = call i32 @gmskmod_modulate(ptr noundef %3, i32 noundef %53, ptr noundef nonnull %16) #6
  %55 = call i32 @eqlms_cccf_push_block(ptr noundef %4, ptr noundef nonnull %16, i32 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %56 = call i32 @eqlms_cccf_execute(ptr noundef %4, ptr noundef nonnull %2) #6
  %57 = call i32 @spgramcf_write(ptr noundef %6, ptr noundef nonnull %16, i32 noundef 4) #6
  %58 = add nuw nsw i32 %.075, 1
  %59 = load float, ptr %2, align 8
  %60 = fpext float %59 to double
  %61 = load float, ptr %17, align 4
  %62 = fpext float %61 to double
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.10, i32 noundef %58, double noundef %60, double noundef %62) #6
  %64 = load <2 x float>, ptr %2, align 8
  %65 = extractelement <2 x float> %64, i64 0
  %66 = fcmp ogt float %65, 0.000000e+00
  %67 = select i1 %66, double 0x3FE6A09E667F3BCD, double 0xBFE6A09E667F3BCD
  %68 = extractelement <2 x float> %64, i64 1
  %69 = fcmp ogt float %68, 0.000000e+00
  %70 = select i1 %69, double 0x3FE6A09E667F3BCD, double 0xBFE6A09E667F3BCD
  %71 = call double @llvm.copysign.f64(double 0.000000e+00, double %70)
  %72 = fadd double %67, %71
  %73 = insertelement <2 x double> poison, double %72, i64 0
  %74 = insertelement <2 x double> %73, double %70, i64 1
  %75 = fptrunc <2 x double> %74 to <2 x float>
  %76 = call i32 @eqlms_cccf_step(ptr noundef %4, <2 x float> noundef %75, <2 x float> noundef %64) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %exitcond.not = icmp eq i32 %58, 2400
  br i1 %exitcond.not, label %.loopexit, label %51, !llvm.loop !5

.loopexit:                                        ; preds = %51
  %77 = alloca [25 x { float, float }], align 16
  %78 = call i32 @eqlms_cccf_copy_coefficients(ptr noundef %4, ptr noundef nonnull %77) #6
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.11, i32 noundef 25) #6
  %80 = load float, ptr %77, align 16
  %81 = getelementptr inbounds i8, ptr %77, i64 4
  %82 = fpext float %80 to double
  %83 = load float, ptr %81, align 4
  %84 = fpext float %83 to double
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 1, double noundef %82, double noundef %84) #6
  %86 = getelementptr inbounds i8, ptr %77, i64 8
  %87 = load float, ptr %86, align 8
  %88 = getelementptr inbounds i8, ptr %77, i64 12
  %89 = fpext float %87 to double
  %90 = load float, ptr %88, align 4
  %91 = fpext float %90 to double
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 2, double noundef %89, double noundef %91) #6
  %93 = getelementptr inbounds i8, ptr %77, i64 16
  %94 = load float, ptr %93, align 16
  %95 = getelementptr inbounds i8, ptr %77, i64 20
  %96 = fpext float %94 to double
  %97 = load float, ptr %95, align 4
  %98 = fpext float %97 to double
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 3, double noundef %96, double noundef %98) #6
  %100 = getelementptr inbounds i8, ptr %77, i64 24
  %101 = load float, ptr %100, align 8
  %102 = getelementptr inbounds i8, ptr %77, i64 28
  %103 = fpext float %101 to double
  %104 = load float, ptr %102, align 4
  %105 = fpext float %104 to double
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 4, double noundef %103, double noundef %105) #6
  %107 = getelementptr inbounds i8, ptr %77, i64 32
  %108 = load float, ptr %107, align 16
  %109 = getelementptr inbounds i8, ptr %77, i64 36
  %110 = fpext float %108 to double
  %111 = load float, ptr %109, align 4
  %112 = fpext float %111 to double
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 5, double noundef %110, double noundef %112) #6
  %114 = getelementptr inbounds i8, ptr %77, i64 40
  %115 = load float, ptr %114, align 8
  %116 = getelementptr inbounds i8, ptr %77, i64 44
  %117 = fpext float %115 to double
  %118 = load float, ptr %116, align 4
  %119 = fpext float %118 to double
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 6, double noundef %117, double noundef %119) #6
  %121 = getelementptr inbounds i8, ptr %77, i64 48
  %122 = load float, ptr %121, align 16
  %123 = getelementptr inbounds i8, ptr %77, i64 52
  %124 = fpext float %122 to double
  %125 = load float, ptr %123, align 4
  %126 = fpext float %125 to double
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 7, double noundef %124, double noundef %126) #6
  %128 = getelementptr inbounds i8, ptr %77, i64 56
  %129 = load float, ptr %128, align 8
  %130 = getelementptr inbounds i8, ptr %77, i64 60
  %131 = fpext float %129 to double
  %132 = load float, ptr %130, align 4
  %133 = fpext float %132 to double
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 8, double noundef %131, double noundef %133) #6
  %135 = getelementptr inbounds i8, ptr %77, i64 64
  %136 = load float, ptr %135, align 16
  %137 = getelementptr inbounds i8, ptr %77, i64 68
  %138 = fpext float %136 to double
  %139 = load float, ptr %137, align 4
  %140 = fpext float %139 to double
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 9, double noundef %138, double noundef %140) #6
  %142 = getelementptr inbounds i8, ptr %77, i64 72
  %143 = load float, ptr %142, align 8
  %144 = getelementptr inbounds i8, ptr %77, i64 76
  %145 = fpext float %143 to double
  %146 = load float, ptr %144, align 4
  %147 = fpext float %146 to double
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 10, double noundef %145, double noundef %147) #6
  %149 = getelementptr inbounds i8, ptr %77, i64 80
  %150 = load float, ptr %149, align 16
  %151 = getelementptr inbounds i8, ptr %77, i64 84
  %152 = fpext float %150 to double
  %153 = load float, ptr %151, align 4
  %154 = fpext float %153 to double
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 11, double noundef %152, double noundef %154) #6
  %156 = getelementptr inbounds i8, ptr %77, i64 88
  %157 = load float, ptr %156, align 8
  %158 = getelementptr inbounds i8, ptr %77, i64 92
  %159 = fpext float %157 to double
  %160 = load float, ptr %158, align 4
  %161 = fpext float %160 to double
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 12, double noundef %159, double noundef %161) #6
  %163 = getelementptr inbounds i8, ptr %77, i64 96
  %164 = load float, ptr %163, align 16
  %165 = getelementptr inbounds i8, ptr %77, i64 100
  %166 = fpext float %164 to double
  %167 = load float, ptr %165, align 4
  %168 = fpext float %167 to double
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 13, double noundef %166, double noundef %168) #6
  %170 = getelementptr inbounds i8, ptr %77, i64 104
  %171 = load float, ptr %170, align 8
  %172 = getelementptr inbounds i8, ptr %77, i64 108
  %173 = fpext float %171 to double
  %174 = load float, ptr %172, align 4
  %175 = fpext float %174 to double
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 14, double noundef %173, double noundef %175) #6
  %177 = getelementptr inbounds i8, ptr %77, i64 112
  %178 = load float, ptr %177, align 16
  %179 = getelementptr inbounds i8, ptr %77, i64 116
  %180 = fpext float %178 to double
  %181 = load float, ptr %179, align 4
  %182 = fpext float %181 to double
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 15, double noundef %180, double noundef %182) #6
  %184 = getelementptr inbounds i8, ptr %77, i64 120
  %185 = load float, ptr %184, align 8
  %186 = getelementptr inbounds i8, ptr %77, i64 124
  %187 = fpext float %185 to double
  %188 = load float, ptr %186, align 4
  %189 = fpext float %188 to double
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 16, double noundef %187, double noundef %189) #6
  %191 = getelementptr inbounds i8, ptr %77, i64 128
  %192 = load float, ptr %191, align 16
  %193 = getelementptr inbounds i8, ptr %77, i64 132
  %194 = fpext float %192 to double
  %195 = load float, ptr %193, align 4
  %196 = fpext float %195 to double
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 17, double noundef %194, double noundef %196) #6
  %198 = getelementptr inbounds i8, ptr %77, i64 136
  %199 = load float, ptr %198, align 8
  %200 = getelementptr inbounds i8, ptr %77, i64 140
  %201 = fpext float %199 to double
  %202 = load float, ptr %200, align 4
  %203 = fpext float %202 to double
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 18, double noundef %201, double noundef %203) #6
  %205 = getelementptr inbounds i8, ptr %77, i64 144
  %206 = load float, ptr %205, align 16
  %207 = getelementptr inbounds i8, ptr %77, i64 148
  %208 = fpext float %206 to double
  %209 = load float, ptr %207, align 4
  %210 = fpext float %209 to double
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 19, double noundef %208, double noundef %210) #6
  %212 = getelementptr inbounds i8, ptr %77, i64 152
  %213 = load float, ptr %212, align 8
  %214 = getelementptr inbounds i8, ptr %77, i64 156
  %215 = fpext float %213 to double
  %216 = load float, ptr %214, align 4
  %217 = fpext float %216 to double
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 20, double noundef %215, double noundef %217) #6
  %219 = getelementptr inbounds i8, ptr %77, i64 160
  %220 = load float, ptr %219, align 16
  %221 = getelementptr inbounds i8, ptr %77, i64 164
  %222 = fpext float %220 to double
  %223 = load float, ptr %221, align 4
  %224 = fpext float %223 to double
  %225 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 21, double noundef %222, double noundef %224) #6
  %226 = getelementptr inbounds i8, ptr %77, i64 168
  %227 = load float, ptr %226, align 8
  %228 = getelementptr inbounds i8, ptr %77, i64 172
  %229 = fpext float %227 to double
  %230 = load float, ptr %228, align 4
  %231 = fpext float %230 to double
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 22, double noundef %229, double noundef %231) #6
  %233 = getelementptr inbounds i8, ptr %77, i64 176
  %234 = load float, ptr %233, align 16
  %235 = getelementptr inbounds i8, ptr %77, i64 180
  %236 = fpext float %234 to double
  %237 = load float, ptr %235, align 4
  %238 = fpext float %237 to double
  %239 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 23, double noundef %236, double noundef %238) #6
  %240 = getelementptr inbounds i8, ptr %77, i64 184
  %241 = load float, ptr %240, align 8
  %242 = getelementptr inbounds i8, ptr %77, i64 188
  %243 = fpext float %241 to double
  %244 = load float, ptr %242, align 4
  %245 = fpext float %244 to double
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 24, double noundef %243, double noundef %245) #6
  %247 = getelementptr inbounds i8, ptr %77, i64 192
  %248 = load float, ptr %247, align 16
  %249 = getelementptr inbounds i8, ptr %77, i64 196
  %250 = fpext float %248 to double
  %251 = load float, ptr %249, align 4
  %252 = fpext float %251 to double
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.12, i32 noundef 25, double noundef %250, double noundef %252) #6
  %254 = alloca [1200 x float], align 16
  %255 = call i32 @spgramcf_get_psd(ptr noundef %6, ptr noundef nonnull %254) #6
  br label %256

256:                                              ; preds = %.loopexit, %256
  %indvars.iv = phi i64 [ 0, %.loopexit ], [ %indvars.iv.next, %256 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %257 = getelementptr inbounds float, ptr %254, i64 %indvars.iv
  %258 = load float, ptr %257, align 4, !tbaa !8
  %259 = fpext float %258 to double
  %260 = trunc nuw nsw i64 %indvars.iv.next to i32
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.13, i32 noundef %260, double noundef %259) #6
  %exitcond94.not = icmp eq i64 %indvars.iv.next, 1200
  br i1 %exitcond94.not, label %262, label %256, !llvm.loop !12

262:                                              ; preds = %256
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.14) #6
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.15) #6
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.16) #6
  %266 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.17) #6
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.18) #6
  %268 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.19) #6
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.15) #6
  %270 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.20) #6
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.21) #6
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.22) #6
  %273 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.23) #6
  %274 = call i32 @fclose(ptr noundef %7)
  %275 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str)
  %276 = call i32 @gmskmod_destroy(ptr noundef %3) #6
  %277 = call i32 @eqlms_cccf_destroy(ptr noundef %4) #6
  %278 = call i32 @spgramcf_destroy(ptr noundef %6) #6
  ret i32 0
}

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

declare ptr @gmskmod_create(i32 noundef, i32 noundef, float noundef) local_unnamed_addr #2

declare ptr @eqlms_cccf_create_rnyquist(i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #2

declare i32 @eqlms_cccf_set_bw(ptr noundef, float noundef) local_unnamed_addr #2

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #2

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

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

declare i32 @gmskmod_modulate(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @eqlms_cccf_push_block(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @eqlms_cccf_execute(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @eqlms_cccf_copy_coefficients(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @gmskmod_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @eqlms_cccf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!5, !6, !7}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.peeled.count", i32 3}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = distinct !{!12, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass