#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() {
  int i, j, k;
  double elts, c[50], Bx[50], sum;
  double r[50], x[50], p[50], rold, rnew;
  double Bp[50], alpha, deno;
  double mod_cBx;
  printf("%2s \t %24s \n", "k", "|c-Bx|");
  for (i = 0; i < 50; i++)
    x[i] = 0;
  c[0] = -2.0 / 3.0;
  for (i = 1; i < 50; i++)
    c[i] = -1.0 / 3.0;
  for (i = 1; i <= 50; i++) {
    sum = 0.;
    for (j = 1; j <= 50; j++) {
      elts = 0.;
      if (i == 1 && j == 1)
        elts = 4.0;
      if (i != 1 && j != 1 && i == j)
        elts = 5.0;
      if (j == i + 1 || j == i - 1)
        elts = -2.0;
      sum += elts * x[j - 1];
    }
    Bx[i - 1] = sum;
  }
  for (i = 0; i < 50; i++) {
    r[i] = c[i] - Bx[i];
    p[i] = r[i];
  }
  rold = 0.;
  for (i = 0; i < 50; i++)
    rold += r[i] * r[i];
  k = 0;
  mod_cBx = 0.;
  for (i = 0; i < 50; i++)
    mod_cBx += (c[i] - Bx[i]) * (c[i] - Bx[i]);
  mod_cBx = sqrt(mod_cBx);
  printf("%2d \t %24.14e \n", k, mod_cBx);
  for (k = 1; k <= 50; k++) {
    for (i = 1; i <= 50; i++) {
      sum = 0.;
      for (j = 1; j <= 50; j++) {
        elts = 0.;
        if (i == 1 && j == 1)
          elts = 4.0;
        if (i != 1 && j != 1 && i == j)
          elts = 5.0;
        if (j == i + 1 || j == i - 1)
          elts = -2.0;
        sum += elts * p[j - 1];
      }
      Bp[i - 1] = sum;
    }
    deno = 0.;
    for (i = 0; i < 50; i++)
      deno += p[i] * Bp[i];
    alpha = rold / deno;
    rnew = 0.;
    for (i = 0; i < 50; i++) {
      x[i] = x[i] + alpha * p[i];
      r[i] = r[i] - alpha * Bp[i];
      rnew += r[i] * r[i];
    }
    for (i = 0; i < 50; i++)
      p[i] = r[i] + (rnew / rold) * p[i];
    rold = rnew;
    for (i = 1; i <= 50; i++) {
      sum = 0.;
      for (j = 1; j <= 50; j++) {
        elts = 0.;
        if (i == 1 && j == 1)
          elts = 4.0;
        if (i != 1 && j != 1 && i == j)
          elts = 5.0;
        if (j == i + 1 || j == i - 1)
          elts = -2.0;
        sum += elts * x[j - 1];
      }
      Bx[i - 1] = sum;
    }
    mod_cBx = 0.;
    for (i = 0; i < 50; i++)
      mod_cBx += (c[i] - Bx[i]) * (c[i] - Bx[i]);
    mod_cBx = sqrt(mod_cBx);
    printf("%2d \t %24.14e \n", k, mod_cBx);
  }
  printf("The solution is \n");
  for (i = 0; i < 50; i++)
    printf("%2d %.14lf \n", i, x[i]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9c0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeef(%rip),%rdi
lea    0xef5(%rip),%rsi
lea    0xef0(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    117d <main+0x5d>
movslq -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x670(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1155 <main+0x35>
movsd  0xe7b(%rip),%xmm0
movsd  %xmm0,-0x1b0(%rbp)
ff
movl   $0x1,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    11c1 <main+0xa1>
movslq -0x8(%rbp),%rax
movsd  0xe76(%rip),%xmm0
movsd  %xmm0,-0x1b0(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1194 <main+0x74>
movl   $0x1,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jg     12d6 <main+0x1b6>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x348(%rbp)
ff
movl   $0x1,-0xc(%rbp)
cmpl   $0x32,-0xc(%rbp)
jg     12af <main+0x18f>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1217 <main+0xf7>
cmpl   $0x1,-0xc(%rbp)
jne    1217 <main+0xf7>
movsd  0xdf6(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     1244 <main+0x124>
cmpl   $0x1,-0xc(%rbp)
je     1244 <main+0x124>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1244 <main+0x124>
movsd  0xdd1(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     1266 <main+0x146>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1273 <main+0x153>
movsd  0xdaa(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x670(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x348(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x348(%rbp)
ff
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11e4 <main+0xc4>
movsd  -0x348(%rbp),%xmm0
ff
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  %xmm0,-0x340(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11c8 <main+0xa8>
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    1336 <main+0x216>
movslq -0x8(%rbp),%rax
movsd  -0x1b0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
subsd  -0x340(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x4e0(%rbp,%rax,8)
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x4e0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x800(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12dd <main+0x1bd>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x808(%rbp)
ff
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    1392 <main+0x272>
movslq -0x8(%rbp),%rax
movsd  -0x4e0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x4e0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x808(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x808(%rbp)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1348 <main+0x228>
movl   $0x0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x9b8(%rbp)
ff
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    140f <main+0x2ef>
movslq -0x8(%rbp),%rax
movsd  -0x1b0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
subsd  -0x340(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x1b0(%rbp,%rax,8),%xmm2
ff ff
movslq -0x8(%rbp),%rax
subsd  -0x340(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x9b8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x9b8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13ab <main+0x28b>
movsd  -0x9b8(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
movsd  %xmm0,-0x9b8(%rbp)
ff
mov    -0x10(%rbp),%esi
movsd  -0x9b8(%rbp),%xmm0
ff
lea    0xc08(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
cmpl   $0x32,-0x10(%rbp)
jg     18ed <main+0x7cd>
movl   $0x1,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jg     1563 <main+0x443>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x348(%rbp)
ff
movl   $0x1,-0xc(%rbp)
cmpl   $0x32,-0xc(%rbp)
jg     153c <main+0x41c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    14a4 <main+0x384>
cmpl   $0x1,-0xc(%rbp)
jne    14a4 <main+0x384>
movsd  0xb69(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     14d1 <main+0x3b1>
cmpl   $0x1,-0xc(%rbp)
je     14d1 <main+0x3b1>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    14d1 <main+0x3b1>
movsd  0xb44(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     14f3 <main+0x3d3>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1500 <main+0x3e0>
movsd  0xb1d(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x800(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x348(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x348(%rbp)
ff
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1471 <main+0x351>
movsd  -0x348(%rbp),%xmm0
ff
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  %xmm0,-0x9a0(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1455 <main+0x335>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x9b0(%rbp)
ff
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    15bf <main+0x49f>
movslq -0x8(%rbp),%rax
movsd  -0x800(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x9a0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x9b0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x9b0(%rbp)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1575 <main+0x455>
movsd  -0x808(%rbp),%xmm0
ff
divsd  -0x9b0(%rbp),%xmm0
ff
movsd  %xmm0,-0x9a8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x810(%rbp)
ff
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    16b8 <main+0x598>
movslq -0x8(%rbp),%rax
movsd  -0x670(%rbp,%rax,8),%xmm1
ff ff
movsd  -0x9a8(%rbp),%xmm0
ff
movslq -0x8(%rbp),%rax
movsd  -0x800(%rbp,%rax,8),%xmm2
ff ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x670(%rbp,%rax,8)
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x4e0(%rbp,%rax,8),%xmm1
ff ff
movsd  -0x9a8(%rbp),%xmm0
ff
movslq -0x8(%rbp),%rax
movsd  -0x9a0(%rbp,%rax,8),%xmm2
ff ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x4e0(%rbp,%rax,8)
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x4e0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x4e0(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x810(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x810(%rbp)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    15e9 <main+0x4c9>
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    1716 <main+0x5f6>
movslq -0x8(%rbp),%rax
movsd  -0x4e0(%rbp,%rax,8),%xmm1
ff ff
movsd  -0x810(%rbp),%xmm0
ff
divsd  -0x808(%rbp),%xmm0
ff
movslq -0x8(%rbp),%rax
movsd  -0x800(%rbp,%rax,8),%xmm2
ff ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x8(%rbp),%rax
movsd  %xmm0,-0x800(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    16bf <main+0x59f>
movsd  -0x810(%rbp),%xmm0
ff
movsd  %xmm0,-0x808(%rbp)
ff
movl   $0x1,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jg     183b <main+0x71b>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x348(%rbp)
ff
movl   $0x1,-0xc(%rbp)
cmpl   $0x32,-0xc(%rbp)
jg     1814 <main+0x6f4>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    177c <main+0x65c>
cmpl   $0x1,-0xc(%rbp)
jne    177c <main+0x65c>
movsd  0x891(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x1,-0x8(%rbp)
je     17a9 <main+0x689>
cmpl   $0x1,-0xc(%rbp)
je     17a9 <main+0x689>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    17a9 <main+0x689>
movsd  0x86c(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     17cb <main+0x6ab>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    17d8 <main+0x6b8>
movsd  0x845(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x670(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x348(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x348(%rbp)
ff
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1749 <main+0x629>
movsd  -0x348(%rbp),%xmm0
ff
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  %xmm0,-0x340(%rbp,%rax,8)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    172d <main+0x60d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x9b8(%rbp)
ff
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    18b1 <main+0x791>
movslq -0x8(%rbp),%rax
movsd  -0x1b0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
subsd  -0x340(%rbp,%rax,8),%xmm0
ff ff
movslq -0x8(%rbp),%rax
movsd  -0x1b0(%rbp,%rax,8),%xmm2
ff ff
movslq -0x8(%rbp),%rax
subsd  -0x340(%rbp,%rax,8),%xmm2
ff ff
movsd  -0x9b8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x9b8(%rbp)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    184d <main+0x72d>
movsd  -0x9b8(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
movsd  %xmm0,-0x9b8(%rbp)
ff
mov    -0x10(%rbp),%esi
movsd  -0x9b8(%rbp),%xmm0
ff
lea    0x766(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1444 <main+0x324>
lea    0x75a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x32,-0x8(%rbp)
jge    1938 <main+0x818>
mov    -0x8(%rbp),%esi
movslq -0x8(%rbp),%rax
movsd  -0x670(%rbp,%rax,8),%xmm0
ff ff
lea    0x73d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1902 <main+0x7e2>
mov    -0x4(%rbp),%eax
add    $0x9c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x978,%rsp
lea    0xefc(%rip),%rdi
lea    0xf02(%rip),%rsi
lea    0xefd(%rip),%rdx
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x7e0(%rsp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1050 <memset@plt>
movaps 0xe7a(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe7e(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x130(%rsp)
movaps %xmm0,0x140(%rsp)
movaps %xmm0,0x150(%rsp)
movaps %xmm0,0x160(%rsp)
movaps %xmm0,0x170(%rsp)
movaps %xmm0,0x180(%rsp)
movaps %xmm0,0x190(%rsp)
mov    $0x1,%ecx
movsd  0xde3(%rip),%xmm0
movsd  0xde3(%rip),%xmm1
movsd  0xde3(%rip),%xmm2
jmp    1279 <main+0x139>
nop
movsd  %xmm3,0x4b8(%rsp,%rcx,8)
mov    %rdx,%rbx
mov    %rbp,%rcx
cmp    $0x33,%rbp
je     1315 <main+0x1d5>
lea    0x1(%rcx),%rbp
lea    0x8(%rbx),%rdx
lea    -0x8(%rbx),%rsi
xorpd  %xmm3,%xmm3
xor    %edi,%edi
jmp    12aa <main+0x16a>
nopl   (%rax)
mulsd  0x7e0(%rsp,%rdi,1),%xmm5
addsd  %xmm5,%xmm3
add    $0x8,%rdi
cmp    $0x190,%rdi
je     1260 <main+0x120>
mov    %rcx,%rax
xor    $0x1,%rax
or     %rdi,%rax
movapd %xmm0,%xmm4
je     12be <main+0x17e>
xorpd  %xmm4,%xmm4
movapd %xmm1,%xmm5
cmp    %rdi,%rbx
jne    1300 <main+0x1c0>
test   %rdi,%rdi
je     1309 <main+0x1c9>
cmp    $0x1,%rcx
jne    12d6 <main+0x196>
movapd %xmm4,%xmm5
movapd %xmm2,%xmm4
cmp    %rdi,%rsi
je     12e3 <main+0x1a3>
movapd %xmm5,%xmm4
movapd %xmm2,%xmm5
cmp    %rdi,%rdx
je     1290 <main+0x150>
movapd %xmm4,%xmm5
jmp    1290 <main+0x150>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movapd %xmm4,%xmm5
test   %rdi,%rdi
jne    12cc <main+0x18c>
movapd %xmm4,%xmm5
cmp    $0x1,%rcx
je     12d2 <main+0x192>
jmp    12d6 <main+0x196>
mov    $0x6,%eax
nopw   0x0(%rax,%rax,1)
movapd -0x20(%rsp,%rax,8),%xmm0
subpd  0x490(%rsp,%rax,8),%xmm0
movapd %xmm0,0x300(%rsp,%rax,8)
movapd %xmm0,0x170(%rsp,%rax,8)
cmp    $0x36,%rax
je     13b2 <main+0x272>
movapd -0x10(%rsp,%rax,8),%xmm0
movapd (%rsp,%rax,8),%xmm1
subpd  0x4a0(%rsp,%rax,8),%xmm0
movapd 0x10(%rsp,%rax,8),%xmm2
movapd %xmm0,0x310(%rsp,%rax,8)
subpd  0x4b0(%rsp,%rax,8),%xmm1
movapd %xmm0,0x180(%rsp,%rax,8)
movapd %xmm1,0x320(%rsp,%rax,8)
subpd  0x4c0(%rsp,%rax,8),%xmm2
movapd %xmm1,0x190(%rsp,%rax,8)
movapd %xmm2,0x330(%rsp,%rax,8)
movapd %xmm2,0x1a0(%rsp,%rax,8)
add    $0x8,%rax
jmp    1320 <main+0x1e0>
xorpd  %xmm2,%xmm2
mov    $0x4,%eax
nopl   0x0(%rax,%rax,1)
movsd  0x310(%rsp,%rax,8),%xmm0
movsd  0x318(%rsp,%rax,8),%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x320(%rsp,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0x328(%rsp,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x330(%rsp,%rax,8),%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
add    $0x5,%rax
cmp    $0x36,%rax
jne    13c0 <main+0x280>
xorpd  %xmm0,%xmm0
mov    $0x1,%eax
nopl   0x0(%rax,%rax,1)
movsd  0x8(%rsp,%rax,8),%xmm1
subsd  0x4b8(%rsp,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp,%rax,8),%xmm0
subsd  0x4c0(%rsp,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x2,%rax
cmp    $0x33,%rax
jne    1430 <main+0x2f0>
movsd  %xmm2,0x8(%rsp)
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     147e <main+0x33e>
sqrtsd %xmm0,%xmm0
jmp    1483 <main+0x343>
call   1060 <sqrt@plt>
lea    0xbdc(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1040 <printf@plt>
mov    $0x1,%r15d
movsd  0xb8c(%rip),%xmm5
movsd  0xb8c(%rip),%xmm6
movsd  0xb8c(%rip),%xmm7
jmp    14f8 <main+0x3b8>
cs nopw 0x0(%rax,%rax,1)
call   1060 <sqrt@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%r15d
cmp    $0x33,%r15d
movsd  0xb4e(%rip),%xmm5
movsd  0xb4e(%rip),%xmm6
movsd  0xb4e(%rip),%xmm7
je     18b5 <main+0x775>
movsd  0x8(%rsp),%xmm0
mov    $0x1,%edx
xor    %ecx,%ecx
jmp    1529 <main+0x3e9>
nopw   0x0(%rax,%rax,1)
movsd  %xmm1,0x648(%rsp,%rdx,8)
mov    %rsi,%rcx
mov    %rbp,%rdx
cmp    $0x33,%rbp
je     15d0 <main+0x490>
lea    0x1(%rdx),%rbp
lea    0x8(%rcx),%rsi
lea    -0x8(%rcx),%rdi
xorpd  %xmm1,%xmm1
xor    %ebx,%ebx
jmp    155a <main+0x41a>
nopl   (%rax)
mulsd  0x1a0(%rsp,%rbx,1),%xmm3
addsd  %xmm3,%xmm1
add    $0x8,%rbx
cmp    $0x190,%rbx
je     1510 <main+0x3d0>
mov    %rdx,%rax
xor    $0x1,%rax
or     %rbx,%rax
movapd %xmm5,%xmm2
je     156e <main+0x42e>
xorpd  %xmm2,%xmm2
movapd %xmm6,%xmm3
cmp    %rbx,%rcx
jne    15b0 <main+0x470>
test   %rbx,%rbx
je     15b9 <main+0x479>
cmp    $0x1,%rdx
jne    1586 <main+0x446>
movapd %xmm2,%xmm3
movapd %xmm7,%xmm2
cmp    %rbx,%rdi
je     1593 <main+0x453>
movapd %xmm3,%xmm2
movapd %xmm7,%xmm3
cmp    %rbx,%rsi
je     1540 <main+0x400>
movapd %xmm2,%xmm3
jmp    1540 <main+0x400>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movapd %xmm2,%xmm3
test   %rbx,%rbx
jne    157c <main+0x43c>
movapd %xmm2,%xmm3
cmp    $0x1,%rdx
je     1582 <main+0x442>
jmp    1586 <main+0x446>
cs nopw 0x0(%rax,%rax,1)
nop
xorpd  %xmm2,%xmm2
mov    $0x4,%eax
nopl   0x0(%rax)
movsd  0x180(%rsp,%rax,8),%xmm1
movsd  0x188(%rsp,%rax,8),%xmm3
mulsd  0x630(%rsp,%rax,8),%xmm1
mulsd  0x638(%rsp,%rax,8),%xmm3
addsd  %xmm2,%xmm1
movsd  0x190(%rsp,%rax,8),%xmm4
mulsd  0x640(%rsp,%rax,8),%xmm4
addsd  %xmm1,%xmm3
movsd  0x198(%rsp,%rax,8),%xmm1
mulsd  0x648(%rsp,%rax,8),%xmm1
addsd  %xmm3,%xmm4
movsd  0x1a0(%rsp,%rax,8),%xmm2
mulsd  0x650(%rsp,%rax,8),%xmm2
addsd  %xmm4,%xmm1
addsd  %xmm1,%xmm2
add    $0x5,%rax
cmp    $0x36,%rax
jne    15e0 <main+0x4a0>
movapd %xmm0,%xmm1
divsd  %xmm2,%xmm1
movapd %xmm1,%xmm2
xorpd  0x9b4(%rip),%xmm2
xorpd  %xmm4,%xmm4
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x1a0(%rsp,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  0x7e0(%rsp,%rax,8),%xmm3
movsd  %xmm3,0x7e0(%rsp,%rax,8)
movsd  0x650(%rsp,%rax,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  0x330(%rsp,%rax,8),%xmm3
movsd  %xmm3,0x330(%rsp,%rax,8)
mulsd  %xmm3,%xmm3
addsd  %xmm3,%xmm4
add    $0x1,%rax
cmp    $0x32,%rax
jne    1680 <main+0x540>
movapd %xmm4,%xmm1
divsd  %xmm0,%xmm1
unpcklpd %xmm1,%xmm1
mov    $0x6,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movapd 0x170(%rsp,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
addpd  0x300(%rsp,%rax,8),%xmm0
movapd %xmm0,0x170(%rsp,%rax,8)
cmp    $0x36,%rax
je     1780 <main+0x640>
movapd 0x180(%rsp,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
addpd  0x310(%rsp,%rax,8),%xmm0
movapd %xmm0,0x180(%rsp,%rax,8)
movapd 0x190(%rsp,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
addpd  0x320(%rsp,%rax,8),%xmm0
movapd %xmm0,0x190(%rsp,%rax,8)
movapd 0x1a0(%rsp,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
addpd  0x330(%rsp,%rax,8),%xmm0
movapd %xmm0,0x1a0(%rsp,%rax,8)
add    $0x8,%rax
jmp    16f0 <main+0x5b0>
nopl   0x0(%rax,%rax,1)
mov    $0x1,%edx
xor    %ecx,%ecx
jmp    17a9 <main+0x669>
nopl   0x0(%rax)
movsd  %xmm0,0x4b8(%rsp,%rdx,8)
mov    %rsi,%rcx
mov    %rbp,%rdx
cmp    $0x33,%rbp
je     1850 <main+0x710>
lea    0x1(%rdx),%rbp
lea    0x8(%rcx),%rsi
lea    -0x8(%rcx),%rdi
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
jmp    17da <main+0x69a>
nopl   (%rax)
mulsd  0x7e0(%rsp,%rbx,1),%xmm2
addsd  %xmm2,%xmm0
add    $0x8,%rbx
cmp    $0x190,%rbx
je     1790 <main+0x650>
mov    %rdx,%rax
xor    $0x1,%rax
or     %rbx,%rax
movapd %xmm5,%xmm1
je     17ee <main+0x6ae>
xorpd  %xmm1,%xmm1
movapd %xmm6,%xmm2
cmp    %rbx,%rcx
jne    1830 <main+0x6f0>
test   %rbx,%rbx
je     1839 <main+0x6f9>
cmp    $0x1,%rdx
jne    1806 <main+0x6c6>
movapd %xmm1,%xmm2
movapd %xmm7,%xmm1
cmp    %rbx,%rdi
je     1813 <main+0x6d3>
movapd %xmm2,%xmm1
movapd %xmm7,%xmm2
cmp    %rbx,%rsi
je     17c0 <main+0x680>
movapd %xmm1,%xmm2
jmp    17c0 <main+0x680>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movapd %xmm1,%xmm2
test   %rbx,%rbx
jne    17fc <main+0x6bc>
movapd %xmm1,%xmm2
cmp    $0x1,%rdx
je     1802 <main+0x6c2>
jmp    1806 <main+0x6c6>
cs nopw 0x0(%rax,%rax,1)
nop
xorpd  %xmm0,%xmm0
mov    $0x1,%eax
nopl   0x0(%rax)
movsd  0x8(%rsp,%rax,8),%xmm1
subsd  0x4b8(%rsp,%rax,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp,%rax,8),%xmm0
subsd  0x4c0(%rsp,%rax,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x2,%rax
cmp    $0x33,%rax
jne    1860 <main+0x720>
ucomisd 0x7a8(%rip),%xmm0
movsd  %xmm4,0x8(%rsp)
jb     14c0 <main+0x380>
sqrtsd %xmm0,%xmm0
jmp    14c5 <main+0x385>
lea    0x7c7(%rip),%rdi
call   1030 <puts@plt>
xor    %ebx,%ebx
lea    0x7ac(%rip),%rbp
nopw   0x0(%rax,%rax,1)
movsd  0x7e0(%rsp,%rbx,8),%xmm0
mov    %rbp,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    $0x32,%rbx
jne    18d0 <main+0x790>
xor    %eax,%eax
add    $0x978,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

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