; LLVM IR from jgaeddert/liquid-dsp :: examples (firfilt_crcf_dcblocker_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 [33 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 [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 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 [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = 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 i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca { float, float }, align 4
  %12 = alloca { float, float }, align 4
  %13 = alloca { float, float }, align 4
  %14 = alloca { float, float }, align 4
  %15 = alloca { float, float }, align 4
  %16 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1200, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 25, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store float 3.000000e+01, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = load float, ptr %4, align 4, !tbaa !9
  %19 = call ptr @firfilt_crcf_create_dc_blocker(i32 noundef %17, float noundef %18)
  store ptr %19, ptr %5, align 8, !tbaa !11
  %20 = load ptr, ptr %5, align 8, !tbaa !11
  %21 = call i32 @firfilt_crcf_print(ptr noundef %20)
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = zext i32 %22 to i64
  %24 = call ptr @llvm.stacksave.p0()
  store ptr %24, ptr %6, align 8
  %25 = alloca { float, float }, i64 %23, align 16
  store i64 %23, ptr %7, align 8
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = zext i32 %26 to i64
  %28 = alloca { float, float }, i64 %27, align 16
  store i64 %27, ptr %8, align 8
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = zext i32 %29 to i64
  %31 = alloca { float, float }, i64 %30, align 16
  store i64 %30, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %106, %0
  %33 = load i32, ptr %10, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = icmp ult i32 %33, %34
  br i1 %35, label %36, label %109

36:                                               ; preds = %32
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = uitofp i32 %37 to float
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = uitofp i32 %39 to float
  %41 = fmul float 0x3F1A36E2E0000000, %40
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = uitofp i32 %42 to float
  %44 = fmul float %41, %43
  %45 = call float @llvm.fmuladd.f32(float 0x3FC5C28F60000000, float %38, float %44)
  %46 = fmul float %45, 0.000000e+00
  %47 = fmul float %45, 1.000000e+00
  %48 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 0
  %49 = getelementptr inbounds { float, float }, ptr %11, i32 0, i32 1
  store float %46, ptr %48, align 4
  store float %47, ptr %49, align 4
  %50 = load <2 x float>, ptr %11, align 4
  %51 = call <2 x float> @cexpf(<2 x float> noundef %50) #6
  store <2 x float> %51, ptr %12, align 4
  %52 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 0
  %53 = load float, ptr %52, align 4
  %54 = getelementptr inbounds { float, float }, ptr %12, i32 0, i32 1
  %55 = load float, ptr %54, align 4
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds { float, float }, ptr %25, i64 %57
  %59 = getelementptr inbounds { float, float }, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds { float, float }, ptr %58, i32 0, i32 1
  store float %53, ptr %59, align 8
  store float %55, ptr %60, align 4
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds { float, float }, ptr %25, i64 %62
  %64 = getelementptr inbounds { float, float }, ptr %63, i32 0, i32 0
  %65 = load float, ptr %64, align 8
  %66 = getelementptr inbounds { float, float }, ptr %63, i32 0, i32 1
  %67 = load float, ptr %66, align 4
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = uitofp i32 %68 to float
  %70 = fmul float 0.000000e+00, %69
  %71 = fmul float 0x3F7CAC0840000000, %69
  %72 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 0
  %73 = getelementptr inbounds { float, float }, ptr %13, i32 0, i32 1
  store float %70, ptr %72, align 4
  store float %71, ptr %73, align 4
  %74 = load <2 x float>, ptr %13, align 4
  %75 = call <2 x float> @cexpf(<2 x float> noundef %74) #6
  store <2 x float> %75, ptr %14, align 4
  %76 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 0
  %77 = load float, ptr %76, align 4
  %78 = getelementptr inbounds { float, float }, ptr %14, i32 0, i32 1
  %79 = load float, ptr %78, align 4
  %80 = fmul float 2.000000e+00, %77
  %81 = fmul float 2.000000e+00, %79
  %82 = fadd float %65, %80
  %83 = fadd float %67, %81
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds { float, float }, ptr %28, i64 %85
  %87 = getelementptr inbounds { float, float }, ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds { float, float }, ptr %86, i32 0, i32 1
  store float %82, ptr %87, align 8
  store float %83, ptr %88, align 4
  %89 = load ptr, ptr %5, align 8, !tbaa !11
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds { float, float }, ptr %28, i64 %91
  %93 = getelementptr inbounds { float, float }, ptr %92, i32 0, i32 0
  %94 = load float, ptr %93, align 8
  %95 = getelementptr inbounds { float, float }, ptr %92, i32 0, i32 1
  %96 = load float, ptr %95, align 4
  %97 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 0
  %98 = getelementptr inbounds { float, float }, ptr %15, i32 0, i32 1
  store float %94, ptr %97, align 4
  store float %96, ptr %98, align 4
  %99 = load <2 x float>, ptr %15, align 4
  %100 = call i32 @firfilt_crcf_push(ptr noundef %89, <2 x float> noundef %99)
  %101 = load ptr, ptr %5, align 8, !tbaa !11
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds { float, float }, ptr %31, i64 %103
  %105 = call i32 @firfilt_crcf_execute(ptr noundef %101, ptr noundef %104)
  br label %106

106:                                              ; preds = %36
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = add i32 %107, 1
  store i32 %108, ptr %10, align 4, !tbaa !5
  br label %32, !llvm.loop !13

109:                                              ; preds = %32
  %110 = load ptr, ptr %5, align 8, !tbaa !11
  %111 = call i32 @firfilt_crcf_destroy(ptr noundef %110)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %112 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %112, ptr %16, align 8, !tbaa !11
  %113 = load ptr, ptr %16, align 8, !tbaa !11
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.2, ptr noundef @.str) #6
  %115 = load ptr, ptr %16, align 8, !tbaa !11
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.3) #6
  %117 = load ptr, ptr %16, align 8, !tbaa !11
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.4) #6
  %119 = load ptr, ptr %16, align 8, !tbaa !11
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str.5) #6
  %121 = load ptr, ptr %16, align 8, !tbaa !11
  %122 = load i32, ptr %2, align 4, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.6, i32 noundef %122) #6
  %124 = load ptr, ptr %16, align 8, !tbaa !11
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.7) #6
  %126 = load ptr, ptr %16, align 8, !tbaa !11
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.8) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %193, %109
  %129 = load i32, ptr %10, align 4, !tbaa !5
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %132, label %196

