#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*/ printf(char *, ...);
double sqrt(double);
main() {
  long i, j;
  double elts, b[1000], Hx[1000], sum;
  double r[1000], x[1000], p[1000], rold, rnew;
  double Hp[1000], alpha, deno;
  double mod_wx, mod_bHx;
  int k;
  printf("%2s \t %24s \t %24s \n", "k", "|w-x|", "|b-Hx|");
  for (i = 0; i < 1000; i++)
    x[i] = 0;
  for (i = 1; i <= 1000; i++) {
    sum = 0.;
    for (j = 1; j <= 1000; j++) {
      elts = (1. / 3.) * (1. / (double)(i + j - 1));
      sum += elts;
    }
    b[i - 1] = sum;
  }
  for (i = 1; i <= 1000; i++) {
    sum = 0.;
    for (j = 1; j <= 1000; j++) {
      elts = x[j - 1] * (1. / (double)(i + j - 1));
      sum += elts;
    }
    Hx[i - 1] = sum;
  }
  for (i = 0; i < 1000; i++) {
    r[i] = b[i] - Hx[i];
    p[i] = r[i];
  }
  rold = 0.;
  for (i = 0; i < 1000; i++)
    rold += r[i] * r[i];
  k = 0;
  mod_wx = 0.;
  mod_bHx = 0.;
  for (i = 0; i < 1000; i++) {
    mod_wx += ((1. / 3.) - x[i]) * ((1. / 3.) - x[i]);
    mod_bHx += (b[i] - Hx[i]) * (b[i] - Hx[i]);
  }
  mod_wx = sqrt(mod_wx);
  mod_bHx = sqrt(mod_bHx);
  printf("%2d \t %24.14e \t %24.14e \n", k, mod_wx, mod_bHx);
  for (k = 1; k <= 50; k++) {
    for (i = 1; i <= 1000; i++) {
      sum = 0.;
      for (j = 1; j <= 1000; j++) {
        elts = p[j - 1] * (1. / (double)(i + j - 1));
        sum += elts;
      }
      Hp[i - 1] = sum;
    }
    deno = 0.;
    for (i = 0; i < 1000; i++)
      deno += p[i] * Hp[i];
    alpha = rold / deno;
    rnew = 0.;
    for (i = 0; i < 1000; i++) {
      x[i] = x[i] + alpha * p[i];
      r[i] = r[i] - alpha * Hp[i];
      rnew += r[i] * r[i];
    }
    for (i = 0; i < 1000; i++)
      p[i] = r[i] + (rnew / rold) * p[i];
    rold = rnew;
    for (i = 1; i <= 1000; i++) {
      sum = 0.;
      for (j = 1; j <= 1000; j++) {
        elts = x[j - 1] * (1. / (double)(i + j - 1));
        sum += elts;
      }
      Hx[i - 1] = sum;
    }
    mod_wx = 0.;
    mod_bHx = 0.;
    for (i = 0; i < 1000; i++) {
      mod_wx += ((1. / 3.) - x[i]) * ((1. / 3.) - x[i]);
      mod_bHx += (b[i] - Hx[i]) * (b[i] - Hx[i]);
    }
    mod_wx = sqrt(mod_wx);
    mod_bHx = sqrt(mod_bHx);
    if (k == 1 || k == 2 || k == 3 || k == 50)
      printf("%2d \t %24.14e \t %24.14e \n", k, mod_wx, mod_bHx);
  }
  printf("x = %.14lf \n %.14lf \n %.14lf ... \n", x[0], x[19], x[772]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xbbf0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed7(%rip),%rdi
lea    0xee4(%rip),%rsi
lea    0xedf(%rip),%rdx
lea    0xede(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    118c <main+0x6c>
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x7d30(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    115d <main+0x3d>
movq   $0x1,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jg     1241 <main+0x121>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x3ea8(%rbp)
ff
movq   $0x1,-0x18(%rbp)
cmpq   $0x3e8,-0x18(%rbp)
jg     1217 <main+0xf7>
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
sub    $0x1,%rax
cvtsi2sd %rax,%xmm0
movsd  0xe2c(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0xe18(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x3ea8(%rbp),%xmm0
ff
movsd  %xmm0,-0x3ea8(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11b5 <main+0x95>
movsd  -0x3ea8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
sub    $0x1,%rax
movsd  %xmm0,-0x1f60(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1194 <main+0x74>
movq   $0x1,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jg     12ff <main+0x1df>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x3ea8(%rbp)
ff
movq   $0x1,-0x18(%rbp)
cmpq   $0x3e8,-0x18(%rbp)
jg     12d5 <main+0x1b5>
mov    -0x18(%rbp),%rax
sub    $0x1,%rax
movsd  -0x7d30(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
sub    $0x1,%rax
cvtsi2sd %rax,%xmm2
movsd  0xd66(%rip),%xmm1
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x3ea8(%rbp),%xmm0
ff
movsd  %xmm0,-0x3ea8(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    126a <main+0x14a>
movsd  -0x3ea8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
sub    $0x1,%rax
movsd  %xmm0,-0x3ea0(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1249 <main+0x129>
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    1367 <main+0x247>
mov    -0x10(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
subsd  -0x3ea0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  %xmm0,-0x5df0(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movsd  -0x5df0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  %xmm0,-0x9c70(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1307 <main+0x1e7>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x9c78(%rbp)
ff
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    13cb <main+0x2ab>
mov    -0x10(%rbp),%rax
movsd  -0x5df0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  -0x5df0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x9c78(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x9c78(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    137a <main+0x25a>
movl   $0x0,-0xbbe4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xbbd8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xbbe0(%rbp)
ff
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    14a0 <main+0x380>
mov    -0x10(%rbp),%rax
movsd  0xbf3(%rip),%xmm0
subsd  -0x7d30(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  0xbde(%rip),%xmm2
subsd  -0x7d30(%rbp,%rax,8),%xmm2
ff ff
movsd  -0xbbd8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xbbd8(%rbp)
ff
mov    -0x10(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
subsd  -0x3ea0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm2
ff ff
mov    -0x10(%rbp),%rax
subsd  -0x3ea0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0xbbe0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xbbe0(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    13f3 <main+0x2d3>
movsd  -0xbbd8(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
movsd  %xmm0,-0xbbd8(%rbp)
ff
movsd  -0xbbe0(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
movsd  %xmm0,-0xbbe0(%rbp)
ff
mov    -0xbbe4(%rbp),%esi
movsd  -0xbbd8(%rbp),%xmm0
ff
movsd  -0xbbe0(%rbp),%xmm1
ff
lea    0xb4c(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movl   $0x1,-0xbbe4(%rbp)
cmpl   $0x32,-0xbbe4(%rbp)
jg     19c2 <main+0x8a2>
movq   $0x1,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jg     15c3 <main+0x4a3>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x3ea8(%rbp)
ff
movq   $0x1,-0x18(%rbp)
cmpq   $0x3e8,-0x18(%rbp)
jg     1599 <main+0x479>
mov    -0x18(%rbp),%rax
sub    $0x1,%rax
movsd  -0x9c70(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
sub    $0x1,%rax
cvtsi2sd %rax,%xmm2
movsd  0xaa2(%rip),%xmm1
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x3ea8(%rbp),%xmm0
ff
movsd  %xmm0,-0x3ea8(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    152e <main+0x40e>
movsd  -0x3ea8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
sub    $0x1,%rax
movsd  %xmm0,-0xbbc0(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    150d <main+0x3ed>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xbbd0(%rbp)
ff
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    1627 <main+0x507>
mov    -0x10(%rbp),%rax
movsd  -0x9c70(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  -0xbbc0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0xbbd0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xbbd0(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    15d6 <main+0x4b6>
movsd  -0x9c78(%rbp),%xmm0
ff
divsd  -0xbbd0(%rbp),%xmm0
ff
movsd  %xmm0,-0xbbc8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x9c80(%rbp)
ff
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    1728 <main+0x608>
mov    -0x10(%rbp),%rax
movsd  -0x7d30(%rbp,%rax,8),%xmm1
ff ff
movsd  -0xbbc8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movsd  -0x9c70(%rbp,%rax,8),%xmm2
ff ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,-0x7d30(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movsd  -0x5df0(%rbp,%rax,8),%xmm1
ff ff
movsd  -0xbbc8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movsd  -0xbbc0(%rbp,%rax,8),%xmm2
ff ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,-0x5df0(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
movsd  -0x5df0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  -0x5df0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x9c80(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x9c80(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1652 <main+0x532>
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    178e <main+0x66e>
mov    -0x10(%rbp),%rax
movsd  -0x5df0(%rbp,%rax,8),%xmm1
ff ff
movsd  -0x9c80(%rbp),%xmm0
ff
divsd  -0x9c78(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movsd  -0x9c70(%rbp,%rax,8),%xmm2
ff ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,-0x9c70(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1730 <main+0x610>
movsd  -0x9c80(%rbp),%xmm0
ff
movsd  %xmm0,-0x9c78(%rbp)
ff
movq   $0x1,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jg     185c <main+0x73c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x3ea8(%rbp)
ff
movq   $0x1,-0x18(%rbp)
cmpq   $0x3e8,-0x18(%rbp)
jg     1832 <main+0x712>
mov    -0x18(%rbp),%rax
sub    $0x1,%rax
movsd  -0x7d30(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
sub    $0x1,%rax
cvtsi2sd %rax,%xmm2
movsd  0x809(%rip),%xmm1
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x3ea8(%rbp),%xmm0
ff
movsd  %xmm0,-0x3ea8(%rbp)
ff
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    17c7 <main+0x6a7>
movsd  -0x3ea8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
sub    $0x1,%rax
movsd  %xmm0,-0x3ea0(%rbp,%rax,8)
ff ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    17a6 <main+0x686>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xbbd8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xbbe0(%rbp)
ff
movq   $0x0,-0x10(%rbp)
cmpq   $0x3e8,-0x10(%rbp)
jge    1927 <main+0x807>
mov    -0x10(%rbp),%rax
movsd  0x76c(%rip),%xmm0
subsd  -0x7d30(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  0x757(%rip),%xmm2
subsd  -0x7d30(%rbp,%rax,8),%xmm2
ff ff
movsd  -0xbbd8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xbbd8(%rbp)
ff
mov    -0x10(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
subsd  -0x3ea0(%rbp,%rax,8),%xmm0
ff ff
mov    -0x10(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm2
ff ff
mov    -0x10(%rbp),%rax
subsd  -0x3ea0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0xbbe0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xbbe0(%rbp)
ff
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    187a <main+0x75a>
movsd  -0xbbd8(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
movsd  %xmm0,-0xbbd8(%rbp)
ff
movsd  -0xbbe0(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
movsd  %xmm0,-0xbbe0(%rbp)
ff
cmpl   $0x1,-0xbbe4(%rbp)
je     1985 <main+0x865>
cmpl   $0x2,-0xbbe4(%rbp)
je     1985 <main+0x865>
cmpl   $0x3,-0xbbe4(%rbp)
je     1985 <main+0x865>
cmpl   $0x32,-0xbbe4(%rbp)
jne    19a9 <main+0x889>
mov    -0xbbe4(%rbp),%esi
movsd  -0xbbd8(%rbp),%xmm0
ff
movsd  -0xbbe0(%rbp),%xmm1
ff
lea    0x691(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
jmp    19ae <main+0x88e>
mov    -0xbbe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbbe4(%rbp)
jmp    14f8 <main+0x3d8>
movsd  -0x7d30(%rbp),%xmm0
ff
movsd  -0x7c98(%rbp),%xmm1
ff
movsd  -0x6510(%rbp),%xmm2
ff
lea    0x66c(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xbbf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0xbba0,%rsp
lea    0xefe(%rip),%rdi
lea    0xf0b(%rip),%rsi
lea    0xf06(%rip),%rdx
lea    0xf05(%rip),%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x3ea0(%rsp),%rdi
mov    $0x1f40,%edx
xor    %esi,%esi
call   1040 <memset@plt>
mov    $0x1,%eax
mov    $0x2,%ecx
movsd  0xe7c(%rip),%xmm4
movsd  0xe7c(%rip),%xmm0
nopl   0x0(%rax)
xorpd  %xmm1,%xmm1
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
lea    (%rax,%rdx,1),%rsi
xorps  %xmm2,%xmm2
cvtsi2sd %rsi,%xmm2
movapd %xmm4,%xmm3
divsd  %xmm2,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm1,%xmm3
lea    (%rcx,%rdx,1),%rsi
xorps  %xmm2,%xmm2
cvtsi2sd %rsi,%xmm2
movapd %xmm4,%xmm1
divsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm3,%xmm1
add    $0x2,%rdx
cmp    $0x3e8,%rdx
jne    11a0 <main+0x70>
movsd  %xmm1,0x7d18(%rsp,%rax,8)
add    $0x1,%rax
add    $0x1,%rcx
cmp    $0x3e9,%rax
jne    1190 <main+0x60>
mov    $0x1,%eax
mov    $0x2,%ecx
nopl   0x0(%rax,%rax,1)
xorpd  %xmm0,%xmm0
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
lea    (%rax,%rdx,1),%rsi
xorps  %xmm1,%xmm1
cvtsi2sd %rsi,%xmm1
movapd %xmm4,%xmm2
divsd  %xmm1,%xmm2
mulsd  0x3ea0(%rsp,%rdx,8),%xmm2
lea    (%rcx,%rdx,1),%rsi
xorps  %xmm1,%xmm1
cvtsi2sd %rsi,%xmm1
addsd  %xmm0,%xmm2
movapd %xmm4,%xmm0
divsd  %xmm1,%xmm0
mulsd  0x3ea8(%rsp,%rdx,8),%xmm0
addsd  %xmm2,%xmm0
add    $0x2,%rdx
cmp    $0x3e8,%rdx
jne    1220 <main+0xf0>
movsd  %xmm0,0x5dd8(%rsp,%rax,8)
add    $0x1,%rax
add    $0x1,%rcx
cmp    $0x3e9,%rax
jne    1210 <main+0xe0>
mov    $0x6,%eax
nopl   (%rax)
movapd 0x7cf0(%rsp,%rax,8),%xmm0
movapd 0x7d00(%rsp,%rax,8),%xmm1
movapd 0x7d10(%rsp,%rax,8),%xmm2
movapd 0x7d20(%rsp,%rax,8),%xmm3
subpd  0x5db0(%rsp,%rax,8),%xmm0
subpd  0x5dc0(%rsp,%rax,8),%xmm1
movapd %xmm0,0x1f30(%rsp,%rax,8)
movapd %xmm1,0x1f40(%rsp,%rax,8)
movapd %xmm0,-0x10(%rsp,%rax,8)
movapd %xmm1,(%rsp,%rax,8)
subpd  0x5dd0(%rsp,%rax,8),%xmm2
subpd  0x5de0(%rsp,%rax,8),%xmm3
movapd %xmm2,0x1f50(%rsp,%rax,8)
movapd %xmm3,0x1f60(%rsp,%rax,8)
movapd %xmm2,0x10(%rsp,%rax,8)
movapd %xmm3,0x20(%rsp,%rax,8)
add    $0x8,%rax
cmp    $0x3ee,%rax
jne    1290 <main+0x160>
xorpd  %xmm3,%xmm3
mov    $0x4,%eax
nopl   0x0(%rax)
movsd  0x1f40(%rsp,%rax,8),%xmm0
movsd  0x1f48(%rsp,%rax,8),%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x1f50(%rsp,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0x1f58(%rsp,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x1f60(%rsp,%rax,8),%xmm3
mulsd  %xmm3,%xmm3
addsd  %xmm1,%xmm3
add    $0x5,%rax
cmp    $0x3ec,%rax
jne    1330 <main+0x200>
xorpd  %xmm4,%xmm4
mov    $0x1,%eax
movapd 0xc7e(%rip),%xmm2
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movapd %xmm2,%xmm0
movlpd 0x7d18(%rsp,%rax,8),%xmm0
movsd  0x5dd8(%rsp,%rax,8),%xmm1
movhpd 0x3e98(%rsp,%rax,8),%xmm1
subpd  %xmm1,%xmm0
mulpd  %xmm0,%xmm0
addpd  %xmm4,%xmm0
movapd %xmm2,%xmm4
movlpd 0x7d20(%rsp,%rax,8),%xmm4
movsd  0x5de0(%rsp,%rax,8),%xmm1
movhpd 0x3ea0(%rsp,%rax,8),%xmm1
subpd  %xmm1,%xmm4
mulpd  %xmm4,%xmm4
addpd  %xmm0,%xmm4
add    $0x2,%rax
cmp    $0x3e9,%rax
jne    13b0 <main+0x280>
movapd %xmm4,%xmm0
unpckhpd %xmm4,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
movsd  %xmm3,0x8(%rsp)
jb     144f <main+0x31f>
sqrtsd %xmm0,%xmm0
ucomisd %xmm1,%xmm4
jae    146a <main+0x33a>
movsd  %xmm0,0x10(%rsp)
movapd %xmm4,%xmm0
call   1050 <sqrt@plt>
movapd %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
jmp    1471 <main+0x341>
movapd %xmm4,0x10(%rsp)
call   1050 <sqrt@plt>
xorpd  %xmm1,%xmm1
movapd 0x10(%rsp),%xmm4
ucomisd %xmm1,%xmm4
jb     1434 <main+0x304>
xorps  %xmm1,%xmm1
sqrtsd %xmm4,%xmm1
lea    0xbeb(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x2,%al
call   1030 <printf@plt>
mov    $0x1,%ebp
movabs $0x400000000000e,%rbx
movsd  0xb65(%rip),%xmm5
movsd  0x8(%rsp),%xmm2
jmp    14bc <main+0x38c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%ebp
cmp    $0x33,%ebp
je     1864 <main+0x734>
movapd %xmm2,%xmm0
mov    $0x1,%eax
mov    $0x2,%ecx
nopw   0x0(%rax,%rax,1)
xorpd  %xmm1,%xmm1
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
lea    (%rax,%rdx,1),%rsi
xorps  %xmm2,%xmm2
cvtsi2sd %rsi,%xmm2
movapd %xmm5,%xmm3
divsd  %xmm2,%xmm3
mulsd  0x20(%rsp,%rdx,8),%xmm3
lea    (%rcx,%rdx,1),%rsi
xorps  %xmm2,%xmm2
cvtsi2sd %rsi,%xmm2
addsd  %xmm1,%xmm3
movapd %xmm5,%xmm1
divsd  %xmm2,%xmm1
mulsd  0x28(%rsp,%rdx,8),%xmm1
addsd  %xmm3,%xmm1
add    $0x2,%rdx
cmp    $0x3e8,%rdx
jne    14e0 <main+0x3b0>
movsd  %xmm1,0x9c58(%rsp,%rax,8)
add    $0x1,%rax
add    $0x1,%rcx
cmp    $0x3e9,%rax
jne    14d0 <main+0x3a0>
xorpd  %xmm2,%xmm2
mov    $0x4,%eax
nopl   0x0(%rax,%rax,1)
movsd  (%rsp,%rax,8),%xmm1
movsd  0x8(%rsp,%rax,8),%xmm3
mulsd  0x9c40(%rsp,%rax,8),%xmm1
mulsd  0x9c48(%rsp,%rax,8),%xmm3
addsd  %xmm2,%xmm1
movsd  0x10(%rsp,%rax,8),%xmm4
mulsd  0x9c50(%rsp,%rax,8),%xmm4
addsd  %xmm1,%xmm3
movsd  0x18(%rsp,%rax,8),%xmm1
mulsd  0x9c58(%rsp,%rax,8),%xmm1
addsd  %xmm3,%xmm4
movsd  0x20(%rsp,%rax,8),%xmm2
mulsd  0x9c60(%rsp,%rax,8),%xmm2
addsd  %xmm4,%xmm1
addsd  %xmm1,%xmm2
add    $0x5,%rax
cmp    $0x3ec,%rax
jne    1550 <main+0x420>
movapd %xmm0,%xmm1
divsd  %xmm2,%xmm1
movapd %xmm1,%xmm2
xorpd  0xa62(%rip),%xmm2
xorpd  %xmm4,%xmm4
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x20(%rsp,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  0x3ea0(%rsp,%rax,8),%xmm3
movsd  %xmm3,0x3ea0(%rsp,%rax,8)
movsd  0x9c60(%rsp,%rax,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  0x1f60(%rsp,%rax,8),%xmm3
movsd  %xmm3,0x1f60(%rsp,%rax,8)
mulsd  %xmm3,%xmm3
addsd  %xmm3,%xmm4
add    $0x1,%rax
cmp    $0x3e8,%rax
jne    15e0 <main+0x4b0>
movapd %xmm4,%xmm1
divsd  %xmm0,%xmm1
unpcklpd %xmm1,%xmm1
mov    $0x6,%eax
movapd -0x10(%rsp,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
addpd  0x1f30(%rsp,%rax,8),%xmm0
movapd (%rsp,%rax,8),%xmm2
mulpd  %xmm1,%xmm2
addpd  0x1f40(%rsp,%rax,8),%xmm2
movapd %xmm0,-0x10(%rsp,%rax,8)
movapd %xmm2,(%rsp,%rax,8)
movapd 0x10(%rsp,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
addpd  0x1f50(%rsp,%rax,8),%xmm0
movapd 0x20(%rsp,%rax,8),%xmm2
mulpd  %xmm1,%xmm2
addpd  0x1f60(%rsp,%rax,8),%xmm2
movapd %xmm0,0x10(%rsp,%rax,8)
movapd %xmm2,0x20(%rsp,%rax,8)
add    $0x8,%rax
cmp    $0x3ee,%rax
jne    1640 <main+0x510>
mov    $0x1,%eax
mov    $0x2,%ecx
nopl   0x0(%rax,%rax,1)
xorpd  %xmm0,%xmm0
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
lea    (%rax,%rdx,1),%rsi
xorps  %xmm1,%xmm1
cvtsi2sd %rsi,%xmm1
movapd %xmm5,%xmm2
divsd  %xmm1,%xmm2
mulsd  0x3ea0(%rsp,%rdx,8),%xmm2
lea    (%rcx,%rdx,1),%rsi
xorps  %xmm1,%xmm1
cvtsi2sd %rsi,%xmm1
addsd  %xmm0,%xmm2
movapd %xmm5,%xmm0
divsd  %xmm1,%xmm0
mulsd  0x3ea8(%rsp,%rdx,8),%xmm0
addsd  %xmm2,%xmm0
add    $0x2,%rdx
cmp    $0x3e8,%rdx
jne    16d0 <main+0x5a0>
movsd  %xmm0,0x5dd8(%rsp,%rax,8)
add    $0x1,%rax
add    $0x1,%rcx
cmp    $0x3e9,%rax
jne    16c0 <main+0x590>
xorpd  %xmm3,%xmm3
mov    $0x1,%eax
movapd 0x8d7(%rip),%xmm2
nopl   0x0(%rax)
movapd %xmm2,%xmm0
movlpd 0x7d18(%rsp,%rax,8),%xmm0
movsd  0x5dd8(%rsp,%rax,8),%xmm1
movhpd 0x3e98(%rsp,%rax,8),%xmm1
subpd  %xmm1,%xmm0
mulpd  %xmm0,%xmm0
addpd  %xmm3,%xmm0
movapd %xmm2,%xmm3
movlpd 0x7d20(%rsp,%rax,8),%xmm3
movsd  0x5de0(%rsp,%rax,8),%xmm1
movhpd 0x3ea0(%rsp,%rax,8),%xmm1
subpd  %xmm1,%xmm3
mulpd  %xmm3,%xmm3
addpd  %xmm0,%xmm3
add    $0x2,%rax
cmp    $0x3e9,%rax
jne    1750 <main+0x620>
movapd %xmm3,%xmm0
unpckhpd %xmm3,%xmm0
ucomisd 0x84e(%rip),%xmm0
movsd  %xmm4,0x8(%rsp)
jb     1800 <main+0x6d0>
sqrtsd %xmm0,%xmm0
ucomisd 0x83a(%rip),%xmm3
jae    181b <main+0x6eb>
movsd  %xmm0,0x10(%rsp)
movapd %xmm3,%xmm0
call   1050 <sqrt@plt>
movapd %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
jmp    1822 <main+0x6f2>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movapd %xmm3,0x10(%rsp)
call   1050 <sqrt@plt>
movapd 0x10(%rsp),%xmm3
ucomisd 0x7f7(%rip),%xmm3
jb     17d8 <main+0x6a8>
xorps  %xmm1,%xmm1
sqrtsd %xmm3,%xmm1
movsd  0x7d6(%rip),%xmm5
movsd  0x8(%rsp),%xmm2
cmp    $0x32,%ebp
ja     14b0 <main+0x380>
mov    %ebp,%eax
bt     %rax,%rbx
jae    14b0 <main+0x380>
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm2
movsd  0x7a1(%rip),%xmm5
jmp    14b0 <main+0x380>
movsd  0x3ea0(%rsp),%xmm0
movsd  0x3f38(%rsp),%xmm1
movsd  0x56c0(%rsp),%xmm2
lea    0x7f7(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xbba0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

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