; LLVM IR from jgaeddert/liquid-dsp :: examples (conversion_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 [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca { float, float }, align 4
  %17 = alloca { float, float }, align 4
  %18 = alloca { float, float }, align 4
  %19 = alloca float, align 4
  %20 = alloca { float, float }, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca { float, float }, 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1200, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 64000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float 0x3FC99999A0000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %29 = call ptr @iirfilt_crcf_create_lowpass(i32 noundef 15, float noundef 0x3FA99999A0000000)
  store ptr %29, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %30 = call ptr @nco_crcf_create(i32 noundef 1)
  store ptr %30, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %31 = call ptr @nco_crcf_create(i32 noundef 1)
  store ptr %31, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %32 = call ptr @iirfilt_crcf_create_lowpass(i32 noundef 7, float noundef 0x3FC99999A0000000)
  store ptr %32, ptr %8, align 8, !tbaa !11
  %33 = load ptr, ptr %6, align 8, !tbaa !11
  %34 = load float, ptr %4, align 4, !tbaa !9
  %35 = fmul float %34, 2.000000e+00
  %36 = fpext float %35 to double
  %37 = fmul double %36, 0x400921FB54442D18
  %38 = fptrunc double %37 to float
  %39 = call i32 @nco_crcf_set_frequency(ptr noundef %33, float noundef %38)
  %40 = load ptr, ptr %7, align 8, !tbaa !11
  %41 = load float, ptr %4, align 4, !tbaa !9
  %42 = fmul float %41, 2.000000e+00
  %43 = fpext float %42 to double
  %44 = fmul double %43, 0x400921FB54442D18
  %45 = fptrunc double %44 to float
  %46 = call i32 @nco_crcf_set_frequency(ptr noundef %40, float noundef %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = call ptr @spgramcf_create_default(i32 noundef %47)
  store ptr %48, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = call ptr @spgramf_create_default(i32 noundef %49)
  store ptr %50, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = call ptr @spgramcf_create_default(i32 noundef %51)
  store ptr %52, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %143, %0
  %54 = load i32, ptr %12, align 4, !tbaa !5
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = icmp ult i32 %54, %55
  br i1 %56, label %57, label %146

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %58 = call float (...) @randnf()
  %59 = call float (...) @randnf()
  %60 = fmul float %59, 0.000000e+00
  %61 = fmul float %59, 1.000000e+00
  %62 = fadd float %58, %60
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = uitofp i32 %63 to float
  %65 = fmul float -0.000000e+00, %64
  %66 = fmul float 0xBFC99999A0000000, %64
  %67 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %68 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  store float %65, ptr %67, align 4
  store float %66, ptr %68, align 4
  %69 = load <2 x float>, ptr %14, align 4
  %70 = call <2 x float> @cexpf(<2 x float> noundef %69) #5
  store <2 x float> %70, ptr %15, align 4
  %71 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %72 = load float, ptr %71, align 4
  %73 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  %74 = load float, ptr %73, align 4
  %75 = fmul float 3.000000e+00, %72
  %76 = fmul float 3.000000e+00, %74
  %77 = fadd float %62, %75
  %78 = fadd float %61, %76
  %79 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %80 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %77, ptr %79, align 4
  store float %78, ptr %80, align 4
  %81 = load ptr, ptr %5, align 8, !tbaa !11
  %82 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %83 = load float, ptr %82, align 4
  %84 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %85 = load float, ptr %84, align 4
  %86 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 0
  %87 = getelementptr inbounds { float, float }, ptr %16, i32 0, i32 1
  store float %83, ptr %86, align 4
  store float %85, ptr %87, align 4
  %88 = load <2 x float>, ptr %16, align 4
  %89 = call i32 @iirfilt_crcf_execute(ptr noundef %81, <2 x float> noundef %88, ptr noundef %13)
  %90 = load ptr, ptr %9, align 8, !tbaa !11
  %91 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %92 = load float, ptr %91, align 4
  %93 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %94 = load float, ptr %93, align 4
  %95 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 0
  %96 = getelementptr inbounds { float, float }, ptr %17, i32 0, i32 1
  store float %92, ptr %95, align 4
  store float %94, ptr %96, align 4
  %97 = load <2 x float>, ptr %17, align 4
  %98 = call i32 @spgramcf_push(ptr noundef %90, <2 x float> noundef %97)
  %99 = load ptr, ptr %6, align 8, !tbaa !11
  %100 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %101 = load float, ptr %100, align 4
  %102 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %103 = load float, ptr %102, align 4
  %104 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 0
  %105 = getelementptr inbounds { float, float }, ptr %18, i32 0, i32 1
  store float %101, ptr %104, align 4
  store float %103, ptr %105, align 4
  %106 = load <2 x float>, ptr %18, align 4
  %107 = call i32 @nco_crcf_mix_up(ptr noundef %99, <2 x float> noundef %106, ptr noundef %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %108 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %109 = load float, ptr %108, align 4
  %110 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  %111 = load float, ptr %110, align 4
  store float %109, ptr %19, align 4, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !11
  %113 = call i32 @nco_crcf_step(ptr noundef %112)
  %114 = load ptr, ptr %10, align 8, !tbaa !11
  %115 = load float, ptr %19, align 4, !tbaa !9
  %116 = call i32 @spgramf_push(ptr noundef %114, float noundef %115)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %117 = load ptr, ptr %7, align 8, !tbaa !11
  %118 = load float, ptr %19, align 4, !tbaa !9
  %119 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %120 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  store float %118, ptr %119, align 4
  store float 0.000000e+00, ptr %120, align 4
  %121 = load <2 x float>, ptr %21, align 4
  %122 = call i32 @nco_crcf_mix_down(ptr noundef %117, <2 x float> noundef %121, ptr noundef %20)
  %123 = load ptr, ptr %8, align 8, !tbaa !11
  %124 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %125 = load float, ptr %124, align 4
  %126 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  %127 = load float, ptr %126, align 4
  %128 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %129 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  store float %125, ptr %128, align 4
  store float %127, ptr %129, align 4
  %130 = load <2 x float>, ptr %22, align 4
  %131 = call i32 @iirfilt_crcf_execute(ptr noundef %123, <2 x float> noundef %130, ptr noundef %20)
  %132 = load ptr, ptr %7, align 8, !tbaa !11
  %133 = call i32 @nco_crcf_step(ptr noundef %132)
  %134 = load ptr, ptr %11, align 8, !tbaa !11
  %135 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 0
  %136 = load float, ptr %135, align 4
  %137 = getelementptr inbounds { float, float }, ptr %20, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  %139 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 0
  %140 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 1
  store float %136, ptr %139, align 4
  store float %138, ptr %140, align 4
  %141 = load <2 x float>, ptr %23, align 4
  %142 = call i32 @spgramcf_push(ptr noundef %134, <2 x float> noundef %141)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %143

143:                                              ; preds = %57
  %144 = load i32, ptr %12, align 4, !tbaa !5
  %145 = add i32 %144, 1
  store i32 %145, ptr %12, align 4, !tbaa !5
  br label %53, !llvm.loop !13

146:                                              ; preds = %53
  %147 = load i32, ptr %2, align 4, !tbaa !5
  %148 = zext i32 %147 to i64
  %149 = call ptr @llvm.stacksave.p0()
  store ptr %149, ptr %24, align 8
  %150 = alloca float, i64 %148, align 16
  store i64 %148, ptr %25, align 8
  %151 = load i32, ptr %2, align 4, !tbaa !5
  %152 = zext i32 %151 to i64
  %153 = alloca float, i64 %152, align 16
  store i64 %152, ptr %26, align 8
  %154 = load i32, ptr %2, align 4, !tbaa !5
  %155 = zext i32 %154 to i64
  %156 = alloca float, i64 %155, align 16
  store i64 %155, ptr %27, align 8
  %157 = load ptr, ptr %9, align 8, !tbaa !11
  %158 = call i32 @spgramcf_get_psd(ptr noundef %157, ptr noundef %150)
  %159 = load ptr, ptr %10, align 8, !tbaa !11
  %160 = call i32 @spgramf_get_psd(ptr noundef %159, ptr noundef %153)
  %161 = load ptr, ptr %11, align 8, !tbaa !11
  %162 = call i32 @spgramcf_get_psd(ptr noundef %161, ptr noundef %156)
  %163 = load ptr, ptr %9, align 8, !tbaa !11
  %164 = call i32 @spgramcf_destroy(ptr noundef %163)
  %165 = load ptr, ptr %10, align 8, !tbaa !11
  %166 = call i32 @spgramf_destroy(ptr noundef %165)
  %167 = load ptr, ptr %11, align 8, !tbaa !11
  %168 = call i32 @spgramcf_destroy(ptr noundef %167)
  %169 = load ptr, ptr %5, align 8, !tbaa !11
  %170 = call i32 @iirfilt_crcf_destroy(ptr noundef %169)
  %171 = load ptr, ptr %6, align 8, !tbaa !11
  %172 = call i32 @nco_crcf_destroy(ptr noundef %171)
  %173 = load ptr, ptr %7, align 8, !tbaa !11
  %174 = call i32 @nco_crcf_destroy(ptr noundef %173)
  %175 = load ptr, ptr %8, align 8, !tbaa !11
  %176 = call i32 @iirfilt_crcf_destroy(ptr noundef %175)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %177 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %177, ptr %28, align 8, !tbaa !11
  %178 = load ptr, ptr %28, align 8, !tbaa !11
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.2, ptr noundef @.str) #5
  %180 = load ptr, ptr %28, align 8, !tbaa !11
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.3) #5
  %182 = load ptr, ptr %28, align 8, !tbaa !11
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %182, ptr noundef @.str.4) #5
  %184 = load ptr, ptr %28, align 8, !tbaa !11
  %185 = load i32, ptr %2, align 4, !tbaa !5
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.5, i32 noundef %185) #5
  %187 = load ptr, ptr %28, align 8, !tbaa !11
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.6) #5
  %189 = load ptr, ptr %28, align 8, !tbaa !11
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.7) #5
  %191 = load ptr, ptr %28, align 8, !tbaa !11
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.8) #5
  %193 = load ptr, ptr %28, align 8, !tbaa !11
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.9) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %227, %146
  %196 = load i32, ptr %12, align 4, !tbaa !5
  %197 = load i32, ptr %2, align 4, !tbaa !5
  %198 = icmp ult i32 %196, %197
  br i1 %198, label %199, label %230

