#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, int);
double iterate(double x_n) {
  double res = (1.07 * (-13.302875 * pow(x_n, 4) + 28.75 * pow(x_n, 3) +
                        -23.31 * pow(x_n, 2) + 7.68 * x_n));
  return res;
}


x86 assembly (clang, -O0):
<iterate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
movsd  0xed0(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xebc(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0x18(%rbp),%xmm1
movsd  0xe8b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  0xe6e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe56(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iterate>:
sub    $0x18,%rsp
movsd  %xmm0,0x10(%rsp)
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
mulsd  0xebe(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xeb8(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
mulsd  0xe9e(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xe98(%rip),%xmm1
addsd  0x8(%rsp),%xmm0
addsd  %xmm1,%xmm0
mulsd  0xe8e(%rip),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @iterate(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = call double @pow(double %4, i32 4)
%6 = load double, double* %2
%7 = call double @pow(double %6, i32 3)
%8 = fmul double 2.875000e+01, %7
%9 = call double @llvm.fmuladd.f64(double 0xC02A9B126E978D50, double %5, double %8)
%10 = load double, double* %2
%11 = call double @pow(double %10, i32 2)
%12 = call double @llvm.fmuladd.f64(double -2.331000e+01, double %11, double %9)
%13 = load double, double* %2
%14 = call double @llvm.fmuladd.f64(double 0x401EB851EB851EB8, double %13, double %12)
%15 = fmul double 1.070000e+00, %14
store double %15, double* %3
%16 = load double, double* %3
ret double %16
}

LLVM IR (-O2):
define double @iterate(double %0) {
%2 = tail call double @pow(double %0, i32 4)
%3 = tail call double @pow(double %0, i32 3)
%4 = fmul double %3, 2.875000e+01
%5 = tail call double @llvm.fmuladd.f64(double %2, double 0xC02A9B126E978D50, double %4)
%6 = tail call double @pow(double %0, i32 2)
%7 = tail call double @llvm.fmuladd.f64(double %6, double -2.331000e+01, double %5)
%8 = tail call double @llvm.fmuladd.f64(double %0, double 0x401EB851EB851EB8, double %7)
%9 = fmul double %8, 1.070000e+00
ret double %9
}