132:                                              ; preds = %128
  %133 = load ptr, ptr %16, align 8, !tbaa !11
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = add i32 %134, 1
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds { float, float }, ptr %25, i64 %137
  %139 = getelementptr inbounds { float, float }, ptr %138, i32 0, i32 0
  %140 = load float, ptr %139, align 8
  %141 = getelementptr inbounds { float, float }, ptr %138, i32 0, i32 1
  %142 = load float, ptr %141, align 4
  %143 = fpext float %140 to double
  %144 = load i32, ptr %10, align 4, !tbaa !5
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds { float, float }, ptr %25, i64 %145
  %147 = getelementptr inbounds { float, float }, ptr %146, i32 0, i32 0
  %148 = load float, ptr %147, align 8
  %149 = getelementptr inbounds { float, float }, ptr %146, i32 0, i32 1
  %150 = load float, ptr %149, align 4
  %151 = fpext float %150 to double
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.9, i32 noundef %135, double noundef %143, double noundef %151) #6
  %153 = load ptr, ptr %16, align 8, !tbaa !11
  %154 = load i32, ptr %10, align 4, !tbaa !5
  %155 = add i32 %154, 1
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds { float, float }, ptr %28, i64 %157
  %159 = getelementptr inbounds { float, float }, ptr %158, i32 0, i32 0
  %160 = load float, ptr %159, align 8
  %161 = getelementptr inbounds { float, float }, ptr %158, i32 0, i32 1
  %162 = load float, ptr %161, align 4
  %163 = fpext float %160 to double
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds { float, float }, ptr %28, i64 %165
  %167 = getelementptr inbounds { float, float }, ptr %166, i32 0, i32 0
  %168 = load float, ptr %167, align 8
  %169 = getelementptr inbounds { float, float }, ptr %166, i32 0, i32 1
  %170 = load float, ptr %169, align 4
  %171 = fpext float %170 to double
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %153, ptr noundef @.str.10, i32 noundef %155, double noundef %163, double noundef %171) #6
  %173 = load ptr, ptr %16, align 8, !tbaa !11
  %174 = load i32, ptr %10, align 4, !tbaa !5
  %175 = add i32 %174, 1
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds { float, float }, ptr %31, 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 %180 to double
  %184 = load i32, ptr %10, align 4, !tbaa !5
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds { float, float }, ptr %31, i64 %185
  %187 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 0
  %188 = load float, ptr %187, align 8
  %189 = getelementptr inbounds { float, float }, ptr %186, i32 0, i32 1
  %190 = load float, ptr %189, align 4
  %191 = fpext float %190 to double
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.11, i32 noundef %175, double noundef %183, double noundef %191) #6
  br label %193