199:                                              ; preds = %195
  %200 = load ptr, ptr %28, align 8, !tbaa !11
  %201 = load i32, ptr %12, align 4, !tbaa !5
  %202 = add i32 %201, 1
  %203 = load i32, ptr %12, align 4, !tbaa !5
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds float, ptr %150, i64 %204
  %206 = load float, ptr %205, align 4, !tbaa !9
  %207 = fpext float %206 to double
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.10, i32 noundef %202, double noundef %207) #5
  %209 = load ptr, ptr %28, align 8, !tbaa !11
  %210 = load i32, ptr %12, align 4, !tbaa !5
  %211 = add i32 %210, 1
  %212 = load i32, ptr %12, align 4, !tbaa !5
  %213 = zext i32 %212 to i64
  %214 = getelementptr inbounds float, ptr %153, i64 %213
  %215 = load float, ptr %214, align 4, !tbaa !9
  %216 = fpext float %215 to double
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef @.str.11, i32 noundef %211, double noundef %216) #5
  %218 = load ptr, ptr %28, align 8, !tbaa !11
  %219 = load i32, ptr %12, align 4, !tbaa !5
  %220 = add i32 %219, 1
  %221 = load i32, ptr %12, align 4, !tbaa !5
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds float, ptr %156, i64 %222
  %224 = load float, ptr %223, align 4, !tbaa !9
  %225 = fpext float %224 to double
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.12, i32 noundef %220, double noundef %225) #5
  br label %227

