#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 /*<<< orphan*/ DSENSITIVITY(double);
double __BUILTIN_DAED_DBETWEEN_WITH_ULP(double, double);
int main(void) {
  double x;
  double res;
  x = __BUILTIN_DAED_DBETWEEN_WITH_ULP(0.0, 10.0);
  res = 1.0 + 0.5 * x - 0.125 * x * x + 0.0625 * x * x * x -
        0.0390625 * x * x * x * x;
  DSENSITIVITY(res);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  0xeee(%rip),%xmm1
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
movsd  0xec7(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xec3(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xea7(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe6e(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe47(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xed7(%rip),%xmm1
xorpd  %xmm0,%xmm0
call   1030 <__BUILTIN_DAED_DBETWEEN_WITH_ULP@plt>
movsd  0xece(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xeca(%rip),%xmm1
movsd  0xeca(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  0xebe(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  0xeae(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <DSENSITIVITY@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
store i32 0, i32* %1
%4 = call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 0.000000e+00, double 1.000000e+01)
store double %4, double* %2
%5 = load double, double* %2
%6 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %5, double 1.000000e+00)
%7 = load double, double* %2
%8 = fmul double 1.250000e-01, %7
%9 = load double, double* %2
%10 = fneg double %8
%11 = call double @llvm.fmuladd.f64(double %10, double %9, double %6)
%12 = load double, double* %2
%13 = fmul double 6.250000e-02, %12
%14 = load double, double* %2
%15 = fmul double %13, %14
%16 = load double, double* %2
%17 = call double @llvm.fmuladd.f64(double %15, double %16, double %11)
%18 = load double, double* %2
%19 = fmul double 3.906250e-02, %18
%20 = load double, double* %2
%21 = fmul double %19, %20
%22 = load double, double* %2
%23 = fmul double %21, %22
%24 = load double, double* %2
%25 = fneg double %23
%26 = call double @llvm.fmuladd.f64(double %25, double %24, double %17)
store double %26, double* %3
%27 = load double, double* %3
%28 = call i32 @DSENSITIVITY(double %27)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call double @__BUILTIN_DAED_DBETWEEN_WITH_ULP(double 0.000000e+00, double 1.000000e+01)
%2 = tail call double @llvm.fmuladd.f64(double %1, double 5.000000e-01, double 1.000000e+00)
%3 = fmul double %1, -1.250000e-01
%4 = tail call double @llvm.fmuladd.f64(double %3, double %1, double %2)
%5 = fmul double %1, 6.250000e-02
%6 = fmul double %1, %5
%7 = tail call double @llvm.fmuladd.f64(double %6, double %1, double %4)
%8 = fmul double %1, -3.906250e-02
%9 = fmul double %1, %8
%10 = fmul double %1, %9
%11 = tail call double @llvm.fmuladd.f64(double %10, double %1, double %7)
%12 = tail call i32 @DSENSITIVITY(double %11)
ret i32 0
}