#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 */
int pow(double, int);
double fun_int(double x) {
  return (.2 + (25 * x) + (200 * (pow(x, 2))) + (675 * (pow(x, 3))) -
          (900 * (pow(x, 4))) + (400 * (pow(x, 5))));
}


x86 assembly (clang, -O0):
<fun_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xed2(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  -0x28(%rbp),%xmm0
imul   $0xc8,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
movsd  -0x20(%rbp),%xmm0
imul   $0x2a3,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  -0x18(%rbp),%xmm0
imul   $0x384,%eax,%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x5,%edi
call   1030 <pow@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0x190,%eax,%eax
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_int>:
sub    $0x18,%rsp
movsd  %xmm0,0x10(%rsp)
movsd  0xede(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xeda(%rip),%xmm1
movsd  %xmm1,0x8(%rsp)
mov    $0x2,%edi
call   1030 <pow@plt>
imul   $0xc8,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x3,%edi
call   1030 <pow@plt>
imul   $0x2a3,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
imul   $0x384,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x5,%edi
call   1030 <pow@plt>
imul   $0x190,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @fun_int(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @llvm.fmuladd.f64(double 2.500000e+01, double %3, double 2.000000e-01)
%5 = load double, double* %2
%6 = call i32 @pow(double %5, i32 2)
%7 = mul nsw i32 200, %6
%8 = sitofp i32 %7 to double
%9 = fadd double %4, %8
%10 = load double, double* %2
%11 = call i32 @pow(double %10, i32 3)
%12 = mul nsw i32 675, %11
%13 = sitofp i32 %12 to double
%14 = fadd double %9, %13
%15 = load double, double* %2
%16 = call i32 @pow(double %15, i32 4)
%17 = mul nsw i32 900, %16
%18 = sitofp i32 %17 to double
%19 = fsub double %14, %18
%20 = load double, double* %2
%21 = call i32 @pow(double %20, i32 5)
%22 = mul nsw i32 400, %21
%23 = sitofp i32 %22 to double
%24 = fadd double %19, %23
ret double %24
}

LLVM IR (-O2):
define double @fun_int(double %0) {
%2 = tail call double @llvm.fmuladd.f64(double %0, double 2.500000e+01, double 2.000000e-01)
%3 = tail call i32 @pow(double %0, i32 2)
%4 = mul nsw i32 %3, 200
%5 = sitofp i32 %4 to double
%6 = fadd double %2, %5
%7 = tail call i32 @pow(double %0, i32 3)
%8 = mul nsw i32 %7, 675
%9 = sitofp i32 %8 to double
%10 = fadd double %6, %9
%11 = tail call i32 @pow(double %0, i32 4)
%12 = mul nsw i32 %11, 900
%13 = sitofp i32 %12 to double
%14 = fsub double %10, %13
%15 = tail call i32 @pow(double %0, i32 5)
%16 = mul nsw i32 %15, 400
%17 = sitofp i32 %16 to double
%18 = fadd double %14, %17
ret double %18
}