193:                                              ; preds = %132
  %194 = load i32, ptr %10, align 4, !tbaa !5
  %195 = add i32 %194, 1
  store i32 %195, ptr %10, align 4, !tbaa !5
  br label %128, !llvm.loop !15

196:                                              ; preds = %128
  %197 = load ptr, ptr %16, align 8, !tbaa !11
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.12) #6
  %199 = load ptr, ptr %16, align 8, !tbaa !11
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.13) #6
  %201 = load ptr, ptr %16, align 8, !tbaa !11
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.14) #6
  %203 = load ptr, ptr %16, align 8, !tbaa !11
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.15) #6
  %205 = load ptr, ptr %16, align 8, !tbaa !11
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.16) #6
  %207 = load ptr, ptr %16, align 8, !tbaa !11
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.17) #6
  %209 = load ptr, ptr %16, align 8, !tbaa !11
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef @.str.18) #6
  %211 = load ptr, ptr %16, align 8, !tbaa !11
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.19) #6
  %213 = load ptr, ptr %16, align 8, !tbaa !11
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.20) #6
  %215 = load ptr, ptr %16, align 8, !tbaa !11
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.21) #6
  %217 = load ptr, ptr %16, align 8, !tbaa !11
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.22) #6
  %219 = load ptr, ptr %16, align 8, !tbaa !11
  %220 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %219, ptr noundef @.str.23) #6
  %221 = load ptr, ptr %16, align 8, !tbaa !11
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str.24) #6
  %223 = load ptr, ptr %16, align 8, !tbaa !11
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef @.str.17) #6
  %225 = load ptr, ptr %16, align 8, !tbaa !11
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef @.str.25) #6
  %227 = load ptr, ptr %16, align 8, !tbaa !11
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %227, ptr noundef @.str.19) #6
  %229 = load ptr, ptr %16, align 8, !tbaa !11
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef @.str.20) #6
  %231 = load ptr, ptr %16, align 8, !tbaa !11
  %232 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef @.str.21) #6
  %233 = load ptr, ptr %16, align 8, !tbaa !11
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef @.str.26) #6
  %235 = load ptr, ptr %16, align 8, !tbaa !11
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.27) #6
  %237 = load ptr, ptr %16, align 8, !tbaa !11
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.28) #6
  %239 = load ptr, ptr %16, align 8, !tbaa !11
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %239, ptr noundef @.str.17) #6
  %241 = load ptr, ptr %16, align 8, !tbaa !11
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.29) #6
  %243 = load ptr, ptr %16, align 8, !tbaa !11
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.19) #6
  %245 = load ptr, ptr %16, align 8, !tbaa !11
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str.20) #6
  %247 = load ptr, ptr %16, align 8, !tbaa !11
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef @.str.21) #6
  %249 = load ptr, ptr %16, align 8, !tbaa !11
  %250 = call i32 @fclose(ptr noundef %249)
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef @.str)
  %252 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %253 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %253)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %254 = load i32, ptr %1, align 4
  ret i32 %254
}

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

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

declare i32 @firfilt_crcf_print(ptr noundef) #2

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

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

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

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

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

declare i32 @firfilt_crcf_destroy(ptr noundef) #2

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

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

declare i32 @fclose(ptr noundef) #2

