#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 cos(float);
double pow(float, double);
double sin(float);
float fint(float x) {
  return 4.0 * x * (x * x - 7.0) * sin(x) -
         (pow(x, 4.0) - 14.0 * (x * x) + 28.0) * cos(x);
}


x86 assembly (clang, -O0):
<fint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xec2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x4(%rbp),%xmm1
mulss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  0xeb0(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x18(%rbp)
movss  -0x4(%rbp),%xmm0
movsd  0xe7f(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movss  -0x4(%rbp),%xmm0
mulss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe59(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe41(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
call   1040 <cos@plt>
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x10(%rbp),%xmm0
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fint>:
sub    $0x28,%rsp
cvtss2sd %xmm0,%xmm2
mulsd  0xec0(%rip),%xmm2
movaps %xmm0,%xmm1
movss  %xmm0,0xc(%rsp)
mulss  %xmm0,%xmm1
cvtss2sd %xmm1,%xmm3
movsd  %xmm3,0x10(%rsp)
movsd  0xea9(%rip),%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm1
movsd  %xmm1,0x20(%rsp)
call   1030 <sin@plt>
movsd  %xmm0,0x18(%rsp)
movss  0xc(%rsp),%xmm0
movsd  0xe7a(%rip),%xmm1
call   1050 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xe77(%rip),%xmm1
addsd  %xmm0,%xmm1
addsd  0xe73(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movss  0xc(%rsp),%xmm0
call   1040 <cos@plt>
mulsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define float @fint(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = fmul double 4.000000e+00, %4
%6 = load float, float* %2
%7 = load float, float* %2
%8 = fmul float %6, %7
%9 = fpext float %8 to double
%10 = fsub double %9, 7.000000e+00
%11 = fmul double %5, %10
%12 = load float, float* %2
%13 = call double @sin(float %12)
%14 = load float, float* %2
%15 = call double @pow(float %14, double 4.000000e+00)
%16 = load float, float* %2
%17 = load float, float* %2
%18 = fmul float %16, %17
%19 = fpext float %18 to double
%20 = call double @llvm.fmuladd.f64(double -1.400000e+01, double %19, double %15)
%21 = fadd double %20, 2.800000e+01
%22 = load float, float* %2
%23 = call double @cos(float %22)
%24 = fmul double %21, %23
%25 = fneg double %24
%26 = call double @llvm.fmuladd.f64(double %11, double %13, double %25)
%27 = fptrunc double %26 to float
ret float %27
}

LLVM IR (-O2):
define float @fint(float %0) {
%2 = fpext float %0 to double
%3 = fmul double %2, 4.000000e+00
%4 = fmul float %0, %0
%5 = fpext float %4 to double
%6 = fadd double %5, -7.000000e+00
%7 = fmul double %3, %6
%8 = tail call double @sin(float %0)
%9 = tail call double @pow(float %0, double 4.000000e+00)
%10 = tail call double @llvm.fmuladd.f64(double %5, double -1.400000e+01, double %9)
%11 = fadd double %10, 2.800000e+01
%12 = tail call double @cos(float %0)
%13 = fneg double %11
%14 = fmul double %12, %13
%15 = tail call double @llvm.fmuladd.f64(double %7, double %8, double %14)
%16 = fptrunc double %15 to float
ret float %16
}