#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double pow(double, double);
float iir5_c0(float fq) {
  double f, dt1;
  f = fq;
  f = f + (double)0.25;
  f = pow(f, (double)1.02);
  dt1 = (double)36.927768658067;
  dt1 += (double)-70.589472628117 * f;
  dt1 += (double)72.191321694731 * f * f;
  dt1 += (double)-31.339811219801 * f * f * f;
  dt1 += (double)-10.505632906345 / f;
  dt1 += (double)1.399038105205 / (f * f);
  dt1 += (double)-0.043679124720 / (f * f * f);
  return (float)dt1;
}


x86 assembly (clang, -O0):
<iir5_c0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xf0d(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xeee(%rip),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  0xed4(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xeb5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe98(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe6c(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe3b(%rip),%xmm0
divsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xe12(%rip),%xmm0
divsd  %xmm1,%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xde5(%rip),%xmm0
divsd  %xmm1,%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iir5_c0>:
push   %rax
cvtss2sd %xmm0,%xmm0
addsd  0xee3(%rip),%xmm0
movsd  0xee3(%rip),%xmm1
call   1030 <pow@plt>
movsd  0xede(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xeda(%rip),%xmm1
movsd  0xeda(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  0xece(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  0xebe(%rip),%xmm2
divsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm0
unpcklpd %xmm0,%xmm1
movapd 0xeae(%rip),%xmm0
divpd  %xmm1,%xmm0
addsd  %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
subsd  %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtsd2ss %xmm2,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @iir5_c0(float %0) {
%2 = alloca float
%3 = alloca double
%4 = alloca double
store float %0, float* %2
%5 = load float, float* %2
%6 = fpext float %5 to double
store double %6, double* %3
%7 = load double, double* %3
%8 = fadd double %7, 2.500000e-01
store double %8, double* %3
%9 = load double, double* %3
%10 = call double @pow(double %9, double 1.020000e+00)
store double %10, double* %3
store double 0x404276C11F965367, double* %4
%11 = load double, double* %3
%12 = load double, double* %4
%13 = call double @llvm.fmuladd.f64(double 0xC051A5B9EB66E994, double %11, double %12)
store double %13, double* %4
%14 = load double, double* %3
%15 = fmul double 0x40520C3E9D5978A3, %14
%16 = load double, double* %3
%17 = load double, double* %4
%18 = call double @llvm.fmuladd.f64(double %15, double %16, double %17)
store double %18, double* %4
%19 = load double, double* %3
%20 = fmul double 0xC03F56FDDE3BDBF2, %19
%21 = load double, double* %3
%22 = fmul double %20, %21
%23 = load double, double* %3
%24 = load double, double* %4
%25 = call double @llvm.fmuladd.f64(double %22, double %23, double %24)
store double %25, double* %4
%26 = load double, double* %3
%27 = fdiv double 0xC02502E250F91100, %26
%28 = load double, double* %4
%29 = fadd double %28, %27
store double %29, double* %4
%30 = load double, double* %3
%31 = load double, double* %3
%32 = fmul double %30, %31
%33 = fdiv double 0x3FF66275C7BB699B, %32
%34 = load double, double* %4
%35 = fadd double %34, %33
store double %35, double* %4
%36 = load double, double* %3
%37 = load double, double* %3
%38 = fmul double %36, %37
%39 = load double, double* %3
%40 = fmul double %38, %39
%41 = fdiv double 0xBFA65D1C38616FAD, %40
%42 = load double, double* %4
%43 = fadd double %42, %41
store double %43, double* %4
%44 = load double, double* %4
%45 = fptrunc double %44 to float
ret float %45
}

LLVM IR (-O2):
define float @iir5_c0(float %0) {
%2 = fpext float %0 to double
%3 = fadd double %2, 2.500000e-01
%4 = tail call double @pow(double %3, double 1.020000e+00)
%5 = tail call double @llvm.fmuladd.f64(double %4, double 0xC051A5B9EB66E994, double 0x404276C11F965367)
%6 = fmul double %4, 0x40520C3E9D5978A3
%7 = tail call double @llvm.fmuladd.f64(double %6, double %4, double %5)
%8 = fmul double %4, 0xC03F56FDDE3BDBF2
%9 = fmul double %4, %8
%10 = tail call double @llvm.fmuladd.f64(double %9, double %4, double %7)
%11 = fdiv double 0x402502E250F91100, %4
%12 = fsub double %10, %11
%13 = fmul double %4, %4
%14 = fmul double %4, %13
%15 = insertelement <2 x double> poison, double %13, i64 0
%16 = insertelement <2 x double> %15, double %14, i64 1
%17 = fdiv <2 x double> <double 0x3FF66275C7BB699B, double 0x3FA65D1C38616FAD>, %16
%18 = extractelement <2 x double> %17, i64 0
%19 = fadd double %18, %12
%20 = extractelement <2 x double> %17, i64 1
%21 = fsub double %19, %20
%22 = fptrunc double %21 to float
ret float %22
}