declare i32 @printf(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 void @llvm.stackrestore.p0(ptr) #3

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 = { nocallback nofree nosync nounwind willreturn }
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 = !{!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 [33 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 [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 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 [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.31 = 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 = tail call ptr @firfilt_crcf_create_dc_blocker(i32 noundef 25, float noundef 3.000000e+01) #5
  %2 = tail call i32 @firfilt_crcf_print(ptr noundef %1) #5
  %3 = alloca [1200 x { float, float }], align 16
  %4 = alloca [1200 x { float, float }], align 16
  %5 = alloca [1200 x { float, float }], align 16
  br label %6

6:                                                ; preds = %0, %6
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %6 ]
  %7 = trunc nuw nsw i64 %indvars.iv to i32
  %8 = uitofp nneg i32 %7 to float
  %9 = fmul float %8, 0x3F1A36E2E0000000
  %10 = fmul float %9, %8
  %11 = call float @llvm.fmuladd.f32(float %8, float 0x3FC5C28F60000000, float %10)
  %12 = fmul float %11, 0.000000e+00
  %.sroa.042.0.vec.insert = insertelement <2 x float> poison, float %12, i64 0
  %.sroa.042.4.vec.insert = insertelement <2 x float> %.sroa.042.0.vec.insert, float %11, i64 1
  %13 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.042.4.vec.insert) #5
  %14 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv
  store <2 x float> %13, ptr %14, align 8
  %15 = fmul float %8, 0x3F7CAC0840000000
  %.sroa.039.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %15, i64 1
  %16 = call <2 x float> @cexpf(<2 x float> noundef %.sroa.039.4.vec.insert) #5
  %17 = getelementptr inbounds { float, float }, ptr %4, i64 %indvars.iv
  %18 = fmul <2 x float> %16, <float 2.000000e+00, float 2.000000e+00>
  %19 = fadd <2 x float> %13, %18
  store <2 x float> %19, ptr %17, align 8
  %20 = call i32 @firfilt_crcf_push(ptr noundef %1, <2 x float> noundef %19) #5
  %21 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv
  %22 = call i32 @firfilt_crcf_execute(ptr noundef %1, ptr noundef nonnull %21) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1200
  br i1 %exitcond.not, label %23, label %6, !llvm.loop !5

23:                                               ; preds = %6
  %24 = call i32 @firfilt_crcf_destroy(ptr noundef %1) #5
  %25 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str) #5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.3) #5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.4) #5
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.5) #5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.6, i32 noundef 1200) #5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.7) #5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.8) #5
  br label %33

33:                                               ; preds = %23, %33
  %indvars.iv82 = phi i64 [ 0, %23 ], [ %indvars.iv.next83, %33 ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %34 = getelementptr inbounds { float, float }, ptr %3, i64 %indvars.iv82
  %35 = load float, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %34, i64 4
  %37 = fpext float %35 to double
  %38 = load float, ptr %36, align 4
  %39 = fpext float %38 to double
  %40 = trunc nuw nsw i64 %indvars.iv.next83 to i32
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.9, i32 noundef %40, double noundef %37, double noundef %39) #5
  %42 = getelementptr inbounds { float, float }, ptr %4, i64 %indvars.iv82
  %43 = load float, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr %42, i64 4
  %45 = fpext float %43 to double
  %46 = load float, ptr %44, align 4
  %47 = fpext float %46 to double
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.10, i32 noundef %40, double noundef %45, double noundef %47) #5
  %49 = getelementptr inbounds { float, float }, ptr %5, i64 %indvars.iv82
  %50 = load float, ptr %49, align 8
  %51 = getelementptr inbounds i8, ptr %49, i64 4
  %52 = fpext float %50 to double
  %53 = load float, ptr %51, align 4
  %54 = fpext float %53 to double
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.11, i32 noundef %40, double noundef %52, double noundef %54) #5
  %exitcond85.not = icmp eq i64 %indvars.iv.next83, 1200
  br i1 %exitcond85.not, label %56, label %33, !llvm.loop !7

56:                                               ; preds = %33
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.12) #5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.13) #5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.14) #5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.15) #5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.16) #5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.17) #5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.18) #5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.19) #5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.20) #5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.21) #5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.22) #5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.23) #5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.24) #5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.17) #5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.25) #5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.19) #5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.20) #5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.21) #5
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.26) #5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.27) #5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.28) #5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.17) #5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.29) #5
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.19) #5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.20) #5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.21) #5
  %83 = call i32 @fclose(ptr noundef %25)
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef nonnull @.str)
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  ret i32 0
}

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

declare i32 @firfilt_crcf_print(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

declare i32 @firfilt_crcf_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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!7, !6}


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