#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ stderr;
void chebyshev_eval_atimes(int ncheb, const double *a, int n, const double *y,
                           double *z, double eign0, double eign1,
                           void (*atimes)(int, const double *, double *,
                                          void *),
                           void *user_data) {
  double *x = (double *)malloc(sizeof(double) * n);
  if (x == NULL) {
    fprintf(stderr, "chebyshev_eval_atimes"
                    " : malloc error for "
                    "x"
                    "\n");
    exit(1);
  };
  double da = 2.0 / (eign1 - eign0);
  double db = -(eign1 + eign0) / (eign1 - eign0);
  double *b = (double *)malloc(sizeof(double) * 3 * n);
  if (b == NULL) {
    fprintf(stderr, "chebyshev_eval_atimes"
                    " : malloc error for "
                    "b"
                    "\n");
    exit(1);
  };
  int k;
  for (k = 0; k < n; k++) {
    b[0 * n + k] = 0.0;
    b[1 * n + k] = 0.0;
  }
  int i, j;
  int i2, i1, i0;
  for (i = 0; i < ncheb - 1; i++) {
    i2 = ((i + 2) % 3) * n;
    i1 = ((i + 1) % 3) * n;
    i0 = ((i) % 3) * n;
    j = ncheb - 1 - i;
    atimes(n, b + i1, x, user_data);
    for (k = 0; k < n; k++) {
      b[i2 + k] = 2 * da * x[k] + 2 * db * b[i1 + k] - b[i0 + k] + a[j] * y[k];
    }
  }
  i = ncheb - 1;
  i1 = ((i + 1) % 3) * n;
  i0 = ((i) % 3) * n;
  j = 0;
  atimes(n, b + i1, x, user_data);
  for (k = 0; k < n; k++) {
    z[k] = da * x[k] + db * b[i1 + k] - b[i0 + k] + a[j] * y[k];
  }
  free(b);
  free(x);
}


