#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 expl(int);
long double fabsl(long double);
int pow(long double, int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, const char *argv[]) {
  long double x1, x2, x3;
  long double c;
  long double approx1, approx2, approx3;
  long double exact1, exact2, exact3;
  long double error1, error2, error3;
  x1 = 1.0 / 8.0;
  x2 = 1.0 / 4.0;
  x3 = 1.0 / 2.0;
  c = 0.0;
  exact1 = 1 / expl(pow(x1, 2));
  exact2 = 1 / expl(pow(x2, 2));
  exact3 = 1 / expl(pow(x3, 2));
  approx1 = 1 - pow(x1, 2) + pow(x1, 4) / 2 - pow(x1, 6) / 6 + pow(x1, 8) / 24 -
            pow(x1, 10) / 120 + pow(x1, 12) / 720;
  approx2 = 1 - pow(x2, 2) + pow(x2, 4) / 2 - pow(x2, 6) / 6 + pow(x2, 8) / 24 -
            pow(x2, 10) / 120 + pow(x2, 12) / 720;
  approx3 = 1 - pow(x3, 2) + pow(x3, 4) / 2 - pow(x3, 6) / 6 + pow(x3, 8) / 24 -
            pow(x3, 10) / 120 + pow(x3, 12) / 720;
  error1 = fabsl(exact1 - approx1);
  error2 = fabsl(exact2 - approx2);
  error3 = fabsl(exact3 - approx3);
  printf("Values for x = 1/8\n");
  printf("Exact = %0.15Lf Approx. = %0.15Lf Absolute Error = %0.15Lf\n\n",
         exact1, approx1, error1);
  printf("Values for x = 1/4\n");
  printf("Exact = %0.15Lf Approx. = %0.15Lf Absolute Error = %0.15Lf\n\n",
         exact2, approx2, error2);
  printf("Values for x = 1/2\n");
  printf("Exact = %0.15Lf Approx. = %0.15Lf Absolute Error = %0.15Lf\n\n",
         exact3, approx3, error3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
flds   0xeb1(%rip)
fstpt  -0x20(%rbp)
flds   0xeac(%rip)
fstpt  -0x30(%rbp)
flds   0xea7(%rip)
fstpt  -0x40(%rbp)
fldz
fstpt  -0x50(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
mov    $0x2,%edi
mov    %edi,-0x138(%rbp)
call   1050 <pow@plt>
mov    %eax,%edi
call   1040 <expl@plt>
mov    -0x138(%rbp),%edi
mov    %eax,%ecx
mov    $0x1,%eax
mov    %eax,-0x164(%rbp)
xor    %edx,%edx
mov    %edx,-0x10c(%rbp)
idiv   %ecx
mov    %eax,-0xf8(%rbp)
fildl  -0xf8(%rbp)
fstpt  -0x90(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    %eax,%edi
call   1040 <expl@plt>
mov    -0x138(%rbp),%edi
mov    -0x10c(%rbp),%edx
mov    %eax,%ecx
mov    -0x164(%rbp),%eax
idiv   %ecx
mov    %eax,-0xf4(%rbp)
fildl  -0xf4(%rbp)
fstpt  -0xa0(%rbp)
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    %eax,%edi
call   1040 <expl@plt>
mov    -0x138(%rbp),%edi
mov    -0x10c(%rbp),%edx
mov    %eax,%ecx
mov    -0x164(%rbp),%eax
idiv   %ecx
mov    %eax,-0xf0(%rbp)
fildl  -0xf0(%rbp)
fstpt  -0xb0(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    %eax,-0x160(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
mov    $0x4,%edi
mov    %edi,-0x134(%rbp)
call   1050 <pow@plt>
mov    -0x160(%rbp),%ecx
mov    %eax,%edx
shr    $0x1f,%edx
add    %edx,%eax
sar    %eax
sub    %ecx,%eax
mov    %eax,-0x15c(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
mov    $0x6,%edi
mov    %edi,-0x12c(%rbp)
call   1050 <pow@plt>
mov    %eax,%ecx
mov    -0x15c(%rbp),%eax
movslq %ecx,%rcx
imul   $0x2aaaaaab,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x158(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
mov    $0x8,%edi
mov    %edi,-0x128(%rbp)
call   1050 <pow@plt>
mov    %eax,%ecx
mov    -0x158(%rbp),%eax
movslq %ecx,%rcx
imul   $0x2aaaaaab,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x2,%ecx
add    %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x154(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
mov    $0xa,%edi
mov    %edi,-0x120(%rbp)
call   1050 <pow@plt>
mov    %eax,%edx
mov    -0x154(%rbp),%eax
movslq %edx,%rcx
imul   $0xffffffff88888889,%rcx,%rcx
shr    $0x20,%rcx
add    %edx,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x150(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
mov    $0xc,%edi
mov    %edi,-0x118(%rbp)
call   1050 <pow@plt>
mov    -0x150(%rbp),%ecx
mov    -0x138(%rbp),%edi
movslq %eax,%rdx
imul   $0xffffffffb60b60b7,%rdx,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%eax
shr    $0x1f,%eax
sar    $0x9,%edx
add    %eax,%edx
mov    %ecx,%eax
mov    %edx,%ecx
lea    0x1(%rax,%rcx,1),%eax
mov    %eax,-0xec(%rbp)
fildl  -0xec(%rbp)
fstpt  -0x60(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x134(%rbp),%edi
mov    %eax,-0x14c(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x14c(%rbp),%ecx
mov    -0x12c(%rbp),%edi
mov    %eax,%edx
shr    $0x1f,%edx
add    %edx,%eax
sar    %eax
sub    %ecx,%eax
mov    %eax,-0x148(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x128(%rbp),%edi
mov    %eax,%ecx
mov    -0x148(%rbp),%eax
movslq %ecx,%rcx
imul   $0x2aaaaaab,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x144(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x120(%rbp),%edi
mov    %eax,%ecx
mov    -0x144(%rbp),%eax
movslq %ecx,%rcx
imul   $0x2aaaaaab,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x2,%ecx
add    %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x140(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x118(%rbp),%edi
mov    %eax,%edx
mov    -0x140(%rbp),%eax
movslq %edx,%rcx
imul   $0xffffffff88888889,%rcx,%rcx
shr    $0x20,%rcx
add    %edx,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x13c(%rbp)
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x13c(%rbp),%ecx
mov    -0x138(%rbp),%edi
movslq %eax,%rdx
imul   $0xffffffffb60b60b7,%rdx,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%eax
shr    $0x1f,%eax
sar    $0x9,%edx
add    %eax,%edx
mov    %ecx,%eax
mov    %edx,%ecx
lea    0x1(%rax,%rcx,1),%eax
mov    %eax,-0xe8(%rbp)
fildl  -0xe8(%rbp)
fstpt  -0x70(%rbp)
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x134(%rbp),%edi
mov    %eax,-0x130(%rbp)
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x130(%rbp),%ecx
mov    -0x12c(%rbp),%edi
mov    %eax,%edx
shr    $0x1f,%edx
add    %edx,%eax
sar    %eax
sub    %ecx,%eax
mov    %eax,-0x124(%rbp)
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x128(%rbp),%edi
mov    %eax,%ecx
mov    -0x124(%rbp),%eax
movslq %ecx,%rcx
imul   $0x2aaaaaab,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x11c(%rbp)
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x120(%rbp),%edi
mov    %eax,%ecx
mov    -0x11c(%rbp),%eax
movslq %ecx,%rcx
imul   $0x2aaaaaab,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x2,%ecx
add    %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x114(%rbp)
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x118(%rbp),%edi
mov    %eax,%edx
mov    -0x114(%rbp),%eax
movslq %edx,%rcx
imul   $0xffffffff88888889,%rcx,%rcx
shr    $0x20,%rcx
add    %edx,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x6,%ecx
add    %edx,%ecx
sub    %ecx,%eax
mov    %eax,-0x110(%rbp)
fldt   -0x40(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1050 <pow@plt>
mov    -0x110(%rbp),%edx
mov    %eax,%ecx
mov    -0x10c(%rbp),%eax
movslq %ecx,%rsi
imul   $0xffffffffb60b60b7,%rsi,%rsi
shr    $0x20,%rsi
add    %ecx,%esi
mov    %esi,%ecx
shr    $0x1f,%ecx
sar    $0x9,%esi
add    %ecx,%esi
mov    %edx,%ecx
mov    %esi,%edx
lea    0x1(%rcx,%rdx,1),%ecx
mov    %ecx,-0xe4(%rbp)
fildl  -0xe4(%rbp)
fstpt  -0x80(%rbp)
fldt   -0x90(%rbp)
fldt   -0x60(%rbp)
fsubrp %st,%st(1)
fabs
fstpt  -0xc0(%rbp)
fldt   -0xa0(%rbp)
fldt   -0x70(%rbp)
fsubrp %st,%st(1)
fabs
fstpt  -0xd0(%rbp)
fldt   -0xb0(%rbp)
fldt   -0x80(%rbp)
fsubrp %st,%st(1)
fabs
fstpt  -0xe0(%rbp)
lea    0x9bf(%rip),%rdi
mov    %al,-0xf9(%rbp)
call   1030 <printf@plt>
mov    -0xf9(%rbp),%al
fldt   -0x90(%rbp)
fldt   -0x60(%rbp)
fldt   -0xc0(%rbp)
mov    %rsp,%rcx
fstpt  0x20(%rcx)
fstpt  0x10(%rcx)
fstpt  (%rcx)
lea    0x9a1(%rip),%rdi
mov    %rdi,-0x108(%rbp)
call   1030 <printf@plt>
mov    -0xf9(%rbp),%al
lea    0x9c5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x108(%rbp),%rdi
mov    -0xf9(%rbp),%al
fldt   -0xa0(%rbp)
fldt   -0x70(%rbp)
fldt   -0xd0(%rbp)
mov    %rsp,%rcx
fstpt  0x20(%rcx)
fstpt  0x10(%rcx)
fstpt  (%rcx)
call   1030 <printf@plt>
mov    -0xf9(%rbp),%al
lea    0x99b(%rip),%rdi
call   1030 <printf@plt>
fldt   -0xb0(%rbp)
fldt   -0x80(%rbp)
fldt   -0xe0(%rbp)
mov    %rsp,%rax
fstpt  0x20(%rax)
fstpt  0x10(%rax)
fstpt  (%rax)
lea    0x924(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0xc0,%rsp
flds   0xeaf(%rip)
fld    %st(0)
fstpt  0x3c(%rsp)
fstpt  (%rsp)
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %eax,%edi
call   1050 <expl@plt>
lea    0x1(%rax),%ecx
xor    %ebx,%ebx
cmp    $0x3,%ecx
cmovae %ebx,%eax
mov    %eax,0x60(%rsp)
fildl  0x60(%rsp)
fstpt  0x90(%rsp)
flds   0xe79(%rip)
fld    %st(0)
fstpt  0x48(%rsp)
fstpt  (%rsp)
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %eax,%edi
call   1050 <expl@plt>
lea    0x1(%rax),%ecx
cmp    $0x3,%ecx
cmovae %ebx,%eax
mov    %eax,0x64(%rsp)
fildl  0x64(%rsp)
fstpt  0x84(%rsp)
flds   0xe45(%rip)
fld    %st(0)
fstpt  0x54(%rsp)
fstpt  (%rsp)
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %eax,%edi
call   1050 <expl@plt>
lea    0x1(%rax),%ecx
cmp    $0x3,%ecx
cmovae %ebx,%eax
mov    %eax,0x68(%rsp)
fildl  0x68(%rsp)
fstpt  0x78(%rsp)
fldt   0x3c(%rsp)
fstpt  (%rsp)
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %eax,%ebx
fldt   0x3c(%rsp)
fstpt  (%rsp)
mov    $0x4,%edi
call   1060 <pow@plt>
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
sub    %ebx,%ebp
fldt   0x3c(%rsp)
fstpt  (%rsp)
mov    $0x6,%edi
call   1060 <pow@plt>
cltq
imul   $0xffffffffd5555555,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
shr    $0x20,%rbx
add    %eax,%ebx
add    %ebp,%ebx
fldt   0x3c(%rsp)
fstpt  (%rsp)
mov    $0x8,%edi
call   1060 <pow@plt>
cltq
imul   $0x2aaaaaab,%rax,%r14
mov    %r14,%rax
shr    $0x3f,%rax
shr    $0x20,%r14
sar    $0x2,%r14d
add    %eax,%r14d
add    %ebx,%r14d
fldt   0x3c(%rsp)
fstpt  (%rsp)
mov    $0xa,%edi
call   1060 <pow@plt>
cltq
imul   $0x77777777,%rax,%rbx
shr    $0x20,%rbx
sub    %eax,%ebx
mov    %ebx,%eax
shr    $0x1f,%eax
sar    $0x6,%ebx
add    %eax,%ebx
add    %r14d,%ebx
fldt   0x3c(%rsp)
fstpt  (%rsp)
mov    $0xc,%edi
call   1060 <pow@plt>
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %ecx,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x9,%eax
add    %ecx,%eax
add    %ebx,%eax
add    $0x1,%eax
mov    %eax,0x6c(%rsp)
fildl  0x6c(%rsp)
fstpt  0x3c(%rsp)
fldt   0x48(%rsp)
fstpt  (%rsp)
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %eax,%ebx
fldt   0x48(%rsp)
fstpt  (%rsp)
mov    $0x4,%edi
call   1060 <pow@plt>
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
sub    %ebx,%ebp
fldt   0x48(%rsp)
fstpt  (%rsp)
mov    $0x6,%edi
call   1060 <pow@plt>
cltq
imul   $0xffffffffd5555555,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
shr    $0x20,%rbx
add    %eax,%ebx
add    %ebp,%ebx
fldt   0x48(%rsp)
fstpt  (%rsp)
mov    $0x8,%edi
call   1060 <pow@plt>
cltq
imul   $0x2aaaaaab,%rax,%r14
mov    %r14,%rax
shr    $0x3f,%rax
shr    $0x20,%r14
sar    $0x2,%r14d
add    %eax,%r14d
add    %ebx,%r14d
fldt   0x48(%rsp)
fstpt  (%rsp)
mov    $0xa,%edi
call   1060 <pow@plt>
cltq
imul   $0x77777777,%rax,%rbx
shr    $0x20,%rbx
sub    %eax,%ebx
mov    %ebx,%eax
shr    $0x1f,%eax
sar    $0x6,%ebx
add    %eax,%ebx
add    %r14d,%ebx
fldt   0x48(%rsp)
fstpt  (%rsp)
mov    $0xc,%edi
call   1060 <pow@plt>
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %ecx,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x9,%eax
add    %ecx,%eax
add    %ebx,%eax
add    $0x1,%eax
mov    %eax,0x70(%rsp)
fildl  0x70(%rsp)
fstpt  0x48(%rsp)
fldt   0x54(%rsp)
fstpt  (%rsp)
mov    $0x2,%edi
call   1060 <pow@plt>
mov    %eax,%ebx
fldt   0x54(%rsp)
fstpt  (%rsp)
mov    $0x4,%edi
call   1060 <pow@plt>
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
sub    %ebx,%ebp
fldt   0x54(%rsp)
fstpt  (%rsp)
mov    $0x6,%edi
call   1060 <pow@plt>
cltq
imul   $0xffffffffd5555555,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
shr    $0x20,%rbx
add    %eax,%ebx
add    %ebp,%ebx
fldt   0x54(%rsp)
fstpt  (%rsp)
mov    $0x8,%edi
call   1060 <pow@plt>
cltq
imul   $0x2aaaaaab,%rax,%r14
mov    %r14,%rax
shr    $0x3f,%rax
shr    $0x20,%r14
sar    $0x2,%r14d
add    %eax,%r14d
add    %ebx,%r14d
fldt   0x54(%rsp)
fstpt  (%rsp)
mov    $0xa,%edi
call   1060 <pow@plt>
cltq
imul   $0x77777777,%rax,%rbx
shr    $0x20,%rbx
sub    %eax,%ebx
mov    %ebx,%eax
shr    $0x1f,%eax
sar    $0x6,%ebx
add    %eax,%ebx
add    %r14d,%ebx
fldt   0x54(%rsp)
fstpt  (%rsp)
mov    $0xc,%edi
call   1060 <pow@plt>
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %ecx,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x9,%eax
add    %ecx,%eax
add    %ebx,%eax
add    $0x1,%eax
mov    %eax,0x74(%rsp)
fildl  0x74(%rsp)
fld    %st(0)
fstpt  0x54(%rsp)
fldt   0x90(%rsp)
fldt   0x3c(%rsp)
fsubrp %st,%st(1)
fabs
fstpt  0x9c(%rsp)
fldt   0x84(%rsp)
fldt   0x48(%rsp)
fsubrp %st,%st(1)
fabs
fstpt  0xa8(%rsp)
fldt   0x78(%rsp)
fsubp  %st,%st(1)
fabs
fstpt  0xb4(%rsp)
lea    0xb46(%rip),%rdi
call   1030 <puts@plt>
fldt   0x9c(%rsp)
fstpt  0x20(%rsp)
fldt   0x3c(%rsp)
fstpt  0x10(%rsp)
fldt   0x90(%rsp)
fstpt  (%rsp)
lea    0xae0(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb1f(%rip),%rdi
call   1030 <puts@plt>
fldt   0xa8(%rsp)
fstpt  0x20(%rsp)
fldt   0x48(%rsp)
fstpt  0x10(%rsp)
fldt   0x84(%rsp)
fstpt  (%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xaff(%rip),%rdi
call   1030 <puts@plt>
fldt   0xb4(%rsp)
fstpt  0x20(%rsp)
fldt   0x54(%rsp)
fstpt  0x10(%rsp)
fldt   0x78(%rsp)
fstpt  (%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Values for x = 1/8\0A\00"
@.str.1 = [61 x i8] c"Exact = %0.15Lf Approx. = %0.15Lf Absolute Error = %0.15Lf\0A\0A\00"
@.str.2 = [20 x i8] c"Values for x = 1/4\0A\00"
@.str.3 = [20 x i8] c"Values for x = 1/2\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca x86_fp80
%7 = alloca x86_fp80
%8 = alloca x86_fp80
%9 = alloca x86_fp80
%10 = alloca x86_fp80
%11 = alloca x86_fp80
%12 = alloca x86_fp80
%13 = alloca x86_fp80
%14 = alloca x86_fp80
%15 = alloca x86_fp80
%16 = alloca x86_fp80
%17 = alloca x86_fp80
%18 = alloca x86_fp80
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store x86_fp80 0xK3FFC8000000000000000, x86_fp80* %6
store x86_fp80 0xK3FFD8000000000000000, x86_fp80* %7
store x86_fp80 0xK3FFE8000000000000000, x86_fp80* %8
store x86_fp80 0xK00000000000000000000, x86_fp80* %9
%19 = load x86_fp80, x86_fp80* %6
%20 = call i32 @pow(x86_fp80 %19, i32 2)
%21 = call i32 @expl(i32 %20)
%22 = sdiv i32 1, %21
%23 = sitofp i32 %22 to x86_fp80
store x86_fp80 %23, x86_fp80* %13
%24 = load x86_fp80, x86_fp80* %7
%25 = call i32 @pow(x86_fp80 %24, i32 2)
%26 = call i32 @expl(i32 %25)
%27 = sdiv i32 1, %26
%28 = sitofp i32 %27 to x86_fp80
store x86_fp80 %28, x86_fp80* %14
%29 = load x86_fp80, x86_fp80* %8
%30 = call i32 @pow(x86_fp80 %29, i32 2)
%31 = call i32 @expl(i32 %30)
%32 = sdiv i32 1, %31
%33 = sitofp i32 %32 to x86_fp80
store x86_fp80 %33, x86_fp80* %15
%34 = load x86_fp80, x86_fp80* %6
%35 = call i32 @pow(x86_fp80 %34, i32 2)
%36 = sub nsw i32 1, %35
%37 = load x86_fp80, x86_fp80* %6
%38 = call i32 @pow(x86_fp80 %37, i32 4)
%39 = sdiv i32 %38, 2
%40 = add nsw i32 %36, %39
%41 = load x86_fp80, x86_fp80* %6
%42 = call i32 @pow(x86_fp80 %41, i32 6)
%43 = sdiv i32 %42, 6
%44 = sub nsw i32 %40, %43
%45 = load x86_fp80, x86_fp80* %6
%46 = call i32 @pow(x86_fp80 %45, i32 8)
%47 = sdiv i32 %46, 24
%48 = add nsw i32 %44, %47
%49 = load x86_fp80, x86_fp80* %6
%50 = call i32 @pow(x86_fp80 %49, i32 10)
%51 = sdiv i32 %50, 120
%52 = sub nsw i32 %48, %51
%53 = load x86_fp80, x86_fp80* %6
%54 = call i32 @pow(x86_fp80 %53, i32 12)
%55 = sdiv i32 %54, 720
%56 = add nsw i32 %52, %55
%57 = sitofp i32 %56 to x86_fp80
store x86_fp80 %57, x86_fp80* %10
%58 = load x86_fp80, x86_fp80* %7
%59 = call i32 @pow(x86_fp80 %58, i32 2)
%60 = sub nsw i32 1, %59
%61 = load x86_fp80, x86_fp80* %7
%62 = call i32 @pow(x86_fp80 %61, i32 4)
%63 = sdiv i32 %62, 2
%64 = add nsw i32 %60, %63
%65 = load x86_fp80, x86_fp80* %7
%66 = call i32 @pow(x86_fp80 %65, i32 6)
%67 = sdiv i32 %66, 6
%68 = sub nsw i32 %64, %67
%69 = load x86_fp80, x86_fp80* %7
%70 = call i32 @pow(x86_fp80 %69, i32 8)
%71 = sdiv i32 %70, 24
%72 = add nsw i32 %68, %71
%73 = load x86_fp80, x86_fp80* %7
%74 = call i32 @pow(x86_fp80 %73, i32 10)
%75 = sdiv i32 %74, 120
%76 = sub nsw i32 %72, %75
%77 = load x86_fp80, x86_fp80* %7
%78 = call i32 @pow(x86_fp80 %77, i32 12)
%79 = sdiv i32 %78, 720
%80 = add nsw i32 %76, %79
%81 = sitofp i32 %80 to x86_fp80
store x86_fp80 %81, x86_fp80* %11
%82 = load x86_fp80, x86_fp80* %8
%83 = call i32 @pow(x86_fp80 %82, i32 2)
%84 = sub nsw i32 1, %83
%85 = load x86_fp80, x86_fp80* %8
%86 = call i32 @pow(x86_fp80 %85, i32 4)
%87 = sdiv i32 %86, 2
%88 = add nsw i32 %84, %87
%89 = load x86_fp80, x86_fp80* %8
%90 = call i32 @pow(x86_fp80 %89, i32 6)
%91 = sdiv i32 %90, 6
%92 = sub nsw i32 %88, %91
%93 = load x86_fp80, x86_fp80* %8
%94 = call i32 @pow(x86_fp80 %93, i32 8)
%95 = sdiv i32 %94, 24
%96 = add nsw i32 %92, %95
%97 = load x86_fp80, x86_fp80* %8
%98 = call i32 @pow(x86_fp80 %97, i32 10)
%99 = sdiv i32 %98, 120
%100 = sub nsw i32 %96, %99
%101 = load x86_fp80, x86_fp80* %8
%102 = call i32 @pow(x86_fp80 %101, i32 12)
%103 = sdiv i32 %102, 720
%104 = add nsw i32 %100, %103
%105 = sitofp i32 %104 to x86_fp80
store x86_fp80 %105, x86_fp80* %12
%106 = load x86_fp80, x86_fp80* %13
%107 = load x86_fp80, x86_fp80* %10
%108 = fsub x86_fp80 %106, %107
%109 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %108)
store x86_fp80 %109, x86_fp80* %16
%110 = load x86_fp80, x86_fp80* %14
%111 = load x86_fp80, x86_fp80* %11
%112 = fsub x86_fp80 %110, %111
%113 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %112)
store x86_fp80 %113, x86_fp80* %17
%114 = load x86_fp80, x86_fp80* %15
%115 = load x86_fp80, x86_fp80* %12
%116 = fsub x86_fp80 %114, %115
%117 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %116)
store x86_fp80 %117, x86_fp80* %18
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%119 = load x86_fp80, x86_fp80* %13
%120 = load x86_fp80, x86_fp80* %10
%121 = load x86_fp80, x86_fp80* %16
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %119, x86_fp80 %120, x86_fp80 %121)
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%124 = load x86_fp80, x86_fp80* %14
%125 = load x86_fp80, x86_fp80* %11
%126 = load x86_fp80, x86_fp80* %17
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %124, x86_fp80 %125, x86_fp80 %126)
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%129 = load x86_fp80, x86_fp80* %15
%130 = load x86_fp80, x86_fp80* %12
%131 = load x86_fp80, x86_fp80* %18
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %129, x86_fp80 %130, x86_fp80 %131)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [61 x i8] c"Exact = %0.15Lf Approx. = %0.15Lf Absolute Error = %0.15Lf\0A\0A\00"
@str = [19 x i8] c"Values for x = 1/8\00"
@str.4 = [19 x i8] c"Values for x = 1/4\00"
@str.5 = [19 x i8] c"Values for x = 1/2\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @pow(x86_fp80 0xK3FFC8000000000000000, i32 2)
%4 = tail call i32 @expl(i32 %3)
%5 = add i32 %4, 1
%6 = icmp ult i32 %5, 3
%7 = select i1 %6, i32 %4, i32 0
%8 = sitofp i32 %7 to x86_fp80
%9 = tail call i32 @pow(x86_fp80 0xK3FFD8000000000000000, i32 2)
%10 = tail call i32 @expl(i32 %9)
%11 = add i32 %10, 1
%12 = icmp ult i32 %11, 3
%13 = select i1 %12, i32 %10, i32 0
%14 = sitofp i32 %13 to x86_fp80
%15 = tail call i32 @pow(x86_fp80 0xK3FFE8000000000000000, i32 2)
%16 = tail call i32 @expl(i32 %15)
%17 = add i32 %16, 1
%18 = icmp ult i32 %17, 3
%19 = select i1 %18, i32 %16, i32 0
%20 = sitofp i32 %19 to x86_fp80
%21 = tail call i32 @pow(x86_fp80 0xK3FFC8000000000000000, i32 2)
%22 = sub i32 1, %21
%23 = tail call i32 @pow(x86_fp80 0xK3FFC8000000000000000, i32 4)
%24 = sdiv i32 %23, 2
%25 = add nsw i32 %22, %24
%26 = tail call i32 @pow(x86_fp80 0xK3FFC8000000000000000, i32 6)
%27 = sdiv i32 %26, -6
%28 = add i32 %25, %27
%29 = tail call i32 @pow(x86_fp80 0xK3FFC8000000000000000, i32 8)
%30 = sdiv i32 %29, 24
%31 = add nsw i32 %28, %30
%32 = tail call i32 @pow(x86_fp80 0xK3FFC8000000000000000, i32 10)
%33 = sdiv i32 %32, -120
%34 = add i32 %31, %33
%35 = tail call i32 @pow(x86_fp80 0xK3FFC8000000000000000, i32 12)
%36 = sdiv i32 %35, 720
%37 = add nsw i32 %34, %36
%38 = sitofp i32 %37 to x86_fp80
%39 = tail call i32 @pow(x86_fp80 0xK3FFD8000000000000000, i32 2)
%40 = sub i32 1, %39
%41 = tail call i32 @pow(x86_fp80 0xK3FFD8000000000000000, i32 4)
%42 = sdiv i32 %41, 2
%43 = add nsw i32 %40, %42
%44 = tail call i32 @pow(x86_fp80 0xK3FFD8000000000000000, i32 6)
%45 = sdiv i32 %44, -6
%46 = add i32 %43, %45
%47 = tail call i32 @pow(x86_fp80 0xK3FFD8000000000000000, i32 8)
%48 = sdiv i32 %47, 24
%49 = add nsw i32 %46, %48
%50 = tail call i32 @pow(x86_fp80 0xK3FFD8000000000000000, i32 10)
%51 = sdiv i32 %50, -120
%52 = add i32 %49, %51
%53 = tail call i32 @pow(x86_fp80 0xK3FFD8000000000000000, i32 12)
%54 = sdiv i32 %53, 720
%55 = add nsw i32 %52, %54
%56 = sitofp i32 %55 to x86_fp80
%57 = tail call i32 @pow(x86_fp80 0xK3FFE8000000000000000, i32 2)
%58 = sub i32 1, %57
%59 = tail call i32 @pow(x86_fp80 0xK3FFE8000000000000000, i32 4)
%60 = sdiv i32 %59, 2
%61 = add nsw i32 %58, %60
%62 = tail call i32 @pow(x86_fp80 0xK3FFE8000000000000000, i32 6)
%63 = sdiv i32 %62, -6
%64 = add i32 %61, %63
%65 = tail call i32 @pow(x86_fp80 0xK3FFE8000000000000000, i32 8)
%66 = sdiv i32 %65, 24
%67 = add nsw i32 %64, %66
%68 = tail call i32 @pow(x86_fp80 0xK3FFE8000000000000000, i32 10)
%69 = sdiv i32 %68, -120
%70 = add i32 %67, %69
%71 = tail call i32 @pow(x86_fp80 0xK3FFE8000000000000000, i32 12)
%72 = sdiv i32 %71, 720
%73 = add nsw i32 %70, %72
%74 = sitofp i32 %73 to x86_fp80
%75 = fsub x86_fp80 %8, %38
%76 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %75)
%77 = fsub x86_fp80 %14, %56
%78 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %77)
%79 = fsub x86_fp80 %20, %74
%80 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %79)
%81 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %8, x86_fp80 %38, x86_fp80 %76)
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.4, i64 0, i64 0))
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %14, x86_fp80 %56, x86_fp80 %78)
%85 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.5, i64 0, i64 0))
%86 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %20, x86_fp80 %74, x86_fp80 %80)
ret i32 0
}