#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 atan(double);
double log(double);
double f1a(double x) {
  return (((-4.0 * x * x * x) / (-1.0 + x * x * x * x) - 2.0 * atan(x) -
           log(-1.0 + x) + log(1.0 + x)) /
          16.0);
}


x86 assembly (clang, -O0):
<f1a>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xee3(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xeac(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <atan@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe78(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe4d(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  0xe27(%rip),%xmm1
divsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f1a>:
sub    $0x18,%rsp
movsd  0xed4(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm2
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm0,0x10(%rsp)
addsd  0xeae(%rip),%xmm1
divsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
call   1030 <atan@plt>
addsd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0xe83(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
call   1040 <log@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
addsd  0xe62(%rip),%xmm0
call   1040 <log@plt>
addsd  0x8(%rsp),%xmm0
mulsd  0xe57(%rip),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @f1a(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double -4.000000e+00, %3
%5 = load double, double* %2
%6 = fmul double %4, %5
%7 = load double, double* %2
%8 = fmul double %6, %7
%9 = load double, double* %2
%10 = load double, double* %2
%11 = fmul double %9, %10
%12 = load double, double* %2
%13 = fmul double %11, %12
%14 = load double, double* %2
%15 = call double @llvm.fmuladd.f64(double %13, double %14, double -1.000000e+00)
%16 = fdiv double %8, %15
%17 = load double, double* %2
%18 = call double @atan(double %17)
%19 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %18, double %16)
%20 = load double, double* %2
%21 = fadd double -1.000000e+00, %20
%22 = call double @log(double %21)
%23 = fsub double %19, %22
%24 = load double, double* %2
%25 = fadd double 1.000000e+00, %24
%26 = call double @log(double %25)
%27 = fadd double %23, %26
%28 = fdiv double %27, 1.600000e+01
ret double %28
}

LLVM IR (-O2):
define double @f1a(double %0) {
%2 = fmul double %0, -4.000000e+00
%3 = fmul double %2, %0
%4 = fmul double %3, %0
%5 = fmul double %0, %0
%6 = fmul double %5, %0
%7 = tail call double @llvm.fmuladd.f64(double %6, double %0, double -1.000000e+00)
%8 = fdiv double %4, %7
%9 = tail call double @atan(double %0)
%10 = tail call double @llvm.fmuladd.f64(double %9, double -2.000000e+00, double %8)
%11 = fadd double %0, -1.000000e+00
%12 = tail call double @log(double %11)
%13 = fsub double %10, %12
%14 = fadd double %0, 1.000000e+00
%15 = tail call double @log(double %14)
%16 = fadd double %13, %15
%17 = fmul double %16, 6.250000e-02
ret double %17
}