x86 assembly (clang, -O0):
<chebyshev_eval_atimes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
movsd  %xmm1,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    11ac <chebyshev_eval_atimes+0x6c>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
lea    0xe6b(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
movsd  -0x38(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
movsd  0xe42(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x38(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movslq -0x14(%rbp),%rax
imul   $0x18,%rax,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    1238 <chebyshev_eval_atimes+0xf8>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
lea    0xe0b(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1287 <chebyshev_eval_atimes+0x147>
mov    -0x60(%rbp),%rax
imul   $0x0,-0x14(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x0,%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    123f <chebyshev_eval_atimes+0xff>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    13c2 <chebyshev_eval_atimes+0x282>
mov    -0x68(%rbp),%eax
add    $0x2,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
imul   -0x14(%rbp),%edx
mov    %edx,-0x70(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
imul   -0x14(%rbp),%edx
mov    %edx,-0x74(%rbp)
mov    -0x68(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
imul   -0x14(%rbp),%edx
mov    %edx,-0x78(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
sub    -0x68(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x14(%rbp),%edi
mov    -0x60(%rbp),%rsi
movslq -0x74(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rsi
mov    -0x48(%rbp),%rdx
mov    0x10(%rbp),%rcx
call   *%rax
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13af <chebyshev_eval_atimes+0x26f>
movsd  0xcde(%rip),%xmm1
mulsd  -0x50(%rbp),%xmm1
mov    -0x48(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  0xcc4(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x60(%rbp),%rax
mov    -0x74(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x60(%rbp),%rax
mov    -0x78(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
mov    -0x70(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    130e <chebyshev_eval_atimes+0x1ce>
jmp    13b4 <chebyshev_eval_atimes+0x274>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    128e <chebyshev_eval_atimes+0x14e>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x68(%rbp)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
imul   -0x14(%rbp),%edx
mov    %edx,-0x74(%rbp)
mov    -0x68(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
imul   -0x14(%rbp),%edx
mov    %edx,-0x78(%rbp)
movl   $0x0,-0x6c(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x14(%rbp),%edi
mov    -0x60(%rbp),%rsi
movslq -0x74(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rsi
mov    -0x48(%rbp),%rdx
mov    0x10(%rbp),%rcx
call   *%rax
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14ac <chebyshev_eval_atimes+0x36c>
movsd  -0x50(%rbp),%xmm1
mov    -0x48(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm0
mov    -0x60(%rbp),%rax
mov    -0x74(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x60(%rbp),%rax
mov    -0x78(%rbp),%ecx
add    -0x64(%rbp),%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1420 <chebyshev_eval_atimes+0x2e0>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chebyshev_eval_atimes>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %r9,0x78(%rsp)
movsd  %xmm1,0x10(%rsp)
movaps %xmm0,0x80(%rsp)
mov    %r8,0x38(%rsp)
mov    %rcx,0x30(%rsp)
mov    %edx,%r15d
mov    %rsi,%r12
mov    %edi,%ebp
mov    0x150(%rsp),%rax
mov    %rax,0x70(%rsp)
lea    0x0(,%r15,8),%r14d
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    %rax,0x18(%rsp)
test   %rax,%rax
je     19d9 <chebyshev_eval_atimes+0x899>
lea    (%r14,%r14,2),%edi
call   1050 <malloc@plt>
test   %rax,%rax
je     19eb <chebyshev_eval_atimes+0x8ab>
mov    %rax,%rbx
movsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
movapd 0x80(%rsp),%xmm2
subsd  %xmm2,%xmm0
movsd  0xe2b(%rip),%xmm3
addsd  %xmm1,%xmm2
xorpd  0xe2f(%rip),%xmm2
mov    %r15d,%r9d
test   %r15d,%r15d
mov    0x18(%rsp),%rdx
jle    1329 <chebyshev_eval_atimes+0x1e9>
cmp    $0x4,%r15d
jae    11ff <chebyshev_eval_atimes+0xbf>
xor    %eax,%eax
jmp    1307 <chebyshev_eval_atimes+0x1c7>
mov    %rbp,%r10
mov    %r9d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %ecx,%r8d
and    $0x3,%r8d
cmp    $0xc,%rsi
jae    122b <chebyshev_eval_atimes+0xeb>
xor    %esi,%esi
jmp    12b9 <chebyshev_eval_atimes+0x179>
and    $0xfffffffffffffffc,%rcx
lea    0x70(%rbx),%rdi
lea    (%rbx,%r9,8),%rbp
add    $0x70,%rbp
xor    %esi,%esi
xorpd  %xmm1,%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd %xmm1,-0x70(%rdi,%rsi,8)
movupd %xmm1,-0x60(%rdi,%rsi,8)
movupd %xmm1,-0x70(%rbp,%rsi,8)
movupd %xmm1,-0x60(%rbp,%rsi,8)
movupd %xmm1,-0x50(%rdi,%rsi,8)
movupd %xmm1,-0x40(%rdi,%rsi,8)
movupd %xmm1,-0x50(%rbp,%rsi,8)
movupd %xmm1,-0x40(%rbp,%rsi,8)
movupd %xmm1,-0x30(%rdi,%rsi,8)
movupd %xmm1,-0x20(%rdi,%rsi,8)
movupd %xmm1,-0x30(%rbp,%rsi,8)
movupd %xmm1,-0x20(%rbp,%rsi,8)
movupd %xmm1,-0x10(%rdi,%rsi,8)
movupd %xmm1,(%rdi,%rsi,8)
movupd %xmm1,-0x10(%rbp,%rsi,8)
movupd %xmm1,0x0(%rbp,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rcx
jne    1250 <chebyshev_eval_atimes+0x110>
test   %r8,%r8
je     12ff <chebyshev_eval_atimes+0x1bf>
lea    (%rsi,%r9,1),%rcx
lea    (%rbx,%rcx,8),%rcx
add    $0x10,%rcx
lea    (%rbx,%rsi,8),%rsi
add    $0x10,%rsi
shl    $0x5,%r8
xor    %edi,%edi
xorpd  %xmm1,%xmm1
nopl   0x0(%rax)
movupd %xmm1,-0x10(%rsi,%rdi,1)
movupd %xmm1,(%rsi,%rdi,1)
movupd %xmm1,-0x10(%rcx,%rdi,1)
movupd %xmm1,(%rcx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r8
jne    12e0 <chebyshev_eval_atimes+0x1a0>
cmp    %r9,%rax
mov    %r10,%rbp
je     1329 <chebyshev_eval_atimes+0x1e9>
lea    (%rbx,%r9,8),%rcx
nopl   0x0(%rax,%rax,1)
movq   $0x0,(%rbx,%rax,8)
movq   $0x0,(%rcx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r9
jne    1310 <chebyshev_eval_atimes+0x1d0>
mov    %r15,0x28(%rsp)
mov    %r9,0x20(%rsp)
divsd  %xmm0,%xmm3
movapd %xmm3,0xc0(%rsp)
divsd  %xmm0,%xmm2
movapd %xmm2,0x80(%rsp)
lea    -0x1(%rbp),%eax
mov    %eax,0x54(%rsp)
mov    %rbp,0x90(%rsp)
cmp    $0x2,%ebp
mov    %rbx,0x10(%rsp)
jl     1768 <chebyshev_eval_atimes+0x628>
movapd 0xc0(%rsp),%xmm3
addsd  %xmm3,%xmm3
movapd 0x80(%rsp),%xmm4
addsd  %xmm4,%xmm4
mov    0x54(%rsp),%eax
mov    0x20(%rsp),%r14
lea    (%rbx,%r14,8),%rcx
mov    %rcx,0xb8(%rsp)
lea    (%rdx,%r14,8),%rcx
mov    %rcx,0xb0(%rsp)
mov    %rax,0x60(%rsp)
add    $0x1,%rax
mov    %rax,0xa8(%rsp)
mov    0x30(%rsp),%rax
lea    (%rax,%r14,8),%rax
mov    %rax,0xa0(%rsp)
and    $0xfffffffe,%r14d
mov    %r14,0x98(%rsp)
movapd %xmm4,%xmm5
unpcklpd %xmm4,%xmm5
movapd %xmm3,%xmm6
unpcklpd %xmm3,%xmm6
mov    $0x1,%r13d
mov    $0x2,%r15d
xor    %ebp,%ebp
mov    $0xaaaaaaab,%r14d
movapd %xmm3,0x100(%rsp)
movapd %xmm4,0xf0(%rsp)
movapd %xmm5,0xe0(%rsp)
movapd %xmm6,0xd0(%rsp)
jmp    143d <chebyshev_eval_atimes+0x2fd>
nopl   (%rax)
add    $0x1,%r13d
add    $0x1,%r15d
mov    0x48(%rsp),%rbp
cmp    0x60(%rsp),%rbp
mov    0x10(%rsp),%rbx
je     1768 <chebyshev_eval_atimes+0x628>
lea    0x1(%rbp),%rcx
mov    %ecx,%eax
imul   %r14,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
mov    %rcx,0x48(%rsp)
sub    %eax,%ecx
mov    0x28(%rsp),%r14
imul   %r14d,%ecx
movslq %ecx,%rax
lea    (%rbx,%rax,8),%rsi
mov    %r14d,%edi
mov    0x70(%rsp),%rcx
call   *0x78(%rsp)
movapd 0xd0(%rsp),%xmm6
movapd 0xe0(%rsp),%xmm5
movapd 0xf0(%rsp),%xmm4
movapd 0x100(%rsp),%xmm3
mov    0x18(%rsp),%rdx
test   %r14d,%r14d
mov    $0xaaaaaaab,%r14d
jle    1420 <chebyshev_eval_atimes+0x2e0>
mov    %r15d,%eax
imul   %r14,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
mov    %r15d,%ecx
sub    %eax,%ecx
mov    0x28(%rsp),%rbx
imul   %ebx,%ecx
mov    %ebp,%eax
imul   %r14,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
mov    %ebp,%esi
sub    %eax,%esi
imul   %ebx,%esi
mov    %r13d,%eax
imul   %r14,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
mov    %r13d,%edi
sub    %eax,%edi
imul   %ebx,%edi
mov    0x60(%rsp),%r10
sub    %rbp,%r10
movslq %ecx,%r8
movslq %esi,%r11
movslq %edi,%rcx
cmp    $0x1,%ebx
jne    1510 <chebyshev_eval_atimes+0x3d0>
xor    %r9d,%r9d
jmp    16c0 <chebyshev_eval_atimes+0x580>
nopl   0x0(%rax)
mov    %r8,0x68(%rsp)
mov    %rcx,0x58(%rsp)
lea    0x2(%rbp),%eax
imul   %r14,%rax
shr    $0x21,%rax
lea    (%rax,%rax,2),%eax
neg    %eax
add    %ebp,%eax
add    $0x2,%eax
imul   %ebx,%eax
lea    0x1(%rbp),%ecx
imul   %r14,%rcx
shr    $0x21,%rcx
lea    (%rcx,%rcx,2),%ecx
neg    %ecx
add    %ebp,%ecx
add    $0x1,%ecx
imul   %ebx,%ecx
mov    0xa8(%rsp),%r14
sub    %rbp,%r14
mov    0x10(%rsp),%rbp
lea    0x0(,%r11,8),%rdi
add    %rbp,%rdi
cltq
lea    0x0(%rbp,%rax,8),%r8
mov    0xb8(%rsp),%rbx
lea    (%rbx,%rax,8),%rsi
movslq %ecx,%rax
lea    0x0(%rbp,%rax,8),%rbp
lea    (%rbx,%rax,8),%rax
cmp    0xb0(%rsp),%r8
setb   0xf(%rsp)
cmp    %rsi,%rdx
setb   %r9b
cmp    %rax,%r8
mov    %r11,0x40(%rsp)
lea    (%rbx,%r11,8),%rax
lea    (%r12,%r14,8),%rdx
setb   %cl
cmp    %rsi,%rbp
setb   %r14b
cmp    %rax,%r8
setb   %bl
cmp    %rsi,%rdi
setb   0xe(%rsp)
cmp    %rdx,%r8
lea    (%r12,%r10,8),%rax
setb   %bpl
cmp    %rsi,%rax
setb   %al
cmp    0xa0(%rsp),%r8
setb   %r11b
cmp    0x30(%rsp),%rsi
seta   %sil
test   %r9b,0xf(%rsp)
jne    173e <chebyshev_eval_atimes+0x5fe>
and    %r14b,%cl
mov    0x18(%rsp),%rdx
mov    $0xaaaaaaab,%r14d
mov    0x68(%rsp),%r8
jne    175b <chebyshev_eval_atimes+0x61b>
and    0xe(%rsp),%bl
mov    0x58(%rsp),%rcx
jne    16b0 <chebyshev_eval_atimes+0x570>
and    %al,%bpl
jne    16b0 <chebyshev_eval_atimes+0x570>
mov    $0x0,%r9d
and    %sil,%r11b
mov    0x40(%rsp),%r11
jne    16c0 <chebyshev_eval_atimes+0x580>
mov    0x10(%rsp),%rax
lea    (%rax,%rcx,8),%rbp
lea    (%rax,%r8,8),%rcx
movsd  (%r12,%r10,8),%xmm0
unpcklpd %xmm0,%xmm0
xor    %ebx,%ebx
mov    0x30(%rsp),%rax
mov    0x98(%rsp),%rsi
nopl   0x0(%rax)
movupd (%rdx,%rbx,8),%xmm1
mulpd  %xmm6,%xmm1
movupd 0x0(%rbp,%rbx,8),%xmm2
mulpd  %xmm5,%xmm2
addpd  %xmm1,%xmm2
movupd (%rdi,%rbx,8),%xmm1
subpd  %xmm1,%xmm2
movupd (%rax,%rbx,8),%xmm1
mulpd  %xmm0,%xmm1
addpd  %xmm2,%xmm1
movupd %xmm1,(%rcx,%rbx,8)
add    $0x2,%rbx
cmp    %rbx,%rsi
jne    1660 <chebyshev_eval_atimes+0x520>
mov    %rsi,%r9
cmp    0x20(%rsp),%rsi
mov    0x58(%rsp),%rcx
je     1420 <chebyshev_eval_atimes+0x2e0>
jmp    16c0 <chebyshev_eval_atimes+0x580>
xor    %r9d,%r9d
mov    0x40(%rsp),%r11
nopl   0x0(%rax,%rax,1)
add    %r9,%r8
mov    0x10(%rsp),%rax
lea    (%rax,%r8,8),%r8
add    %r9,%r11
lea    (%rax,%r11,8),%rsi
add    %r9,%rcx
lea    (%rax,%rcx,8),%rcx
mov    0x30(%rsp),%rax
lea    (%rax,%r9,8),%rdi
lea    (%rdx,%r9,8),%rbx
mov    0x20(%rsp),%rbp
sub    %r9,%rbp
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rcx,%rax,8),%xmm0
mulsd  %xmm4,%xmm0
movsd  (%rbx,%rax,8),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm0,%xmm1
subsd  (%rsi,%rax,8),%xmm1
movsd  (%r12,%r10,8),%xmm0
mulsd  (%rdi,%rax,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r8,%rax,8)
add    $0x1,%rax
cmp    %rax,%rbp
jne    1700 <chebyshev_eval_atimes+0x5c0>
jmp    1420 <chebyshev_eval_atimes+0x2e0>
xor    %r9d,%r9d
mov    0x18(%rsp),%rdx
mov    $0xaaaaaaab,%r14d
mov    0x58(%rsp),%rcx
mov    0x68(%rsp),%r8
jmp    16b3 <chebyshev_eval_atimes+0x573>
xor    %r9d,%r9d
mov    0x58(%rsp),%rcx
jmp    16b3 <chebyshev_eval_atimes+0x573>
mov    0x90(%rsp),%rsi
movslq %esi,%rax
imul   $0x55555556,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%esi
mov    0x28(%rsp),%r13
imul   %r13d,%esi
movslq %esi,%rax
mov    %rax,0x48(%rsp)
lea    (%rbx,%rax,8),%r14
mov    %r13d,%edi
mov    %r14,%rsi
mov    0x70(%rsp),%rcx
call   *0x78(%rsp)
mov    0x10(%rsp),%rdi
mov    0x18(%rsp),%rbx
test   %r13d,%r13d
movapd 0x80(%rsp),%xmm5
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%rbp
movapd 0xc0(%rsp),%xmm6
mov    0x20(%rsp),%rdx
jle    19bb <chebyshev_eval_atimes+0x87b>
mov    0x54(%rsp),%esi
movslq %esi,%rax
imul   $0x55555556,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
sub    %eax,%esi
imul   %r13d,%esi
movslq %esi,%rax
cmp    $0x1,%r13d
jne    1818 <chebyshev_eval_atimes+0x6d8>
xor    %ecx,%ecx
jmp    1976 <chebyshev_eval_atimes+0x836>
lea    (%r15,%rdx,8),%rcx
lea    (%rbx,%rdx,8),%r10
lea    (%rdi,%rax,8),%r9
mov    %rax,0x28(%rsp)
lea    (%rax,%rdx,1),%rsi
lea    (%rdi,%rsi,8),%rsi
mov    0x48(%rsp),%rax
add    %rdx,%rax
lea    (%rdi,%rax,8),%r8
cmp    %r15,%r10
seta   0x48(%rsp)
lea    0x8(%r12),%r10
cmp    %rcx,%rbx
setb   %r13b
cmp    %r15,%rsi
seta   %r11b
cmp    %rcx,%r9
mov    %rbp,%rdi
setb   %bl
cmp    %r15,%r8
seta   %al
cmp    %rcx,%r14
setb   0x60(%rsp)
cmp    %r15,%r10
seta   %sil
lea    0x0(%rbp,%rdx,8),%rbp
cmp    %r12,%rcx
seta   %dl
cmp    %r15,%rbp
seta   %r8b
cmp    %rdi,%rcx
seta   %r10b
xor    %ecx,%ecx
test   %r13b,0x48(%rsp)
jne    1951 <chebyshev_eval_atimes+0x811>
and    %bl,%r11b
jne    1951 <chebyshev_eval_atimes+0x811>
and    0x60(%rsp),%al
mov    0x30(%rsp),%rbp
jne    195d <chebyshev_eval_atimes+0x81d>
and    %dl,%sil
mov    0x10(%rsp),%rdi
jne    1945 <chebyshev_eval_atimes+0x805>
and    %r10b,%r8b
mov    0x38(%rsp),%r15
mov    0x18(%rsp),%rbx
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rax
jne    1976 <chebyshev_eval_atimes+0x836>
mov    %edx,%ecx
and    $0xfffffffe,%ecx
movapd %xmm5,%xmm0
unpcklpd %xmm5,%xmm0
movapd %xmm6,%xmm1
unpcklpd %xmm6,%xmm1
movsd  (%r12),%xmm2
unpcklpd %xmm2,%xmm2
xor    %esi,%esi
movupd (%rbx,%rsi,8),%xmm3
mulpd  %xmm1,%xmm3
movupd (%r14,%rsi,8),%xmm4
mulpd  %xmm0,%xmm4
addpd  %xmm3,%xmm4
movupd (%r9,%rsi,8),%xmm3
subpd  %xmm3,%xmm4
movupd 0x0(%rbp,%rsi,8),%xmm3
mulpd  %xmm2,%xmm3
addpd  %xmm4,%xmm3
movupd %xmm3,(%r15,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%rcx
jne    1900 <chebyshev_eval_atimes+0x7c0>
cmp    %rdx,%rcx
jne    1976 <chebyshev_eval_atimes+0x836>
jmp    19bb <chebyshev_eval_atimes+0x87b>
mov    0x38(%rsp),%r15
mov    0x18(%rsp),%rbx
jmp    196c <chebyshev_eval_atimes+0x82c>
mov    0x38(%rsp),%r15
mov    0x30(%rsp),%rbp
jmp    1962 <chebyshev_eval_atimes+0x822>
mov    0x38(%rsp),%r15
mov    0x18(%rsp),%rbx
mov    0x10(%rsp),%rdi
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rax
lea    (%rdi,%rax,8),%rax
nopw   0x0(%rax,%rax,1)
movsd  (%r14,%rcx,8),%xmm0
mulsd  %xmm5,%xmm0
movsd  (%rbx,%rcx,8),%xmm1
mulsd  %xmm6,%xmm1
addsd  %xmm0,%xmm1
subsd  (%rax,%rcx,8),%xmm1
movsd  (%r12),%xmm0
mulsd  0x0(%rbp,%rcx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r15,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rdx
jne    1980 <chebyshev_eval_atimes+0x840>
call   1030 <free@plt>
mov    %rbx,%rdi
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    0x2600(%rip),%rax
mov    (%rax),%edi
lea    0x637(%rip),%rsi
jmp    19fb <chebyshev_eval_atimes+0x8bb>
mov    0x25ee(%rip),%rax
mov    (%rax),%edi
lea    0x651(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [44 x i8] c"chebyshev_eval_atimes : malloc error for x\0A\00"
@.str.1 = [44 x i8] c"chebyshev_eval_atimes : malloc error for b\0A\00"
define void @chebyshev_eval_atimes(i32 %0, double* nocapture %1, i32 %2, double* nocapture %3, double* nocapture writeonly %4, double %5, double %6, void (i32, double*, double*, i8*)* nocapture %7, i8* %8) {
%10 = shl i32 %2, 3
%11 = tail call i64 @malloc(i32 %10)
%12 = inttoptr i64 %11 to double*
%13 = inttoptr i64 %11 to i8*
%14 = icmp eq i64 %11, 0
br i1 %14, label %15, label %19
15: ; preds = %9
%16 = load i32, i32* @stderr
%17 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %9
%20 = fsub double %6, %5
%21 = fdiv double 2.000000e+00, %20
%22 = fadd double %5, %6
%23 = fneg double %22
%24 = fdiv double %23, %20
%25 = mul i32 %2, 24
%26 = tail call i64 @malloc(i32 %25)
%27 = inttoptr i64 %26 to double*
%28 = icmp eq i64 %26, 0
br i1 %28, label %111, label %29
29: ; preds = %19
%30 = icmp sgt i32 %2, 0
br i1 %30, label %31, label %115
31: ; preds = %29
%32 = zext i32 %2 to i64
%33 = zext i32 %2 to i64
%34 = icmp ult i32 %2, 4
br i1 %34, label %109, label %35
35: ; preds = %31
%36 = and i64 %33, 4294967292
%37 = add nsw i64 %36, -4
%38 = lshr exact i64 %37, 2
%39 = add nuw nsw i64 %38, 1
%40 = and i64 %39, 3
%41 = icmp ult i64 %37, 12
br i1 %41, label %89, label %42
42: ; preds = %35
%43 = and i64 %39, 9223372036854775804
br label %44
44: ; preds = %44, %42
%45 = phi i64 [ 0, %42 ], [ %86, %44 ]
%46 = phi i64 [ 0, %42 ], [ %87, %44 ]
%47 = getelementptr inbounds double, double* %27, i64 %45
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %48
%49 = getelementptr inbounds double, double* %47, i64 2
%50 = bitcast double* %49 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %50
%51 = add nuw nsw i64 %45, %32
%52 = getelementptr inbounds double, double* %27, i64 %51
%53 = bitcast double* %52 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %53
%54 = getelementptr inbounds double, double* %52, i64 2
%55 = bitcast double* %54 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %55
%56 = or i64 %45, 4
%57 = getelementptr inbounds double, double* %27, i64 %56
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %58
%59 = getelementptr inbounds double, double* %57, i64 2
%60 = bitcast double* %59 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %60
%61 = add nuw nsw i64 %56, %32
%62 = getelementptr inbounds double, double* %27, i64 %61
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %63
%64 = getelementptr inbounds double, double* %62, i64 2
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %65
%66 = or i64 %45, 8
%67 = getelementptr inbounds double, double* %27, i64 %66
%68 = bitcast double* %67 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %68
%69 = getelementptr inbounds double, double* %67, i64 2
%70 = bitcast double* %69 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %70
%71 = add nuw nsw i64 %66, %32
%72 = getelementptr inbounds double, double* %27, i64 %71
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %73
%74 = getelementptr inbounds double, double* %72, i64 2
%75 = bitcast double* %74 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %75
%76 = or i64 %45, 12
%77 = getelementptr inbounds double, double* %27, i64 %76
%78 = bitcast double* %77 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %78
%79 = getelementptr inbounds double, double* %77, i64 2
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %80
%81 = add nuw nsw i64 %76, %32
%82 = getelementptr inbounds double, double* %27, i64 %81
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %83
%84 = getelementptr inbounds double, double* %82, i64 2
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %85
%86 = add nuw i64 %45, 16
%87 = add nuw i64 %46, 4
%88 = icmp eq i64 %87, %43
br i1 %88, label %89, label %44
89: ; preds = %44, %35
%90 = phi i64 [ 0, %35 ], [ %86, %44 ]
%91 = icmp eq i64 %40, 0
br i1 %91, label %107, label %92
92: ; preds = %89, %92
%93 = phi i64 [ %104, %92 ], [ %90, %89 ]
%94 = phi i64 [ %105, %92 ], [ 0, %89 ]
%95 = getelementptr inbounds double, double* %27, i64 %93
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %96
%97 = getelementptr inbounds double, double* %95, i64 2
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %98
%99 = add nuw nsw i64 %93, %32
%100 = getelementptr inbounds double, double* %27, i64 %99
%101 = bitcast double* %100 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %101
%102 = getelementptr inbounds double, double* %100, i64 2
%103 = bitcast double* %102 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %103
%104 = add nuw i64 %93, 4
%105 = add i64 %94, 1
%106 = icmp eq i64 %105, %40
br i1 %106, label %107, label %92
107: ; preds = %92, %89
%108 = icmp eq i64 %36, %33
br i1 %108, label %115, label %109
109: ; preds = %31, %107
%110 = phi i64 [ 0, %31 ], [ %36, %107 ]
br label %137
111: ; preds = %19
%112 = load i32, i32* @stderr
%113 = tail call i32 @fprintf(i32 %112, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%114 = tail call i32 @exit(i32 1)
unreachable
115: ; preds = %137, %107, %29
%116 = add i32 %0, -1
%117 = icmp sgt i32 %0, 1
br i1 %117, label %118, label %264
118: ; preds = %115
%119 = fmul double %21, 2.000000e+00
%120 = fmul double %24, 2.000000e+00
%121 = zext i32 %116 to i64
%122 = zext i32 %116 to i64
%123 = zext i32 %2 to i64
%124 = getelementptr double, double* %27, i64 %123
%125 = getelementptr double, double* %12, i64 %123
%126 = getelementptr double, double* %27, i64 %123
%127 = getelementptr double, double* %27, i64 %123
%128 = add nuw nsw i64 %122, 1
%129 = getelementptr double, double* %3, i64 %123
%130 = icmp eq i32 %2, 1
%131 = and i64 %123, 4294967294
%132 = insertelement <2 x double> poison, double %120, i64 0
%133 = shufflevector <2 x double> %132, <2 x double> poison, <2 x i32> zeroinitializer
%134 = insertelement <2 x double> poison, double %119, i64 0
%135 = shufflevector <2 x double> %134, <2 x double> poison, <2 x i32> zeroinitializer
%136 = icmp eq i64 %131, %123
br label %146
137: ; preds = %109, %137
%138 = phi i64 [ %142, %137 ], [ %110, %109 ]
%139 = getelementptr inbounds double, double* %27, i64 %138
store double 0.000000e+00, double* %139
%140 = add nuw nsw i64 %138, %32
%141 = getelementptr inbounds double, double* %27, i64 %140
store double 0.000000e+00, double* %141
%142 = add nuw nsw i64 %138, 1
%143 = icmp eq i64 %142, %33
br i1 %143, label %115, label %137
144: ; preds = %243, %240, %146
%145 = icmp eq i64 %173, %122
br i1 %145, label %264, label %146
146: ; preds = %118, %144
%147 = phi i64 [ 0, %118 ], [ %173, %144 ]
%148 = trunc i64 %147 to i32
%149 = trunc i64 %147 to i32
%150 = add i32 %149, 2
%151 = urem i32 %150, 3
%152 = mul i32 %151, %2
%153 = sext i32 %152 to i64
%154 = getelementptr double, double* %27, i64 %153
%155 = getelementptr double, double* %124, i64 %153
%156 = bitcast double* %155 to i8*
%157 = trunc i64 %147 to i32
%158 = add i32 %157, 1
%159 = urem i32 %158, 3
%160 = mul nsw i32 %159, %2
%161 = sext i32 %160 to i64
%162 = getelementptr double, double* %27, i64 %161
%163 = getelementptr double, double* %126, i64 %161
%164 = urem i32 %148, 3
%165 = mul i32 %164, %2
%166 = sext i32 %165 to i64
%167 = getelementptr double, double* %27, i64 %166
%168 = getelementptr double, double* %127, i64 %166
%169 = sub nsw i64 %122, %147
%170 = getelementptr double, double* %1, i64 %169
%171 = sub nsw i64 %128, %147
%172 = getelementptr double, double* %1, i64 %171
%173 = add nuw nsw i64 %147, 1
%174 = trunc i64 %173 to i32
%175 = urem i32 %174, 3
%176 = mul nsw i32 %175, %2
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, double* %27, i64 %177
tail call void %7(i32 %2, double* %178, double* %12, i8* %8)
br i1 %30, label %179, label %144
179: ; preds = %146
%180 = trunc i64 %147 to i32
%181 = urem i32 %180, 3
%182 = mul nuw nsw i32 %181, %2
%183 = trunc i64 %147 to i32
%184 = add i32 %183, 2
%185 = urem i32 %184, 3
%186 = mul nuw nsw i32 %185, %2
%187 = sub nsw i64 %121, %147
%188 = getelementptr inbounds double, double* %1, i64 %187
%189 = sext i32 %182 to i64
%190 = sext i32 %186 to i64
br i1 %130, label %241, label %191
191: ; preds = %179
%192 = icmp ult double* %154, %125
%193 = icmp ult i8* %13, %156
%194 = and i1 %192, %193
%195 = icmp ult double* %154, %163
%196 = icmp ult double* %162, %155
%197 = and i1 %195, %196
%198 = or i1 %194, %197
%199 = icmp ult double* %154, %168
%200 = icmp ult double* %167, %155
%201 = and i1 %199, %200
%202 = or i1 %198, %201
%203 = icmp ult double* %154, %172
%204 = icmp ult double* %170, %155
%205 = and i1 %203, %204
%206 = or i1 %202, %205
%207 = icmp ult double* %154, %129
%208 = icmp ugt double* %155, %3
%209 = and i1 %207, %208
%210 = or i1 %206, %209
br i1 %210, label %241, label %211
211: ; preds = %191
%212 = load double, double* %188
%213 = insertelement <2 x double> poison, double %212, i64 0
%214 = shufflevector <2 x double> %213, <2 x double> poison, <2 x i32> zeroinitializer
br label %215
215: ; preds = %215, %211
%216 = phi i64 [ 0, %211 ], [ %238, %215 ]
%217 = getelementptr inbounds double, double* %12, i64 %216
%218 = bitcast double* %217 to <2 x double>*
%219 = load <2 x double>, <2 x double>* %218
%220 = add nsw i64 %216, %177
%221 = getelementptr inbounds double, double* %27, i64 %220
%222 = bitcast double* %221 to <2 x double>*
%223 = load <2 x double>, <2 x double>* %222
%224 = fmul <2 x double> %133, %223
%225 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %135, <2 x double> %219, <2 x double> %224)
%226 = add nsw i64 %216, %189
%227 = getelementptr inbounds double, double* %27, i64 %226
%228 = bitcast double* %227 to <2 x double>*
%229 = load <2 x double>, <2 x double>* %228
%230 = fsub <2 x double> %225, %229
%231 = getelementptr inbounds double, double* %3, i64 %216
%232 = bitcast double* %231 to <2 x double>*
%233 = load <2 x double>, <2 x double>* %232
%234 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %214, <2 x double> %233, <2 x double> %230)
%235 = add nsw i64 %216, %190
%236 = getelementptr inbounds double, double* %27, i64 %235
%237 = bitcast double* %236 to <2 x double>*
store <2 x double> %234, <2 x double>* %237
%238 = add nuw i64 %216, 2
%239 = icmp eq i64 %238, %131
br i1 %239, label %240, label %215
240: ; preds = %215
br i1 %136, label %144, label %241
241: ; preds = %191, %179, %240
%242 = phi i64 [ 0, %191 ], [ 0, %179 ], [ %131, %240 ]
br label %243
243: ; preds = %241, %243
%244 = phi i64 [ %262, %243 ], [ %242, %241 ]
%245 = getelementptr inbounds double, double* %12, i64 %244
%246 = load double, double* %245
%247 = add nsw i64 %244, %177
%248 = getelementptr inbounds double, double* %27, i64 %247
%249 = load double, double* %248
%250 = fmul double %120, %249
%251 = tail call double @llvm.fmuladd.f64(double %119, double %246, double %250)
%252 = add nsw i64 %244, %189
%253 = getelementptr inbounds double, double* %27, i64 %252
%254 = load double, double* %253
%255 = fsub double %251, %254
%256 = load double, double* %188
%257 = getelementptr inbounds double, double* %3, i64 %244
%258 = load double, double* %257
%259 = tail call double @llvm.fmuladd.f64(double %256, double %258, double %255)
%260 = add nsw i64 %244, %190
%261 = getelementptr inbounds double, double* %27, i64 %260
store double %259, double* %261
%262 = add nuw nsw i64 %244, 1
%263 = icmp eq i64 %262, %123
br i1 %263, label %144, label %243
264: ; preds = %144, %115
%265 = srem i32 %0, 3
%266 = mul nsw i32 %265, %2
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds double, double* %27, i64 %267
tail call void %7(i32 %2, double* %268, double* %12, i8* %8)
br i1 %30, label %269, label %363
269: ; preds = %264
%270 = srem i32 %116, 3
%271 = mul nsw i32 %270, %2
%272 = sext i32 %271 to i64
%273 = zext i32 %2 to i64
%274 = icmp eq i32 %2, 1
br i1 %274, label %341, label %275
275: ; preds = %269
%276 = getelementptr double, double* %4, i64 %273
%277 = bitcast double* %276 to i8*
%278 = getelementptr double, double* %12, i64 %273
%279 = getelementptr double, double* %27, i64 %272
%280 = add nsw i64 %272, %273
%281 = getelementptr double, double* %27, i64 %280
%282 = getelementptr double, double* %27, i64 %267
%283 = add nsw i64 %267, %273
%284 = getelementptr double, double* %27, i64 %283
%285 = getelementptr double, double* %1, i64 1
%286 = getelementptr double, double* %3, i64 %273
%287 = icmp ugt double* %278, %4
%288 = icmp ult i8* %13, %277
%289 = and i1 %287, %288
%290 = icmp ugt double* %281, %4
%291 = icmp ult double* %279, %276
%292 = and i1 %290, %291
%293 = or i1 %289, %292
%294 = icmp ugt double* %284, %4
%295 = icmp ult double* %282, %276
%296 = and i1 %294, %295
%297 = or i1 %293, %296
%298 = icmp ugt double* %285, %4
%299 = icmp ugt double* %276, %1
%300 = and i1 %298, %299
%301 = or i1 %297, %300
%302 = icmp ugt double* %286, %4
%303 = icmp ugt double* %276, %3
%304 = and i1 %302, %303
%305 = or i1 %301, %304
br i1 %305, label %341, label %306
306: ; preds = %275
%307 = and i64 %273, 4294967294
%308 = insertelement <2 x double> poison, double %24, i64 0
%309 = shufflevector <2 x double> %308, <2 x double> poison, <2 x i32> zeroinitializer
%310 = insertelement <2 x double> poison, double %21, i64 0
%311 = shufflevector <2 x double> %310, <2 x double> poison, <2 x i32> zeroinitializer
%312 = load double, double* %1
%313 = insertelement <2 x double> poison, double %312, i64 0
%314 = shufflevector <2 x double> %313, <2 x double> poison, <2 x i32> zeroinitializer
br label %315
315: ; preds = %315, %306
%316 = phi i64 [ 0, %306 ], [ %337, %315 ]
%317 = getelementptr inbounds double, double* %12, i64 %316
%318 = bitcast double* %317 to <2 x double>*
%319 = load <2 x double>, <2 x double>* %318
%320 = add nsw i64 %316, %267
%321 = getelementptr inbounds double, double* %27, i64 %320
%322 = bitcast double* %321 to <2 x double>*
%323 = load <2 x double>, <2 x double>* %322
%324 = fmul <2 x double> %309, %323
%325 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %311, <2 x double> %319, <2 x double> %324)
%326 = add nsw i64 %316, %272
%327 = getelementptr inbounds double, double* %27, i64 %326
%328 = bitcast double* %327 to <2 x double>*
%329 = load <2 x double>, <2 x double>* %328
%330 = fsub <2 x double> %325, %329
%331 = getelementptr inbounds double, double* %3, i64 %316
%332 = bitcast double* %331 to <2 x double>*
%333 = load <2 x double>, <2 x double>* %332
%334 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %314, <2 x double> %333, <2 x double> %330)
%335 = getelementptr inbounds double, double* %4, i64 %316
%336 = bitcast double* %335 to <2 x double>*
store <2 x double> %334, <2 x double>* %336
%337 = add nuw i64 %316, 2
%338 = icmp eq i64 %337, %307
br i1 %338, label %339, label %315
339: ; preds = %315
%340 = icmp eq i64 %307, %273
br i1 %340, label %363, label %341
341: ; preds = %275, %269, %339
%342 = phi i64 [ 0, %275 ], [ 0, %269 ], [ %307, %339 ]
br label %343
343: ; preds = %341, %343
%344 = phi i64 [ %361, %343 ], [ %342, %341 ]
%345 = getelementptr inbounds double, double* %12, i64 %344
%346 = load double, double* %345
%347 = add nsw i64 %344, %267
%348 = getelementptr inbounds double, double* %27, i64 %347
%349 = load double, double* %348
%350 = fmul double %24, %349
%351 = tail call double @llvm.fmuladd.f64(double %21, double %346, double %350)
%352 = add nsw i64 %344, %272
%353 = getelementptr inbounds double, double* %27, i64 %352
%354 = load double, double* %353
%355 = fsub double %351, %354
%356 = load double, double* %1
%357 = getelementptr inbounds double, double* %3, i64 %344
%358 = load double, double* %357
%359 = tail call double @llvm.fmuladd.f64(double %356, double %358, double %355)
%360 = getelementptr inbounds double, double* %4, i64 %344
store double %359, double* %360
%361 = add nuw nsw i64 %344, 1
%362 = icmp eq i64 %361, %273
br i1 %362, label %363, label %343
363: ; preds = %343, %339, %264
%364 = tail call i32 @free(double* %27)
%365 = tail call i32 @free(double* %12)
ret void
}