227:                                              ; preds = %199
  %228 = load i32, ptr %12, align 4, !tbaa !5
  %229 = add i32 %228, 1
  store i32 %229, ptr %12, align 4, !tbaa !5
  br label %195, !llvm.loop !15

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

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

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

declare ptr @nco_crcf_create(i32 noundef) #2

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

declare ptr @spgramcf_create_default(i32 noundef) #2

declare ptr @spgramf_create_default(i32 noundef) #2

declare float @randnf(...) #2

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) #3

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

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

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

declare i32 @nco_crcf_step(ptr noundef) #2

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

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

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

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

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

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

declare i32 @spgramcf_destroy(ptr noundef) #2

declare i32 @spgramf_destroy(ptr noundef) #2

declare i32 @iirfilt_crcf_destroy(ptr noundef) #2

declare i32 @nco_crcf_destroy(ptr noundef) #2

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

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

declare i32 @fclose(ptr noundef) #2

declare i32 @printf(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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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 [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca { float, float }, align 8
  %2 = alloca { float, float }, align 8
  %3 = tail call ptr @iirfilt_crcf_create_lowpass(i32 noundef 15, float noundef 0x3FA99999A0000000) #5
  %4 = tail call ptr @nco_crcf_create(i32 noundef 1) #5
  %5 = tail call ptr @nco_crcf_create(i32 noundef 1) #5
  %6 = tail call ptr @iirfilt_crcf_create_lowpass(i32 noundef 7, float noundef 0x3FC99999A0000000) #5
  %7 = tail call i32 @nco_crcf_set_frequency(ptr noundef %4, float noundef 0x3FF41B2F80000000) #5
  %8 = tail call i32 @nco_crcf_set_frequency(ptr noundef %5, float noundef 0x3FF41B2F80000000) #5
  %9 = tail call ptr @spgramcf_create_default(i32 noundef 1200) #5
  %10 = tail call ptr @spgramf_create_default(i32 noundef 1200) #5
  %11 = tail call ptr @spgramcf_create_default(i32 noundef 1200) #5
  br label %12

12:                                               ; preds = %0, %12
  %.083 = phi i32 [ 0, %0 ], [ %38, %12 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %13 = call float (...) @randnf() #5
  %14 = call float (...) @randnf() #5
  %15 = fmul float %14, 0.000000e+00
  %16 = fadd float %13, %15
  %17 = uitofp nneg i32 %.083 to float
  %18 = fmul float %17, 0xBFC99999A0000000
  %.sroa.038.4.vec.insert = insertelement <2 x float> <float -0.000000e+00, float poison>, float %18, i64 1
  %19 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.038.4.vec.insert) #5
  %20 = fmul <2 x float> %19, <float 3.000000e+00, float 3.000000e+00>
  %21 = insertelement <2 x float> poison, float %16, i64 0
  %22 = insertelement <2 x float> %21, float %14, i64 1
  %23 = fadd <2 x float> %22, %20
  store <2 x float> %23, ptr %1, align 8
  %24 = call i32 @iirfilt_crcf_execute(ptr noundef %3, <2 x float> noundef %23, ptr noundef nonnull %1) #5
  %25 = load <2 x float>, ptr %1, align 8
  %26 = call i32 @spgramcf_push(ptr noundef %9, <2 x float> noundef %25) #5
  %27 = load <2 x float>, ptr %1, align 8
  %28 = call i32 @nco_crcf_mix_up(ptr noundef %4, <2 x float> noundef %27, ptr noundef nonnull %1) #5
  %29 = load float, ptr %1, align 8
  %30 = call i32 @nco_crcf_step(ptr noundef %4) #5
  %31 = call i32 @spgramf_push(ptr noundef %10, float noundef %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %.sroa.027.4.vec.insert = insertelement <2 x float> <float poison, float 0.000000e+00>, float %29, i64 0
  %32 = call i32 @nco_crcf_mix_down(ptr noundef %5, <2 x float> noundef %.sroa.027.4.vec.insert, ptr noundef nonnull %2) #5
  %33 = load <2 x float>, ptr %2, align 8
  %34 = call i32 @iirfilt_crcf_execute(ptr noundef %6, <2 x float> noundef %33, ptr noundef nonnull %2) #5
  %35 = call i32 @nco_crcf_step(ptr noundef %5) #5
  %36 = load <2 x float>, ptr %2, align 8
  %37 = call i32 @spgramcf_push(ptr noundef %11, <2 x float> noundef %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  %38 = add nuw nsw i32 %.083, 1
  %exitcond.not = icmp eq i32 %38, 64000
  br i1 %exitcond.not, label %39, label %12, !llvm.loop !5

39:                                               ; preds = %12
  %40 = alloca [1200 x float], align 16
  %41 = alloca [1200 x float], align 16
  %42 = alloca [1200 x float], align 16
  %43 = call i32 @spgramcf_get_psd(ptr noundef %9, ptr noundef nonnull %40) #5
  %44 = call i32 @spgramf_get_psd(ptr noundef %10, ptr noundef nonnull %41) #5
  %45 = call i32 @spgramcf_get_psd(ptr noundef %11, ptr noundef nonnull %42) #5
  %46 = call i32 @spgramcf_destroy(ptr noundef %9) #5
  %47 = call i32 @spgramf_destroy(ptr noundef %10) #5
  %48 = call i32 @spgramcf_destroy(ptr noundef %11) #5
  %49 = call i32 @iirfilt_crcf_destroy(ptr noundef %3) #5
  %50 = call i32 @nco_crcf_destroy(ptr noundef %4) #5
  %51 = call i32 @nco_crcf_destroy(ptr noundef %5) #5
  %52 = call i32 @iirfilt_crcf_destroy(ptr noundef %6) #5
  %53 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.3) #5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.4) #5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.5, i32 noundef 1200) #5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.6) #5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.7) #5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.8) #5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.9) #5
  br label %62

62:                                               ; preds = %39, %62
  %indvars.iv = phi i64 [ 0, %39 ], [ %indvars.iv.next, %62 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = getelementptr inbounds float, ptr %40, i64 %indvars.iv
  %64 = load float, ptr %63, align 4, !tbaa !7
  %65 = fpext float %64 to double
  %66 = trunc nuw nsw i64 %indvars.iv.next to i32
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.10, i32 noundef %66, double noundef %65) #5
  %68 = getelementptr inbounds float, ptr %41, i64 %indvars.iv
  %69 = load float, ptr %68, align 4, !tbaa !7
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.11, i32 noundef %66, double noundef %70) #5
  %72 = getelementptr inbounds float, ptr %42, i64 %indvars.iv
  %73 = load float, ptr %72, align 4, !tbaa !7
  %74 = fpext float %73 to double
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.12, i32 noundef %66, double noundef %74) #5
  %exitcond86.not = icmp eq i64 %indvars.iv.next, 1200
  br i1 %exitcond86.not, label %76, label %62, !llvm.loop !11

76:                                               ; preds = %62
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.13) #5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.14) #5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.15) #5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.16) #5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.17) #5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.18) #5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.19) #5
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.20) #5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.21) #5
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.22) #5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.23) #5
  %88 = call i32 @fclose(ptr noundef %53)
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef nonnull @.str)
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  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 @iirfilt_crcf_create_lowpass(i32 noundef, float noundef) local_unnamed_addr #2

declare ptr @nco_crcf_create(i32 noundef) local_unnamed_addr #2

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

declare ptr @spgramcf_create_default(i32 noundef) local_unnamed_addr #2

declare ptr @spgramf_create_default(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare <2 x float> @cexpf(<2 x float> noundef) local_unnamed_addr #3

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

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

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

declare i32 @nco_crcf_step(ptr noundef) local_unnamed_addr #2

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

declare i32 @nco_crcf_mix_down(ptr noundef, <2 x float> noundef, ptr 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 @spgramcf_get_psd(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @spgramcf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @spgramf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @iirfilt_crcf_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @nco_crcf_destroy(ptr 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 #4

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 = { 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 = { 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 #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 = 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: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass