#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 */
typedef int uint8_t;
typedef int intmax_t;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ free(int *const);
int /*<<< orphan*/ fwrite(int *const, int const, int, int /*<<< orphan*/);
int *malloc(int const);
int /*<<< orphan*/ printf(char *, int const, int const);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  const intmax_t image_Width_And_Height = (atoi(argv[1]) + 7) / 8 * 8;
  const intmax_t pixel_Groups_Per_Line = image_Width_And_Height / 8;
  uint8_t *const pixels =
      malloc(image_Width_And_Height * image_Width_And_Height / 8);
  double initial_r[image_Width_And_Height], initial_i[image_Width_And_Height];
  const double two_Over_Image_Width_And_Height = 2.0 / image_Width_And_Height;
#pragma omp parallel for
  for (intmax_t xy = 0; xy < image_Width_And_Height; xy++) {
    initial_r[xy] = xy * two_Over_Image_Width_And_Height - 1.5;
    initial_i[xy] = xy * two_Over_Image_Width_And_Height - 1.0;
  }
#pragma omp parallel for schedule(guided)
  for (intmax_t y = 0; y < image_Width_And_Height; y++) {
    const double prefetched_Initial_i = initial_i[y];
    uint8_t *const line_Pixel_Groups = &pixels[y * pixel_Groups_Per_Line];
    for (intmax_t x_Major = 0; x_Major < image_Width_And_Height; x_Major += 8) {
      double pixel_Group_r[8], pixel_Group_i[8];
      const double *const current_Pixel_Group_Initial_r = &initial_r[x_Major];
      for (intmax_t x_Minor = 0; x_Minor < 8; ++x_Minor) {
        pixel_Group_r[x_Minor] = current_Pixel_Group_Initial_r[x_Minor];
        pixel_Group_i[x_Minor] = prefetched_Initial_i;
      }
      static uint8_t any_Pixels_Escape = 1;
      uint8_t eight_Pixels;
      if (any_Pixels_Escape) {
        eight_Pixels = 0xff;
        intmax_t iteration = 50;
        do {
          uint8_t current_Pixel_Bitmask = 0x80;
          for (intmax_t x_Minor = 0; x_Minor < 8; x_Minor++) {
            if (eight_Pixels & current_Pixel_Bitmask) {
              const double r = pixel_Group_r[x_Minor];
              const double i = pixel_Group_i[x_Minor];
              pixel_Group_i[x_Minor] = 2.0 * r * i + prefetched_Initial_i;
              pixel_Group_r[x_Minor] =
                  r * r - i * i + current_Pixel_Group_Initial_r[x_Minor];
              if (r * r + i * i > 4.0)
                eight_Pixels ^= current_Pixel_Bitmask;
            }
            current_Pixel_Bitmask >>= 1;
          }
        } while (eight_Pixels && --iteration);
      } else {
        for (intmax_t iteration = 0; iteration < 50 - 1; iteration++) {
          for (intmax_t x_Minor = 0; x_Minor < 8; x_Minor++) {
            const double r = pixel_Group_r[x_Minor];
            const double i = pixel_Group_i[x_Minor];
            pixel_Group_i[x_Minor] = 2.0 * i * r + prefetched_Initial_i;
            pixel_Group_r[x_Minor] =
                r * r - i * i + current_Pixel_Group_Initial_r[x_Minor];
          }
        }
        eight_Pixels = 0x00;
        uint8_t current_Pixel_Bitmask = 0x80;
        for (intmax_t x_Minor = 0; x_Minor < 8; x_Minor++) {
          const double r = pixel_Group_r[x_Minor];
          const double i = pixel_Group_i[x_Minor];
          if (r * r + i * i <= 4.0)
            eight_Pixels |= current_Pixel_Bitmask;
          current_Pixel_Bitmask >>= 1;
        }
      }
      line_Pixel_Groups[x_Major >> 3] = eight_Pixels;
      any_Pixels_Escape = eight_Pixels != 0xff;
    }
  }
  printf("P4\n%ju %ju\n", image_Width_And_Height, image_Width_And_Height);
  fwrite(pixels, image_Width_And_Height * image_Width_And_Height / 8, 1,
         stdout);
  free(pixels);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,%ecx
mov    %ecx,%eax
add    $0x7,%eax
add    $0xe,%ecx
test   %eax,%eax
cmovs  %ecx,%eax
and    $0xfffffff8,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x7,%ecx
test   %eax,%eax
cmovs  %ecx,%eax
sar    $0x3,%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
imul   %edi,%edi
mov    %edi,%eax
add    $0x7,%eax
test   %edi,%edi
cmovs  %eax,%edi
sar    $0x3,%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x150(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x148(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xdec(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1292 <main+0x142>
mov    -0x148(%rbp),%rax
mov    -0x150(%rbp),%rcx
cvtsi2sdl -0x44(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdc4(%rip),%xmm1
addsd  %xmm1,%xmm0
movslq -0x44(%rbp),%rdx
movsd  %xmm0,(%rcx,%rdx,8)
cvtsi2sdl -0x44(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd99(%rip),%xmm1
addsd  %xmm1,%xmm0
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1224 <main+0xd4>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    177c <main+0x62c>
mov    -0x148(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%ecx
imul   -0x18(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1769 <main+0x619>
mov    -0x150(%rbp),%rax
movslq -0x5c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xe8(%rbp)
movl   $0x0,-0xec(%rbp)
cmpl   $0x8,-0xec(%rbp)
jge    1362 <main+0x212>
mov    -0xe8(%rbp),%rax
movslq -0xec(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0xec(%rbp),%rax
movsd  %xmm0,-0xa0(%rbp,%rax,8)
ff ff
movsd  -0x50(%rbp),%xmm0
movslq -0xec(%rbp),%rax
movsd  %xmm0,-0xe0(%rbp,%rax,8)
ff ff
mov    -0xec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xec(%rbp)
jmp    1309 <main+0x1b9>
cmpl   $0x0,0x2cdf(%rip)
je     153c <main+0x3ec>
movl   $0xff,-0xf0(%rbp)
movl   $0x32,-0xf4(%rbp)
movl   $0x80,-0xf8(%rbp)
movl   $0x0,-0xfc(%rbp)
cmpl   $0x8,-0xfc(%rbp)
jge    14f4 <main+0x3a4>
mov    -0xf0(%rbp),%eax
and    -0xf8(%rbp),%eax
cmp    $0x0,%eax
je     14d1 <main+0x381>
movslq -0xfc(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x108(%rbp)
ff
movslq -0xfc(%rbp),%rax
movsd  -0xe0(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0xc0f(%rip),%xmm0
mulsd  -0x108(%rbp),%xmm0
ff
movsd  -0x110(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0xfc(%rbp),%rax
movsd  %xmm0,-0xe0(%rbp,%rax,8)
ff ff
movsd  -0x108(%rbp),%xmm0
ff
movsd  -0x108(%rbp),%xmm2
ff
movsd  -0x110(%rbp),%xmm1
ff
mulsd  -0x110(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0xe8(%rbp),%rax
movslq -0xfc(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movslq -0xfc(%rbp),%rax
movsd  %xmm0,-0xa0(%rbp,%rax,8)
ff ff
movsd  -0x108(%rbp),%xmm0
ff
movsd  -0x108(%rbp),%xmm2
ff
movsd  -0x110(%rbp),%xmm1
ff
mulsd  -0x110(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb58(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14cc <main+0x37c>
mov    -0xf8(%rbp),%eax
xor    -0xf0(%rbp),%eax
mov    %eax,-0xf0(%rbp)
jmp    14d1 <main+0x381>
mov    -0xf8(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0xf8(%rbp)
mov    -0xfc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xfc(%rbp)
jmp    1397 <main+0x247>
jmp    14f9 <main+0x3a9>
xor    %eax,%eax
cmpl   $0x0,-0xf0(%rbp)
mov    %al,-0x151(%rbp)
je     1529 <main+0x3d9>
mov    -0xf4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xf4(%rbp)
cmp    $0x0,%eax
setne  %al
mov    %al,-0x151(%rbp)
mov    -0x151(%rbp),%al
test   $0x1,%al
jne    1383 <main+0x233>
jmp    172d <main+0x5dd>
movl   $0x0,-0x114(%rbp)
cmpl   $0x31,-0x114(%rbp)
jge    165e <main+0x50e>
movl   $0x0,-0x118(%rbp)
cmpl   $0x8,-0x118(%rbp)
jge    1645 <main+0x4f5>
movslq -0x118(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x120(%rbp)
ff
movslq -0x118(%rbp),%rax
movsd  -0xe0(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x128(%rbp)
ff
movsd  0xa5e(%rip),%xmm0
mulsd  -0x128(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm2
ff
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x118(%rbp),%rax
movsd  %xmm0,-0xe0(%rbp,%rax,8)
ff ff
movsd  -0x120(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm2
ff
movsd  -0x128(%rbp),%xmm1
ff
mulsd  -0x128(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0xe8(%rbp),%rax
movslq -0x118(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movslq -0x118(%rbp),%rax
movsd  %xmm0,-0xa0(%rbp,%rax,8)
ff ff
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    155d <main+0x40d>
jmp    164a <main+0x4fa>
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    1546 <main+0x3f6>
movl   $0x0,-0xf0(%rbp)
movl   $0x80,-0x12c(%rbp)
movl   $0x0,-0x130(%rbp)
cmpl   $0x8,-0x130(%rbp)
jge    1728 <main+0x5d8>
movslq -0x130(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x138(%rbp)
ff
movslq -0x130(%rbp),%rax
movsd  -0xe0(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x138(%rbp),%xmm1
ff
movsd  -0x138(%rbp),%xmm2
ff
movsd  -0x140(%rbp),%xmm0
ff
mulsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x91f(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     1705 <main+0x5b5>
mov    -0x12c(%rbp),%eax
or     -0xf0(%rbp),%eax
mov    %eax,-0xf0(%rbp)
mov    -0x12c(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x12c(%rbp)
mov    -0x130(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x130(%rbp)
jmp    167c <main+0x52c>
jmp    172d <main+0x5dd>
mov    -0xf0(%rbp),%edx
mov    -0x58(%rbp),%rax
mov    -0x5c(%rbp),%ecx
sar    $0x3,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
cmpl   $0xff,-0xf0(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,0x28ed(%rip)
mov    -0x5c(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x5c(%rbp)
jmp    12da <main+0x18a>
jmp    176e <main+0x61e>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1299 <main+0x149>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0x897(%rip),%rdi
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    0x2836(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
call   1070 <fwrite@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    0x8(%rsi),%rdi
call   1060 <atoi@plt>
mov    %eax,%r13d
lea    0x7(%r13),%eax
lea    0xe(%r13),%r15d
test   %eax,%eax
cmovns %eax,%r15d
mov    %r15d,%ebx
and    $0xfffffff8,%ebx
mov    %ebx,%r14d
imul   %ebx,%r14d
shr    $0x3,%r14d
mov    %r14d,%edi
call   1050 <malloc@plt>
mov    %rbx,%rsi
mov    %rax,-0x38(%rbp)
lea    0x0(,%rbx,8),%rax
mov    %rsp,%r12
sub    %rax,%r12
mov    %r12,%rsp
mov    %rsp,%r10
sub    %rax,%r10
mov    %r10,%rsp
test   %r13d,%r13d
jle    16db <main+0x58b>
cvtsi2sd %esi,%xmm1
movsd  0xe32(%rip),%xmm10
divsd  %xmm1,%xmm10
cmp    $0x2,%esi
mov    $0x1,%eax
cmovge %esi,%eax
cmp    $0x4,%eax
jae    11ea <main+0x9a>
xor    %ecx,%ecx
jmp    128e <main+0x13e>
mov    %eax,%ecx
and    $0x7ffffff8,%ecx
movapd %xmm10,%xmm1
unpcklpd %xmm10,%xmm1
movdqa 0xe1c(%rip),%xmm2
xor    %edx,%edx
movdqa 0xe21(%rip),%xmm8
movapd 0xe29(%rip),%xmm4
movapd 0xe31(%rip),%xmm5
movdqa 0xe38(%rip),%xmm9
nopl   0x0(%rax,%rax,1)
movdqa %xmm2,%xmm7
cvtdq2pd %xmm2,%xmm3
paddd  %xmm8,%xmm7
cvtdq2pd %xmm7,%xmm7
mulpd  %xmm1,%xmm3
movapd %xmm3,%xmm6
addpd  %xmm4,%xmm6
mulpd  %xmm1,%xmm7
movapd %xmm7,%xmm0
addpd  %xmm4,%xmm0
movapd %xmm6,(%r12,%rdx,8)
movapd %xmm0,0x10(%r12,%rdx,8)
addpd  %xmm5,%xmm3
addpd  %xmm5,%xmm7
movapd %xmm3,(%r10,%rdx,8)
movapd %xmm7,0x10(%r10,%rdx,8)
add    $0x4,%rdx
paddd  %xmm9,%xmm2
cmp    %rdx,%rcx
jne    1230 <main+0xe0>
cmp    %rax,%rcx
je     12cd <main+0x17d>
movsd  0xd72(%rip),%xmm1
movsd  0xd72(%rip),%xmm2
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
mulsd  %xmm10,%xmm0
movapd %xmm0,%xmm3
addsd  %xmm1,%xmm3
movsd  %xmm3,(%r12,%rcx,8)
addsd  %xmm2,%xmm0
movsd  %xmm0,(%r10,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    12a0 <main+0x150>
test   %r13d,%r13d
jle    16db <main+0x58b>
mov    %r14d,-0x2c(%rbp)
sar    $0x3,%r15d
mov    0x2d63(%rip),%r14d
cmp    $0x9,%esi
mov    $0x8,%r13d
cmovge %esi,%r13d
add    $0xffffffff,%r13d
shr    $0x3,%r13d
add    $0x1,%r13d
movslq %r15d,%rax
mov    %rax,-0x50(%rbp)
cmp    $0x2,%esi
mov    $0x1,%eax
mov    %rsi,-0x40(%rbp)
cmovge %esi,%eax
mov    %rax,-0x48(%rbp)
xor    %r11d,%r11d
movsd  0xcf4(%rip),%xmm11
jmp    133e <main+0x1ee>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r11
cmp    -0x48(%rbp),%r11
je     16cc <main+0x57c>
movsd  (%r10,%r11,8),%xmm3
mov    %r11,%rax
imul   -0x50(%rbp),%rax
mov    -0x38(%rbp),%rcx
lea    (%rcx,%rax,4),%r15
movapd %xmm3,%xmm12
unpcklpd %xmm3,%xmm12
mov    %r12,%rax
xor    %r9d,%r9d
xor    %r8d,%r8d
jmp    1398 <main+0x248>
nopl   0x0(%rax)
mov    %r9,%rcx
shr    %rcx
mov    %edx,(%r15,%rcx,1)
xor    %r14d,%r14d
cmp    $0xff,%edx
setne  %r14b
add    $0x8,%r9
add    $0x1,%r8
add    $0x40,%rax
cmp    %r13,%r8
je     1330 <main+0x1e0>
mov    %r8,%rdx
shl    $0x6,%rdx
movapd (%r12,%rdx,1),%xmm0
movapd 0x10(%r12,%rdx,1),%xmm1
movapd 0x20(%r12,%rdx,1),%xmm2
movapd 0x30(%r12,%rdx,1),%xmm4
movapd %xmm0,-0x90(%rbp)
ff
movapd %xmm1,-0x80(%rbp)
movapd %xmm2,-0x70(%rbp)
movapd %xmm4,-0x60(%rbp)
movsd  %xmm3,-0xd0(%rbp)
ff
movsd  %xmm3,-0xc8(%rbp)
ff
movsd  %xmm3,-0xc0(%rbp)
ff
movsd  %xmm3,-0xb8(%rbp)
ff
movsd  %xmm3,-0xb0(%rbp)
ff
movsd  %xmm3,-0xa8(%rbp)
movsd  %xmm3,-0xa0(%rbp)
ff
movsd  %xmm3,-0x98(%rbp)
ff
test   %r14d,%r14d
je     14d0 <main+0x380>
mov    $0x32,%esi
mov    $0xff,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x80,%edi
xor    %ebx,%ebx
jmp    144c <main+0x2fc>
nopl   0x0(%rax)
shr    %edi
add    $0x1,%rbx
cmp    $0x8,%rbx
je     14b0 <main+0x360>
test   %edx,%edi
je     1440 <main+0x2f0>
movsd  -0x90(%rbp,%rbx,8),%xmm0
ff ff
movsd  -0xd0(%rbp,%rbx,8),%xmm1
ff ff
movapd %xmm0,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,-0xd0(%rbp,%rbx,8)
ff ff
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
addsd  (%rax,%rbx,8),%xmm2
movsd  %xmm2,-0x90(%rbp,%rbx,8)
ff ff
addsd  %xmm1,%xmm0
ucomisd %xmm11,%xmm0
mov    $0x0,%ecx
cmova  %edi,%ecx
xor    %ecx,%edx
jmp    1440 <main+0x2f0>
xchg   %ax,%ax
test   %edx,%edx
je     1370 <main+0x220>
add    $0xffffffff,%esi
jne    1430 <main+0x2e0>
jmp    1370 <main+0x220>
cs nopw 0x0(%rax,%rax,1)
movupd -0x68(%rbp),%xmm7
movupd -0x78(%rbp),%xmm5
movups 0x28(%r12,%r9,8),%xmm0
movaps %xmm0,-0xe0(%rbp)
movupd 0x18(%r12,%r9,8),%xmm13
movapd -0x90(%rbp),%xmm0
ff
movapd (%r12,%r9,8),%xmm14
movsd  -0x58(%rbp),%xmm6
movhpd -0x80(%rbp),%xmm6
movsd  0x38(%r12,%r9,8),%xmm15
movhpd 0x10(%r12,%r9,8),%xmm15
mov    $0x31,%edx
movapd %xmm12,%xmm10
movapd %xmm12,%xmm1
movapd %xmm12,%xmm8
movapd %xmm12,%xmm4
nopl   (%rax)
movapd %xmm8,%xmm9
addpd  %xmm8,%xmm9
mulpd  %xmm0,%xmm9
mulpd  %xmm8,%xmm8
mulpd  %xmm0,%xmm0
subpd  %xmm8,%xmm0
movapd %xmm1,%xmm8
addpd  %xmm1,%xmm1
mulpd  %xmm7,%xmm1
mulpd  %xmm8,%xmm8
mulpd  %xmm7,%xmm7
subpd  %xmm8,%xmm7
movapd %xmm10,%xmm2
addpd  %xmm10,%xmm10
mulpd  %xmm5,%xmm10
mulpd  %xmm2,%xmm2
mulpd  %xmm5,%xmm5
subpd  %xmm2,%xmm5
movapd %xmm4,%xmm2
addpd  %xmm4,%xmm4
mulpd  %xmm6,%xmm4
mulpd  %xmm2,%xmm2
mulpd  %xmm6,%xmm6
subpd  %xmm2,%xmm6
movapd %xmm9,%xmm8
addpd  %xmm12,%xmm8
addpd  %xmm14,%xmm0
addpd  %xmm12,%xmm10
addpd  %xmm12,%xmm1
addpd  -0xe0(%rbp),%xmm7
ff
addpd  %xmm13,%xmm5
addpd  %xmm12,%xmm4
addpd  %xmm15,%xmm6
add    $0xffffffff,%edx
jne    1530 <main+0x3e0>
addpd  %xmm12,%xmm9
movapd %xmm9,-0xd0(%rbp)
ff ff
movapd %xmm0,-0x90(%rbp)
ff
movhpd %xmm4,-0xc0(%rbp)
ff
movapd %xmm6,%xmm2
shufpd $0x1,%xmm5,%xmm2
movapd %xmm2,-0x80(%rbp)
movapd %xmm4,%xmm8
unpckhpd %xmm9,%xmm8
mulsd  %xmm9,%xmm9
movapd %xmm6,%xmm2
unpckhpd %xmm0,%xmm2
mulsd  %xmm0,%xmm0
addsd  %xmm9,%xmm0
xor    %esi,%esi
ucomisd %xmm0,%xmm11
setae  %sil
shl    $0x7,%esi
mulpd  %xmm8,%xmm8
mulpd  %xmm2,%xmm2
addpd  %xmm8,%xmm2
movapd 0xa2c(%rip),%xmm0
cmpnlepd %xmm0,%xmm2
movmskpd %xmm2,%ecx
xor    %edi,%edi
test   $0x2,%cl
not    %cl
sete   %dil
shl    $0x6,%edi
movzbl %cl,%edx
and    $0x1,%edx
shl    $0x5,%edx
mulpd  %xmm10,%xmm10
mulpd  %xmm1,%xmm1
mulpd  %xmm7,%xmm7
addpd  %xmm1,%xmm7
mulpd  %xmm5,%xmm5
addpd  %xmm10,%xmm5
cmpnlepd %xmm0,%xmm5
cmpnlepd %xmm0,%xmm7
shufps $0x88,%xmm7,%xmm5
andnps 0x9ed(%rip),%xmm5
mulsd  %xmm4,%xmm4
mulsd  %xmm6,%xmm6
addsd  %xmm4,%xmm6
xor    %ecx,%ecx
ucomisd %xmm6,%xmm11
setae  %cl
pshufd $0xee,%xmm5,%xmm0
por    %xmm5,%xmm0
pshufd $0x55,%xmm0,%xmm1
por    %xmm0,%xmm1
movd   %xmm1,%ebx
or     %edi,%edx
or     %esi,%edx
or     %ecx,%edx
or     %ebx,%edx
jmp    1370 <main+0x220>
mov    %r14d,0x2975(%rip)
mov    -0x2c(%rbp),%r14d
mov    -0x40(%rbp),%rsi
lea    0x9ae(%rip),%rdi
mov    %esi,%edx
call   1040 <printf@plt>
mov    0x28f0(%rip),%rax
mov    (%rax),%ecx
mov    -0x38(%rbp),%rbx
mov    %rbx,%rdi
mov    %r14d,%esi
mov    $0x1,%edx
call   1070 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@main.any_Pixels_Escape = internal global i32 1
@.str = [12 x i8] c"P4\0A%ju %ju\0A\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i64
%12 = alloca double
%13 = alloca i32
%14 = alloca i32
%15 = alloca double
%16 = alloca i32*
%17 = alloca i32
%18 = alloca [8 x double]
%19 = alloca [8 x double]
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca double
%27 = alloca double
%28 = alloca i32
%29 = alloca i32
%30 = alloca double
%31 = alloca double
%32 = alloca i32
%33 = alloca i32
%34 = alloca double
%35 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @atoi(i8* %38)
%40 = add nsw i32 %39, 7
%41 = sdiv i32 %40, 8
%42 = mul nsw i32 %41, 8
store i32 %42, i32* %6
%43 = load i32, i32* %6
%44 = sdiv i32 %43, 8
store i32 %44, i32* %7
%45 = load i32, i32* %6
%46 = load i32, i32* %6
%47 = mul nsw i32 %45, %46
%48 = sdiv i32 %47, 8
%49 = call i32* @malloc(i32 %48)
store i32* %49, i32** %8
%50 = load i32, i32* %6
%51 = zext i32 %50 to i64
%52 = call i8* @llvm.stacksave()
store i8* %52, i8** %9
%53 = alloca double, i64 %51
store i64 %51, i64* %10
%54 = load i32, i32* %6
%55 = zext i32 %54 to i64
%56 = alloca double, i64 %55
store i64 %55, i64* %11
%57 = load i32, i32* %6
%58 = sitofp i32 %57 to double
%59 = fdiv double 2.000000e+00, %58
store double %59, double* %12
store i32 0, i32* %13
br label %60
60: ; preds = %79, %2
%61 = load i32, i32* %13
%62 = load i32, i32* %6
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %82
64: ; preds = %60
%65 = load i32, i32* %13
%66 = sitofp i32 %65 to double
%67 = load double, double* %12
%68 = call double @llvm.fmuladd.f64(double %66, double %67, double -1.500000e+00)
%69 = load i32, i32* %13
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %53, i64 %70
store double %68, double* %71
%72 = load i32, i32* %13
%73 = sitofp i32 %72 to double
%74 = load double, double* %12
%75 = call double @llvm.fmuladd.f64(double %73, double %74, double -1.000000e+00)
%76 = load i32, i32* %13
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %56, i64 %77
store double %75, double* %78
br label %79
79: ; preds = %64
%80 = load i32, i32* %13
%81 = add nsw i32 %80, 1
store i32 %81, i32* %13
br label %60
82: ; preds = %60
store i32 0, i32* %14
br label %83
83: ; preds = %293, %82
%84 = load i32, i32* %14
%85 = load i32, i32* %6
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %296
87: ; preds = %83
%88 = load i32, i32* %14
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %56, i64 %89
%91 = load double, double* %90
store double %91, double* %15
%92 = load i32*, i32** %8
%93 = load i32, i32* %14
%94 = load i32, i32* %7
%95 = mul nsw i32 %93, %94
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, i32* %92, i64 %96
store i32* %97, i32** %16
store i32 0, i32* %17
br label %98
98: ; preds = %289, %87
%99 = load i32, i32* %17
%100 = load i32, i32* %6
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %292
102: ; preds = %98
%103 = load i32, i32* %17
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, double* %53, i64 %104
store double* %105, double** %20
store i32 0, i32* %21
br label %106
106: ; preds = %122, %102
%107 = load i32, i32* %21
%108 = icmp slt i32 %107, 8
br i1 %108, label %109, label %125
109: ; preds = %106
%110 = load double*, double** %20
%111 = load i32, i32* %21
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %110, i64 %112
%114 = load double, double* %113
%115 = load i32, i32* %21
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [8 x double], [8 x double]* %18, i64 0, i64 %116
store double %114, double* %117
%118 = load double, double* %15
%119 = load i32, i32* %21
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [8 x double], [8 x double]* %19, i64 0, i64 %120
store double %118, double* %121
br label %122
122: ; preds = %109
%123 = load i32, i32* %21
%124 = add nsw i32 %123, 1
store i32 %124, i32* %21
br label %106
125: ; preds = %106
%126 = load i32, i32* @main.any_Pixels_Escape
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %200
128: ; preds = %125
store i32 255, i32* %22
store i32 50, i32* %23
br label %129
129: ; preds = %197, %128
store i32 128, i32* %24
store i32 0, i32* %25
br label %130
130: ; preds = %186, %129
%131 = load i32, i32* %25
%132 = icmp slt i32 %131, 8
br i1 %132, label %133, label %189
133: ; preds = %130
%134 = load i32, i32* %22
%135 = load i32, i32* %24
%136 = and i32 %134, %135
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %183
138: ; preds = %133
%139 = load i32, i32* %25
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [8 x double], [8 x double]* %18, i64 0, i64 %140
%142 = load double, double* %141
store double %142, double* %26
%143 = load i32, i32* %25
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [8 x double], [8 x double]* %19, i64 0, i64 %144
%146 = load double, double* %145
store double %146, double* %27
%147 = load double, double* %26
%148 = fmul double 2.000000e+00, %147
%149 = load double, double* %27
%150 = load double, double* %15
%151 = call double @llvm.fmuladd.f64(double %148, double %149, double %150)
%152 = load i32, i32* %25
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [8 x double], [8 x double]* %19, i64 0, i64 %153
store double %151, double* %154
%155 = load double, double* %26
%156 = load double, double* %26
%157 = load double, double* %27
%158 = load double, double* %27
%159 = fmul double %157, %158
%160 = fneg double %159
%161 = call double @llvm.fmuladd.f64(double %155, double %156, double %160)
%162 = load double*, double** %20
%163 = load i32, i32* %25
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %162, i64 %164
%166 = load double, double* %165
%167 = fadd double %161, %166
%168 = load i32, i32* %25
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [8 x double], [8 x double]* %18, i64 0, i64 %169
store double %167, double* %170
%171 = load double, double* %26
%172 = load double, double* %26
%173 = load double, double* %27
%174 = load double, double* %27
%175 = fmul double %173, %174
%176 = call double @llvm.fmuladd.f64(double %171, double %172, double %175)
%177 = fcmp ogt double %176, 4.000000e+00
br i1 %177, label %178, label %182
178: ; preds = %138
%179 = load i32, i32* %24
%180 = load i32, i32* %22
%181 = xor i32 %180, %179
store i32 %181, i32* %22
br label %182
182: ; preds = %178, %138
br label %183
183: ; preds = %182, %133
%184 = load i32, i32* %24
%185 = ashr i32 %184, 1
store i32 %185, i32* %24
br label %186
186: ; preds = %183
%187 = load i32, i32* %25
%188 = add nsw i32 %187, 1
store i32 %188, i32* %25
br label %130
189: ; preds = %130
br label %190
190: ; preds = %189
%191 = load i32, i32* %22
%192 = icmp ne i32 %191, 0
br i1 %192, label %193, label %197
193: ; preds = %190
%194 = load i32, i32* %23
%195 = add nsw i32 %194, -1
store i32 %195, i32* %23
%196 = icmp ne i32 %195, 0
br label %197
197: ; preds = %193, %190
%198 = phi i1 [ false, %190 ], [ %196, %193 ]
br i1 %198, label %129, label %199
199: ; preds = %197
br label %279
200: ; preds = %125
store i32 0, i32* %28
br label %201
201: ; preds = %245, %200
%202 = load i32, i32* %28
%203 = icmp slt i32 %202, 49
br i1 %203, label %204, label %248
204: ; preds = %201
store i32 0, i32* %29
br label %205
205: ; preds = %241, %204
%206 = load i32, i32* %29
%207 = icmp slt i32 %206, 8
br i1 %207, label %208, label %244
208: ; preds = %205
%209 = load i32, i32* %29
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [8 x double], [8 x double]* %18, i64 0, i64 %210
%212 = load double, double* %211
store double %212, double* %30
%213 = load i32, i32* %29
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [8 x double], [8 x double]* %19, i64 0, i64 %214
%216 = load double, double* %215
store double %216, double* %31
%217 = load double, double* %31
%218 = fmul double 2.000000e+00, %217
%219 = load double, double* %30
%220 = load double, double* %15
%221 = call double @llvm.fmuladd.f64(double %218, double %219, double %220)
%222 = load i32, i32* %29
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [8 x double], [8 x double]* %19, i64 0, i64 %223
store double %221, double* %224
%225 = load double, double* %30
%226 = load double, double* %30
%227 = load double, double* %31
%228 = load double, double* %31
%229 = fmul double %227, %228
%230 = fneg double %229
%231 = call double @llvm.fmuladd.f64(double %225, double %226, double %230)
%232 = load double*, double** %20
%233 = load i32, i32* %29
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double, double* %232, i64 %234
%236 = load double, double* %235
%237 = fadd double %231, %236
%238 = load i32, i32* %29
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds [8 x double], [8 x double]* %18, i64 0, i64 %239
store double %237, double* %240
br label %241
241: ; preds = %208
%242 = load i32, i32* %29
%243 = add nsw i32 %242, 1
store i32 %243, i32* %29
br label %205
244: ; preds = %205
br label %245
245: ; preds = %244
%246 = load i32, i32* %28
%247 = add nsw i32 %246, 1
store i32 %247, i32* %28
br label %201
248: ; preds = %201
store i32 0, i32* %22
store i32 128, i32* %32
store i32 0, i32* %33
br label %249
249: ; preds = %275, %248
%250 = load i32, i32* %33
%251 = icmp slt i32 %250, 8
br i1 %251, label %252, label %278
252: ; preds = %249
%253 = load i32, i32* %33
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds [8 x double], [8 x double]* %18, i64 0, i64 %254
%256 = load double, double* %255
store double %256, double* %34
%257 = load i32, i32* %33
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds [8 x double], [8 x double]* %19, i64 0, i64 %258
%260 = load double, double* %259
store double %260, double* %35
%261 = load double, double* %34
%262 = load double, double* %34
%263 = load double, double* %35
%264 = load double, double* %35
%265 = fmul double %263, %264
%266 = call double @llvm.fmuladd.f64(double %261, double %262, double %265)
%267 = fcmp ole double %266, 4.000000e+00
br i1 %267, label %268, label %272
268: ; preds = %252
%269 = load i32, i32* %32
%270 = load i32, i32* %22
%271 = or i32 %270, %269
store i32 %271, i32* %22
br label %272
272: ; preds = %268, %252
%273 = load i32, i32* %32
%274 = ashr i32 %273, 1
store i32 %274, i32* %32
br label %275
275: ; preds = %272
%276 = load i32, i32* %33
%277 = add nsw i32 %276, 1
store i32 %277, i32* %33
br label %249
278: ; preds = %249
br label %279
279: ; preds = %278, %199
%280 = load i32, i32* %22
%281 = load i32*, i32** %16
%282 = load i32, i32* %17
%283 = ashr i32 %282, 3
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds i32, i32* %281, i64 %284
store i32 %280, i32* %285
%286 = load i32, i32* %22
%287 = icmp ne i32 %286, 255
%288 = zext i1 %287 to i32
store i32 %288, i32* @main.any_Pixels_Escape
br label %289
289: ; preds = %279
%290 = load i32, i32* %17
%291 = add nsw i32 %290, 8
store i32 %291, i32* %17
br label %98
292: ; preds = %98
br label %293
293: ; preds = %292
%294 = load i32, i32* %14
%295 = add nsw i32 %294, 1
store i32 %295, i32* %14
br label %83
296: ; preds = %83
%297 = load i32, i32* %6
%298 = load i32, i32* %6
%299 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %297, i32 %298)
%300 = load i32*, i32** %8
%301 = load i32, i32* %6
%302 = load i32, i32* %6
%303 = mul nsw i32 %301, %302
%304 = sdiv i32 %303, 8
%305 = load i32, i32* @stdout
%306 = call i32 @fwrite(i32* %300, i32 %304, i32 1, i32 %305)
%307 = load i32*, i32** %8
%308 = call i32 @free(i32* %307)
store i32 0, i32* %3
%309 = load i8*, i8** %9
%310 = load i32, i32* %3
ret i32 %310
}

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