#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*/ chebpc(float *, float *, int);
float cos(float);
int /*<<< orphan*/ free_vector(float *, int /*<<< orphan*/, int);
int /*<<< orphan*/ pccheb(float *, float *, int);
int /*<<< orphan*/ pcshft(float, float, float *, int);
int /*<<< orphan*/ printf(char *, ...);
float *vector(int /*<<< orphan*/, int);
int main(void) {
  int i, j;
  float a = (-3.14159265), b = 3.14159265, fac, f, sum, sume, py, py2, *c, *d,
        *e, *ee;
  c = vector(0, 100 - 1);
  d = vector(0, 100 - 1);
  e = vector(0, 100 - 1);
  ee = vector(0, 100 - 1);
  fac = 1.0;
  e[0] = ee[0] = 0.0;
  for (j = 0; j < 17; j++) {
    i = j & 3;
    if (i == 1 || i == 3)
      e[j] = 0.0;
    else if (i == 0)
      e[j] = 1.0 / fac;
    else
      e[j] = -1.0 / fac;
    fac *= (j + 1);
    ee[j] = e[j];
  }
  pcshft((-2.0 - b - a) / (b - a), (2.0 - b - a) / (b - a), e, 17);
  pccheb(e, c, 17);
  printf("Index, series, Chebyshev coefficients\n");
  for (j = 0; j < 17; j += 2)
    printf("%3d %15.6e %15.6e\n", j, e[j], c[j]);
  chebpc(c, d, 13);
  pcshft(a, b, d, 13);
  printf("Index, new series, coefficient ratios\n");
  for (j = 0; j < 13; j += 2) {
    printf("%3d %15.6e %15.6e\n", j, d[j], d[j] / (ee[j] + 1.0e-30));
  }
  printf(
      "      Point tested, function value, error power series, error Cheb.\n");
  for (i = 0; i <= 15; i++) {
    py = a + i * (b - a) / (float)15;
    py2 = py * py;
    sum = sume = 0.0;
    fac = 1.0;
    for (j = 0; j < 13; j += 2) {
      sum += fac * d[j];
      sume += fac * ee[j];
      fac *= py2;
    }
    f = cos(py);
    printf("check: %15.6e %15.6e %15.6e %15.6e\n", py, f, sume - f, sum - f);
  }
  free_vector(ee, 0, 100 - 1);
  free_vector(e, 0, 100 - 1);
  free_vector(d, 0, 100 - 1);
  free_vector(c, 0, 100 - 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xe81(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xe70(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
xor    %edi,%edi
mov    $0x63,%esi
call   1070 <vector@plt>
mov    %rax,-0x38(%rbp)
xor    %edi,%edi
mov    $0x63,%esi
call   1070 <vector@plt>
mov    %rax,-0x40(%rbp)
xor    %edi,%edi
mov    $0x63,%esi
call   1070 <vector@plt>
mov    %rax,-0x48(%rbp)
xor    %edi,%edi
mov    $0x63,%esi
call   1070 <vector@plt>
mov    %rax,-0x50(%rbp)
movss  0xe1f(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x50(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
mov    -0x48(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
movl   $0x0,-0xc(%rbp)
cmpl   $0x11,-0xc(%rbp)
jge    12db <main+0x16b>
mov    -0xc(%rbp),%eax
and    $0x3,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     122a <main+0xba>
cmpl   $0x3,-0x8(%rbp)
jne    123f <main+0xcf>
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    129f <main+0x12f>
cmpl   $0x0,-0x8(%rbp)
jne    1274 <main+0x104>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdd6(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    129a <main+0x12a>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xda3(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
jmp    129f <main+0x12f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
cvtsi2ss %eax,%xmm0
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x50(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1203 <main+0x93>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd2c(%rip),%xmm0
subsd  %xmm1,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
subsd  %xmm1,%xmm0
movss  -0x14(%rbp),%xmm1
subss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  -0x14(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xcec(%rip),%xmm1
subsd  %xmm2,%xmm1
movss  -0x10(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
subsd  %xmm2,%xmm1
movss  -0x14(%rbp),%xmm2
subss  -0x10(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
mov    -0x48(%rbp),%rdi
mov    $0x11,%esi
call   1060 <pcshft@plt>
mov    -0x48(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0x11,%edx
call   1030 <pccheb@plt>
lea    0xcc6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x11,-0xc(%rbp)
jge    13cb <main+0x25b>
mov    -0xc(%rbp),%esi
mov    -0x48(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x38(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xca9(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    1380 <main+0x210>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0xd,%edx
call   1090 <chebpc@plt>
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
mov    -0x40(%rbp),%rdi
mov    $0xd,%esi
call   1060 <pcshft@plt>
lea    0xc76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0xd,-0xc(%rbp)
jge    1476 <main+0x306>
mov    -0xc(%rbp),%esi
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x50(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
cvtss2sd %xmm2,%xmm2
movsd  0xbce(%rip),%xmm3
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
lea    0xbfe(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    140a <main+0x29a>
lea    0xc1c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xf,-0x8(%rbp)
jg     15bd <main+0x44d>
movss  -0x10(%rbp),%xmm0
cvtsi2ssl -0x8(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
subss  -0x10(%rbp),%xmm2
mulss  %xmm2,%xmm1
movss  0xb57(%rip),%xmm2
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x28(%rbp),%xmm0
mulss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xb17(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xd,-0xc(%rbp)
jge    1564 <main+0x3f4>
movss  -0x18(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x20(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x18(%rbp),%xmm0
mov    -0x50(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x24(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x2c(%rbp),%xmm0
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    14f5 <main+0x385>
movss  -0x28(%rbp),%xmm0
call   1080 <cos@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x1c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x24(%rbp),%xmm2
subss  -0x1c(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x20(%rbp),%xmm3
subss  -0x1c(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xb36(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    148b <main+0x31b>
mov    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1050 <free_vector@plt>
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1050 <free_vector@plt>
mov    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1050 <free_vector@plt>
mov    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1050 <free_vector@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %ebp,%ebp
xor    %edi,%edi
mov    $0x63,%esi
call   1080 <vector@plt>
mov    %rax,%r14
xor    %edi,%edi
mov    $0x63,%esi
call   1080 <vector@plt>
mov    %rax,%r12
xor    %edi,%edi
mov    $0x63,%esi
call   1080 <vector@plt>
mov    %rax,%r15
xor    %edi,%edi
mov    $0x63,%esi
call   1080 <vector@plt>
mov    %rax,%rbx
movl   $0x0,(%rax)
movl   $0x0,(%r15)
movss  0xe1f(%rip),%xmm0
movss  0xe1b(%rip),%xmm1
movaps %xmm0,%xmm2
jmp    121a <main+0x9a>
xchg   %ax,%ax
movaps %xmm1,%xmm3
divss  %xmm2,%xmm3
lea    0x1(%rbp),%rax
xorps  %xmm4,%xmm4
cvtsi2ss %eax,%xmm4
movss  %xmm3,(%r15,%rbp,4)
movss  %xmm3,(%rbx,%rbp,4)
mulss  %xmm4,%xmm2
mov    %rax,%rbp
cmp    $0x11,%rax
je     122e <main+0xae>
xorps  %xmm3,%xmm3
test   $0x1,%bpl
jne    11f7 <main+0x77>
test   $0x3,%bpl
jne    11f0 <main+0x70>
movaps %xmm0,%xmm3
jmp    11f3 <main+0x73>
movss  0xdd2(%rip),%xmm0
movss  0xdce(%rip),%xmm1
mov    %r15,%rdi
mov    $0x11,%esi
call   1070 <pcshft@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x11,%edx
call   1030 <pccheb@plt>
lea    0xdfd(%rip),%rdi
call   1040 <puts@plt>
movss  (%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%r14),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xda8(%rip),%r13
xor    %ebp,%ebp
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x8(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x8(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0x2,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x10(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x10(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0x4,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x18(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x18(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0x6,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x20(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x20(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0x8,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x28(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x28(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0xa,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x30(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x30(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0xc,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x38(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x38(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0xe,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x40(%r15),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x40(%r14),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r13,%rdi
mov    $0x10,%esi
mov    $0x2,%al
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    $0xd,%edx
call   10a0 <chebpc@plt>
movss  0xc52(%rip),%xmm0
movss  0xc4e(%rip),%xmm1
mov    %r12,%rdi
mov    $0xd,%esi
call   1070 <pcshft@plt>
lea    0xcab(%rip),%rdi
call   1040 <puts@plt>
movss  (%r12),%xmm0
cvtss2sd %xmm0,%xmm0
movss  (%rbx),%xmm1
cvtss2sd %xmm1,%xmm2
addsd  0xc27(%rip),%xmm2
movaps %xmm0,%xmm1
divsd  %xmm2,%xmm1
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x8(%r12),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x8(%rbx),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
addsd  0xbf5(%rip),%xmm2
movaps %xmm0,%xmm1
divsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    $0x2,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x10(%r12),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x10(%rbx),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
addsd  0xbc0(%rip),%xmm2
movaps %xmm0,%xmm1
divsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    $0x4,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x18(%r12),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x18(%rbx),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
addsd  0xb8b(%rip),%xmm2
movaps %xmm0,%xmm1
divsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    $0x6,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x20(%r12),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x20(%rbx),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
addsd  0xb56(%rip),%xmm2
movaps %xmm0,%xmm1
divsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    $0x8,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x28(%r12),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x28(%rbx),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
addsd  0xb21(%rip),%xmm2
movaps %xmm0,%xmm1
divsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    $0xa,%esi
mov    $0x2,%al
call   1050 <printf@plt>
movss  0x30(%r12),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x30(%rbx),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
addsd  0xaec(%rip),%xmm2
movaps %xmm0,%xmm1
divsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    $0xc,%esi
mov    $0x2,%al
call   1050 <printf@plt>
lea    0xb5a(%rip),%rdi
call   1040 <puts@plt>
lea    0xade(%rip),%r13
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
mulss  0xaa9(%rip),%xmm0
divss  0xaa5(%rip),%xmm0
addss  0xa91(%rip),%xmm0
movaps %xmm0,%xmm4
movss  %xmm0,0xc(%rsp)
mulss  %xmm0,%xmm4
movss  (%r12),%xmm3
xorpd  %xmm2,%xmm2
addss  %xmm2,%xmm3
movss  (%rbx),%xmm1
addss  %xmm2,%xmm1
movss  0x8(%r12),%xmm2
mulss  %xmm4,%xmm2
addss  %xmm3,%xmm2
movss  0x8(%rbx),%xmm5
mulss  %xmm4,%xmm5
addss  %xmm1,%xmm5
movaps %xmm4,%xmm1
mulss  %xmm4,%xmm1
movss  0x10(%r12),%xmm3
mulss  %xmm1,%xmm3
addss  %xmm2,%xmm3
movaps %xmm4,%xmm2
mulss  %xmm1,%xmm2
mulss  0x10(%rbx),%xmm1
addss  %xmm5,%xmm1
movss  0x18(%r12),%xmm5
mulss  %xmm2,%xmm5
addss  %xmm3,%xmm5
movaps %xmm4,%xmm3
mulss  %xmm2,%xmm3
mulss  0x18(%rbx),%xmm2
addss  %xmm1,%xmm2
movss  0x20(%r12),%xmm1
mulss  %xmm3,%xmm1
addss  %xmm5,%xmm1
movaps %xmm4,%xmm5
mulss  %xmm3,%xmm5
mulss  0x20(%rbx),%xmm3
addss  %xmm2,%xmm3
movss  0x28(%r12),%xmm2
mulss  %xmm5,%xmm2
mulss  %xmm5,%xmm4
mulss  0x28(%rbx),%xmm5
addss  %xmm1,%xmm2
addss  %xmm3,%xmm5
movss  0x30(%r12),%xmm1
mulss  %xmm4,%xmm1
addss  %xmm2,%xmm1
movss  %xmm1,0x14(%rsp)
mulss  0x30(%rbx),%xmm4
addss  %xmm5,%xmm4
movss  %xmm4,0x10(%rsp)
call   1090 <cos@plt>
movss  0xc(%rsp),%xmm1
xorps  %xmm4,%xmm4
cvtss2sd %xmm1,%xmm4
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movss  0x10(%rsp),%xmm2
subss  %xmm0,%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x14(%rsp),%xmm3
subss  %xmm0,%xmm3
cvtss2sd %xmm3,%xmm3
mov    %r13,%rdi
movaps %xmm4,%xmm0
mov    $0x4,%al
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    $0x10,%ebp
jne    1560 <main+0x3e0>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1060 <free_vector@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1060 <free_vector@plt>
mov    %r12,%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1060 <free_vector@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x63,%edx
call   1060 <free_vector@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [39 x i8] c"Index, series, Chebyshev coefficients\0A\00"
@.str.1 = [19 x i8] c"%3d %15.6e %15.6e\0A\00"
@.str.2 = [39 x i8] c"Index, new series, coefficient ratios\0A\00"
@.str.3 = [69 x i8] c" Point tested, function value, error power series, error Cheb.\0A\00"
@.str.4 = [36 x i8] c"check: %15.6e %15.6e %15.6e %15.6e\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float*
%13 = alloca float*
%14 = alloca float*
%15 = alloca float*
store i32 0, i32* %1
store float 0xC00921FB60000000, float* %4
store float 0x400921FB60000000, float* %5
%16 = call float* @vector(i32 0, i32 99)
store float* %16, float** %12
%17 = call float* @vector(i32 0, i32 99)
store float* %17, float** %13
%18 = call float* @vector(i32 0, i32 99)
store float* %18, float** %14
%19 = call float* @vector(i32 0, i32 99)
store float* %19, float** %15
store float 1.000000e+00, float* %6
%20 = load float*, float** %15
%21 = getelementptr inbounds float, float* %20, i64 0
store float 0.000000e+00, float* %21
%22 = load float*, float** %14
%23 = getelementptr inbounds float, float* %22, i64 0
store float 0.000000e+00, float* %23
store i32 0, i32* %3
br label %24
24: ; preds = %77, %0
%25 = load i32, i32* %3
%26 = icmp slt i32 %25, 17
br i1 %26, label %27, label %80
27: ; preds = %24
%28 = load i32, i32* %3
%29 = and i32 %28, 3
store i32 %29, i32* %2
%30 = load i32, i32* %2
%31 = icmp eq i32 %30, 1
br i1 %31, label %35, label %32
32: ; preds = %27
%33 = load i32, i32* %2
%34 = icmp eq i32 %33, 3
br i1 %34, label %35, label %40
35: ; preds = %32, %27
%36 = load float*, float** %14
%37 = load i32, i32* %3
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds float, float* %36, i64 %38
store float 0.000000e+00, float* %39
br label %62
40: ; preds = %32
%41 = load i32, i32* %2
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %40
%44 = load float, float* %6
%45 = fpext float %44 to double
%46 = fdiv double 1.000000e+00, %45
%47 = fptrunc double %46 to float
%48 = load float*, float** %14
%49 = load i32, i32* %3
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds float, float* %48, i64 %50
store float %47, float* %51
br label %61
52: ; preds = %40
%53 = load float, float* %6
%54 = fpext float %53 to double
%55 = fdiv double -1.000000e+00, %54
%56 = fptrunc double %55 to float
%57 = load float*, float** %14
%58 = load i32, i32* %3
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds float, float* %57, i64 %59
store float %56, float* %60
br label %61
61: ; preds = %52, %43
br label %62
62: ; preds = %61, %35
%63 = load i32, i32* %3
%64 = add nsw i32 %63, 1
%65 = sitofp i32 %64 to float
%66 = load float, float* %6
%67 = fmul float %66, %65
store float %67, float* %6
%68 = load float*, float** %14
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds float, float* %68, i64 %70
%72 = load float, float* %71
%73 = load float*, float** %15
%74 = load i32, i32* %3
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds float, float* %73, i64 %75
store float %72, float* %76
br label %77
77: ; preds = %62
%78 = load i32, i32* %3
%79 = add nsw i32 %78, 1
store i32 %79, i32* %3
br label %24
80: ; preds = %24
%81 = load float, float* %5
%82 = fpext float %81 to double
%83 = fsub double -2.000000e+00, %82
%84 = load float, float* %4
%85 = fpext float %84 to double
%86 = fsub double %83, %85
%87 = load float, float* %5
%88 = load float, float* %4
%89 = fsub float %87, %88
%90 = fpext float %89 to double
%91 = fdiv double %86, %90
%92 = fptrunc double %91 to float
%93 = load float, float* %5
%94 = fpext float %93 to double
%95 = fsub double 2.000000e+00, %94
%96 = load float, float* %4
%97 = fpext float %96 to double
%98 = fsub double %95, %97
%99 = load float, float* %5
%100 = load float, float* %4
%101 = fsub float %99, %100
%102 = fpext float %101 to double
%103 = fdiv double %98, %102
%104 = fptrunc double %103 to float
%105 = load float*, float** %14
%106 = call i32 @pcshft(float %92, float %104, float* %105, i32 17)
%107 = load float*, float** %14
%108 = load float*, float** %12
%109 = call i32 @pccheb(float* %107, float* %108, i32 17)
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %111
111: ; preds = %129, %80
%112 = load i32, i32* %3
%113 = icmp slt i32 %112, 17
br i1 %113, label %114, label %132
114: ; preds = %111
%115 = load i32, i32* %3
%116 = load float*, float** %14
%117 = load i32, i32* %3
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds float, float* %116, i64 %118
%120 = load float, float* %119
%121 = fpext float %120 to double
%122 = load float*, float** %12
%123 = load i32, i32* %3
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds float, float* %122, i64 %124
%126 = load float, float* %125
%127 = fpext float %126 to double
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %115, double %121, double %127)
br label %129
129: ; preds = %114
%130 = load i32, i32* %3
%131 = add nsw i32 %130, 2
store i32 %131, i32* %3
br label %111
132: ; preds = %111
%133 = load float*, float** %12
%134 = load float*, float** %13
%135 = call i32 @chebpc(float* %133, float* %134, i32 13)
%136 = load float, float* %4
%137 = load float, float* %5
%138 = load float*, float** %13
%139 = call i32 @pcshft(float %136, float %137, float* %138, i32 13)
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %141
141: ; preds = %167, %132
%142 = load i32, i32* %3
%143 = icmp slt i32 %142, 13
br i1 %143, label %144, label %170
144: ; preds = %141
%145 = load i32, i32* %3
%146 = load float*, float** %13
%147 = load i32, i32* %3
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds float, float* %146, i64 %148
%150 = load float, float* %149
%151 = fpext float %150 to double
%152 = load float*, float** %13
%153 = load i32, i32* %3
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds float, float* %152, i64 %154
%156 = load float, float* %155
%157 = fpext float %156 to double
%158 = load float*, float** %15
%159 = load i32, i32* %3
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds float, float* %158, i64 %160
%162 = load float, float* %161
%163 = fpext float %162 to double
%164 = fadd double %163, 1.000000e-30
%165 = fdiv double %157, %164
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %145, double %151, double %165)
br label %167
167: ; preds = %144
%168 = load i32, i32* %3
%169 = add nsw i32 %168, 2
store i32 %169, i32* %3
br label %141
170: ; preds = %141
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %172
172: ; preds = %230, %170
%173 = load i32, i32* %2
%174 = icmp sle i32 %173, 15
br i1 %174, label %175, label %233
175: ; preds = %172
%176 = load float, float* %4
%177 = load i32, i32* %2
%178 = sitofp i32 %177 to float
%179 = load float, float* %5
%180 = load float, float* %4
%181 = fsub float %179, %180
%182 = fmul float %178, %181
%183 = fdiv float %182, 1.500000e+01
%184 = fadd float %176, %183
store float %184, float* %10
%185 = load float, float* %10
%186 = load float, float* %10
%187 = fmul float %185, %186
store float %187, float* %11
store float 0.000000e+00, float* %9
store float 0.000000e+00, float* %8
store float 1.000000e+00, float* %6
store i32 0, i32* %3
br label %188
188: ; preds = %211, %175
%189 = load i32, i32* %3
%190 = icmp slt i32 %189, 13
br i1 %190, label %191, label %214
191: ; preds = %188
%192 = load float, float* %6
%193 = load float*, float** %13
%194 = load i32, i32* %3
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds float, float* %193, i64 %195
%197 = load float, float* %196
%198 = load float, float* %8
%199 = call float @llvm.fmuladd.f32(float %192, float %197, float %198)
store float %199, float* %8
%200 = load float, float* %6
%201 = load float*, float** %15
%202 = load i32, i32* %3
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds float, float* %201, i64 %203
%205 = load float, float* %204
%206 = load float, float* %9
%207 = call float @llvm.fmuladd.f32(float %200, float %205, float %206)
store float %207, float* %9
%208 = load float, float* %11
%209 = load float, float* %6
%210 = fmul float %209, %208
store float %210, float* %6
br label %211
211: ; preds = %191
%212 = load i32, i32* %3
%213 = add nsw i32 %212, 2
store i32 %213, i32* %3
br label %188
214: ; preds = %188
%215 = load float, float* %10
%216 = call float @cos(float %215)
store float %216, float* %7
%217 = load float, float* %10
%218 = fpext float %217 to double
%219 = load float, float* %7
%220 = fpext float %219 to double
%221 = load float, float* %9
%222 = load float, float* %7
%223 = fsub float %221, %222
%224 = fpext float %223 to double
%225 = load float, float* %8
%226 = load float, float* %7
%227 = fsub float %225, %226
%228 = fpext float %227 to double
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), double %218, double %220, double %224, double %228)
br label %230
230: ; preds = %214
%231 = load i32, i32* %2
%232 = add nsw i32 %231, 1
store i32 %232, i32* %2
br label %172
233: ; preds = %172
%234 = load float*, float** %15
%235 = call i32 @free_vector(float* %234, i32 0, i32 99)
%236 = load float*, float** %14
%237 = call i32 @free_vector(float* %236, i32 0, i32 99)
%238 = load float*, float** %13
%239 = call i32 @free_vector(float* %238, i32 0, i32 99)
%240 = load float*, float** %12
%241 = call i32 @free_vector(float* %240, i32 0, i32 99)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [19 x i8] c"%3d %15.6e %15.6e\0A\00"
@.str.4 = [36 x i8] c"check: %15.6e %15.6e %15.6e %15.6e\0A\00"
@str = [38 x i8] c"Index, series, Chebyshev coefficients\00"
@str.5 = [38 x i8] c"Index, new series, coefficient ratios\00"
@str.6 = [68 x i8] c" Point tested, function value, error power series, error Cheb.\00"
define i32 @main() {
%1 = tail call float* @vector(i32 0, i32 99)
%2 = tail call float* @vector(i32 0, i32 99)
%3 = tail call float* @vector(i32 0, i32 99)
%4 = tail call float* @vector(i32 0, i32 99)
store float 0.000000e+00, float* %4
store float 0.000000e+00, float* %3
br label %5
5: ; preds = %0, %18
%6 = phi i64 [ 0, %0 ], [ %21, %18 ]
%7 = phi float [ 1.000000e+00, %0 ], [ %24, %18 ]
%8 = trunc i64 %6 to i32
%9 = and i32 %8, 1
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %5
%12 = and i32 %8, 3
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = fdiv float 1.000000e+00, %7
br label %18
16: ; preds = %11
%17 = fdiv float -1.000000e+00, %7
br label %18
18: ; preds = %5, %14, %16
%19 = phi float [ %15, %14 ], [ %17, %16 ], [ 0.000000e+00, %5 ]
%20 = getelementptr inbounds float, float* %3, i64 %6
store float %19, float* %20
%21 = add nuw nsw i64 %6, 1
%22 = trunc i64 %21 to i32
%23 = sitofp i32 %22 to float
%24 = fmul float %7, %23
%25 = getelementptr inbounds float, float* %4, i64 %6
store float %19, float* %25
%26 = icmp eq i64 %21, 17
br i1 %26, label %27, label %5
27: ; preds = %18
%28 = tail call i32 @pcshft(float 0xBFD45F3060000000, float 0x3FD45F3060000000, float* %3, i32 17)
%29 = tail call i32 @pccheb(float* %3, float* %1, i32 17)
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%31 = load float, float* %3
%32 = fpext float %31 to double
%33 = load float, float* %1
%34 = fpext float %33 to double
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 0, double %32, double %34)
%36 = getelementptr inbounds float, float* %3, i64 2
%37 = load float, float* %36
%38 = fpext float %37 to double
%39 = getelementptr inbounds float, float* %1, i64 2
%40 = load float, float* %39
%41 = fpext float %40 to double
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 2, double %38, double %41)
%43 = getelementptr inbounds float, float* %3, i64 4
%44 = load float, float* %43
%45 = fpext float %44 to double
%46 = getelementptr inbounds float, float* %1, i64 4
%47 = load float, float* %46
%48 = fpext float %47 to double
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 4, double %45, double %48)
%50 = getelementptr inbounds float, float* %3, i64 6
%51 = load float, float* %50
%52 = fpext float %51 to double
%53 = getelementptr inbounds float, float* %1, i64 6
%54 = load float, float* %53
%55 = fpext float %54 to double
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 6, double %52, double %55)
%57 = getelementptr inbounds float, float* %3, i64 8
%58 = load float, float* %57
%59 = fpext float %58 to double
%60 = getelementptr inbounds float, float* %1, i64 8
%61 = load float, float* %60
%62 = fpext float %61 to double
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 8, double %59, double %62)
%64 = getelementptr inbounds float, float* %3, i64 10
%65 = load float, float* %64
%66 = fpext float %65 to double
%67 = getelementptr inbounds float, float* %1, i64 10
%68 = load float, float* %67
%69 = fpext float %68 to double
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 10, double %66, double %69)
%71 = getelementptr inbounds float, float* %3, i64 12
%72 = load float, float* %71
%73 = fpext float %72 to double
%74 = getelementptr inbounds float, float* %1, i64 12
%75 = load float, float* %74
%76 = fpext float %75 to double
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 12, double %73, double %76)
%78 = getelementptr inbounds float, float* %3, i64 14
%79 = load float, float* %78
%80 = fpext float %79 to double
%81 = getelementptr inbounds float, float* %1, i64 14
%82 = load float, float* %81
%83 = fpext float %82 to double
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 14, double %80, double %83)
%85 = getelementptr inbounds float, float* %3, i64 16
%86 = load float, float* %85
%87 = fpext float %86 to double
%88 = getelementptr inbounds float, float* %1, i64 16
%89 = load float, float* %88
%90 = fpext float %89 to double
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 16, double %87, double %90)
%92 = tail call i32 @chebpc(float* %1, float* %2, i32 13)
%93 = tail call i32 @pcshft(float 0xC00921FB60000000, float 0x400921FB60000000, float* %2, i32 13)
%94 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.5, i64 0, i64 0))
%95 = load float, float* %2
%96 = fpext float %95 to double
%97 = load float, float* %4
%98 = fpext float %97 to double
%99 = fadd double %98, 1.000000e-30
%100 = fdiv double %96, %99
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 0, double %96, double %100)
%102 = getelementptr inbounds float, float* %2, i64 2
%103 = load float, float* %102
%104 = fpext float %103 to double
%105 = getelementptr inbounds float, float* %4, i64 2
%106 = load float, float* %105
%107 = fpext float %106 to double
%108 = fadd double %107, 1.000000e-30
%109 = fdiv double %104, %108
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 2, double %104, double %109)
%111 = getelementptr inbounds float, float* %2, i64 4
%112 = load float, float* %111
%113 = fpext float %112 to double
%114 = getelementptr inbounds float, float* %4, i64 4
%115 = load float, float* %114
%116 = fpext float %115 to double
%117 = fadd double %116, 1.000000e-30
%118 = fdiv double %113, %117
%119 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 4, double %113, double %118)
%120 = getelementptr inbounds float, float* %2, i64 6
%121 = load float, float* %120
%122 = fpext float %121 to double
%123 = getelementptr inbounds float, float* %4, i64 6
%124 = load float, float* %123
%125 = fpext float %124 to double
%126 = fadd double %125, 1.000000e-30
%127 = fdiv double %122, %126
%128 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 6, double %122, double %127)
%129 = getelementptr inbounds float, float* %2, i64 8
%130 = load float, float* %129
%131 = fpext float %130 to double
%132 = getelementptr inbounds float, float* %4, i64 8
%133 = load float, float* %132
%134 = fpext float %133 to double
%135 = fadd double %134, 1.000000e-30
%136 = fdiv double %131, %135
%137 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 8, double %131, double %136)
%138 = getelementptr inbounds float, float* %2, i64 10
%139 = load float, float* %138
%140 = fpext float %139 to double
%141 = getelementptr inbounds float, float* %4, i64 10
%142 = load float, float* %141
%143 = fpext float %142 to double
%144 = fadd double %143, 1.000000e-30
%145 = fdiv double %140, %144
%146 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 10, double %140, double %145)
%147 = getelementptr inbounds float, float* %2, i64 12
%148 = load float, float* %147
%149 = fpext float %148 to double
%150 = getelementptr inbounds float, float* %4, i64 12
%151 = load float, float* %150
%152 = fpext float %151 to double
%153 = fadd double %152, 1.000000e-30
%154 = fdiv double %149, %153
%155 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 12, double %149, double %154)
%156 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.6, i64 0, i64 0))
br label %157
157: ; preds = %27, %157
%158 = phi i32 [ 0, %27 ], [ %205, %157 ]
%159 = sitofp i32 %158 to float
%160 = fmul float %159, 0x401921FB60000000
%161 = fdiv float %160, 1.500000e+01
%162 = fadd float %161, 0xC00921FB60000000
%163 = fmul float %162, %162
%164 = load float, float* %2
%165 = fadd float %164, 0.000000e+00
%166 = load float, float* %4
%167 = fadd float %166, 0.000000e+00
%168 = load float, float* %102
%169 = tail call float @llvm.fmuladd.f32(float %163, float %168, float %165)
%170 = load float, float* %105
%171 = tail call float @llvm.fmuladd.f32(float %163, float %170, float %167)
%172 = fmul float %163, %163
%173 = load float, float* %111
%174 = tail call float @llvm.fmuladd.f32(float %172, float %173, float %169)
%175 = load float, float* %114
%176 = tail call float @llvm.fmuladd.f32(float %172, float %175, float %171)
%177 = fmul float %163, %172
%178 = load float, float* %120
%179 = tail call float @llvm.fmuladd.f32(float %177, float %178, float %174)
%180 = load float, float* %123
%181 = tail call float @llvm.fmuladd.f32(float %177, float %180, float %176)
%182 = fmul float %163, %177
%183 = load float, float* %129
%184 = tail call float @llvm.fmuladd.f32(float %182, float %183, float %179)
%185 = load float, float* %132
%186 = tail call float @llvm.fmuladd.f32(float %182, float %185, float %181)
%187 = fmul float %163, %182
%188 = load float, float* %138
%189 = tail call float @llvm.fmuladd.f32(float %187, float %188, float %184)
%190 = load float, float* %141
%191 = tail call float @llvm.fmuladd.f32(float %187, float %190, float %186)
%192 = fmul float %163, %187
%193 = load float, float* %147
%194 = tail call float @llvm.fmuladd.f32(float %192, float %193, float %189)
%195 = load float, float* %150
%196 = tail call float @llvm.fmuladd.f32(float %192, float %195, float %191)
%197 = tail call float @cos(float %162)
%198 = fpext float %162 to double
%199 = fpext float %197 to double
%200 = fsub float %196, %197
%201 = fpext float %200 to double
%202 = fsub float %194, %197
%203 = fpext float %202 to double
%204 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), double %198, double %199, double %201, double %203)
%205 = add nuw nsw i32 %158, 1
%206 = icmp eq i32 %205, 16
br i1 %206, label %207, label %157
207: ; preds = %157
%208 = tail call i32 @free_vector(float* %4, i32 0, i32 99)
%209 = tail call i32 @free_vector(float* %3, i32 0, i32 99)
%210 = tail call i32 @free_vector(float* %2, i32 0, i32 99)
%211 = tail call i32 @free_vector(float* %1, i32 0, i32 99)
ret i32 0
}