#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 /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int floor(unsigned long long);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
void histogram_to_ppm(const char *file, unsigned long long histogram[129][65]) {
  FILE *f;
  int i, j, i_k, j_k, v;
  unsigned long long max;
  double w;
  unsigned char r[256], g[256], b[256];
  f = fopen(file, "w");
  if (f == NULL) {
    do {
      fprintf(stderr, "\nWARNING: ");
      fprintf(stderr, "cannot open ppm file %s\n", file);
    } while (0);
    return;
  }
  max = 0;
  for (i = 0; i < 129; ++i)
    for (j = 0; j < 65; ++j) {
      if (histogram[i][j] > max)
        max = histogram[i][j];
    }
  w = 255.0 / max;
  r[0] = g[0] = b[0] = 255;
  for (i = 1; i < 64; i++) {
    r[i + 0] = 255 - i * 4;
    g[i + 0] = 0;
    b[i + 0] = 255;
  }
  for (i = 0; i < 64; i++) {
    r[i + 64] = 0;
    g[i + 64] = i * 4;
    b[i + 64] = 255 - i * 4;
  }
  for (i = 0; i < 64; i++) {
    r[i + 128] = i * 4;
    g[i + 128] = 255;
    b[i + 128] = 0;
  }
  for (i = 0; i < 64; i++) {
    r[i + 192] = 255;
    g[i + 192] = 255 - i * 4;
    b[i + 192] = 0;
  }
  fprintf(f, "P3\n%d %d\n%d\n", 516, 520, 255);
  for (i = 64; i >= 0; --i) {
    for (i_k = 0; i_k < 8; ++i_k) {
      for (j = 0; j < 129; ++j) {
        v = floor(histogram[j][i] * w + 0.5);
        if (v == 0 && histogram[j][i] > 0)
          v = 1;
        for (j_k = 0; j_k < 4; ++j_k)
          fprintf(f, "%d %d %d  ", r[v], g[v], b[v]);
      }
      fputc('\n', f);
    }
  }
  fclose(f);
}


x86 assembly (clang, -O0):
<histogram_to_ppm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed2(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11c0 <histogram_to_ppm+0x70>
jmp    1187 <histogram_to_ppm+0x37>
mov    0x2e52(%rip),%rax
movslq (%rax),%rdi
lea    0xeaa(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e3a(%rip),%rax
movslq (%rax),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe99(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    15d1 <histogram_to_ppm+0x481>
movq   $0x0,-0x38(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x81,-0x1c(%rbp)
jge    1255 <histogram_to_ppm+0x105>
movl   $0x0,-0x20(%rbp)
cmpl   $0x41,-0x20(%rbp)
jge    1242 <histogram_to_ppm+0xf2>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x208,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmp    -0x38(%rbp),%rax
jbe    122f <histogram_to_ppm+0xdf>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x208,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x38(%rbp)
jmp    1234 <histogram_to_ppm+0xe4>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11e3 <histogram_to_ppm+0x93>
jmp    1247 <histogram_to_ppm+0xf7>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11cf <histogram_to_ppm+0x7f>
movaps 0xdc4(%rip),%xmm0
movq   -0x38(%rbp),%xmm1
punpckldq %xmm0,%xmm1
movapd 0xdc3(%rip),%xmm0
subpd  %xmm0,%xmm1
movaps %xmm1,%xmm0
unpckhpd %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0xd7c(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movb   $0xff,-0x340(%rbp)
movb   $0xff,-0x240(%rbp)
movb   $0xff,-0x140(%rbp)
movl   $0x1,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jge    12ff <histogram_to_ppm+0x1af>
mov    -0x1c(%rbp),%ecx
shl    $0x2,%ecx
mov    $0xff,%eax
sub    %ecx,%eax
mov    %al,%cl
mov    -0x1c(%rbp),%eax
add    $0x0,%eax
cltq
mov    %cl,-0x140(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x0,%eax
cltq
movb   $0x0,-0x240(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x0,%eax
cltq
movb   $0xff,-0x340(%rbp,%rax,1)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12a9 <histogram_to_ppm+0x159>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jge    1363 <histogram_to_ppm+0x213>
mov    -0x1c(%rbp),%eax
add    $0x40,%eax
cltq
movb   $0x0,-0x140(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
shl    $0x2,%eax
mov    %al,%cl
mov    -0x1c(%rbp),%eax
add    $0x40,%eax
cltq
mov    %cl,-0x240(%rbp,%rax,1)
mov    -0x1c(%rbp),%ecx
shl    $0x2,%ecx
mov    $0xff,%eax
sub    %ecx,%eax
mov    %al,%cl
mov    -0x1c(%rbp),%eax
add    $0x40,%eax
cltq
mov    %cl,-0x340(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1306 <histogram_to_ppm+0x1b6>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jge    13bf <histogram_to_ppm+0x26f>
mov    -0x1c(%rbp),%eax
shl    $0x2,%eax
mov    %al,%cl
mov    -0x1c(%rbp),%eax
add    $0x80,%eax
cltq
mov    %cl,-0x140(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x80,%eax
cltq
movb   $0xff,-0x240(%rbp,%rax,1)
ff
mov    -0x1c(%rbp),%eax
add    $0x80,%eax
cltq
movb   $0x0,-0x340(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    136a <histogram_to_ppm+0x21a>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jge    1422 <histogram_to_ppm+0x2d2>
mov    -0x1c(%rbp),%eax
add    $0xc0,%eax
cltq
movb   $0xff,-0x140(%rbp,%rax,1)
ff
mov    -0x1c(%rbp),%ecx
shl    $0x2,%ecx
mov    $0xff,%eax
sub    %ecx,%eax
mov    %al,%cl
mov    -0x1c(%rbp),%eax
add    $0xc0,%eax
cltq
mov    %cl,-0x240(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0xc0,%eax
cltq
movb   $0x0,-0x340(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13c6 <histogram_to_ppm+0x276>
mov    -0x18(%rbp),%rdi
lea    0xc39(%rip),%rsi
mov    $0x204,%edx
mov    $0x208,%ecx
mov    $0xff,%r8d
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x40,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jl     15c8 <histogram_to_ppm+0x478>
movl   $0x0,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jge    15b5 <histogram_to_ppm+0x465>
movl   $0x0,-0x20(%rbp)
cmpl   $0x81,-0x20(%rbp)
jge    1599 <histogram_to_ppm+0x449>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rdx
mov    %rdx,%rcx
shl    $0x9,%rcx
lea    (%rcx,%rdx,8),%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movq   (%rax,%rcx,8),%xmm0
movaps 0xb80(%rip),%xmm1
punpckldq %xmm1,%xmm0
movapd 0xb84(%rip),%xmm1
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb3c(%rip),%xmm1
addsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rdi
mov    %rdi,%rcx
sar    $0x3f,%rcx
movsd  0xb29(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
and    %rcx,%rax
or     %rax,%rdi
call   1070 <floor@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    1530 <histogram_to_ppm+0x3e0>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
imul   $0x208,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jbe    1530 <histogram_to_ppm+0x3e0>
movl   $0x1,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x4,-0x28(%rbp)
jge    1586 <histogram_to_ppm+0x436>
mov    -0x18(%rbp),%rdi
movslq -0x2c(%rbp),%rax
movzbl -0x140(%rbp,%rax,1),%edx
ff
movslq -0x2c(%rbp),%rax
movzbl -0x240(%rbp,%rax,1),%ecx
ff
movslq -0x2c(%rbp),%rax
movzbl -0x340(%rbp,%rax,1),%r8d
ff ff
lea    0xb02(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1537 <histogram_to_ppm+0x3e7>
jmp    158b <histogram_to_ppm+0x43b>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    146d <histogram_to_ppm+0x31d>
mov    -0x18(%rbp),%rsi
mov    $0xa,%edi
call   1040 <fputc@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    145c <histogram_to_ppm+0x30c>
jmp    15ba <histogram_to_ppm+0x46a>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    144b <histogram_to_ppm+0x2fb>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<histogram_to_ppm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x338,%rsp
mov    %rsi,%r13
mov    %rdi,%rbx
lea    0xf6a(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     15ff <histogram_to_ppm+0x49f>
xor    %eax,%eax
mov    %r13,%rcx
xor    %ebp,%ebp
jmp    11b3 <histogram_to_ppm+0x53>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rax
add    $0x208,%rcx
cmp    $0x81,%rax
je     120c <histogram_to_ppm+0xac>
mov    $0x4,%edx
jmp    11ca <histogram_to_ppm+0x6a>
nopw   0x0(%rax,%rax,1)
add    $0x5,%rdx
cmp    $0x45,%rdx
je     11a0 <histogram_to_ppm+0x40>
mov    -0x20(%rcx,%rdx,8),%rdi
cmp    %rbp,%rdi
ja     11d7 <histogram_to_ppm+0x77>
mov    %rbp,%rdi
mov    -0x18(%rcx,%rdx,8),%rsi
cmp    %rdi,%rsi
ja     11e4 <histogram_to_ppm+0x84>
mov    %rdi,%rsi
mov    -0x10(%rcx,%rdx,8),%rdi
cmp    %rsi,%rdi
ja     11f1 <histogram_to_ppm+0x91>
mov    %rsi,%rdi
mov    -0x8(%rcx,%rdx,8),%rsi
cmp    %rdi,%rsi
ja     11fe <histogram_to_ppm+0x9e>
mov    %rdi,%rsi
mov    (%rcx,%rdx,8),%rbp
cmp    %rsi,%rbp
ja     11c0 <histogram_to_ppm+0x60>
mov    %rsi,%rbp
jmp    11c0 <histogram_to_ppm+0x60>
movq   %rbp,%xmm1
punpckldq 0xde7(%rip),%xmm1
subpd  0xdef(%rip),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movb   $0xff,0x130(%rsp)
ff
movb   $0xff,0x230(%rsp)
ff
movb   $0xff,0x30(%rsp)
xorpd  %xmm1,%xmm1
movupd %xmm1,0x231(%rsp)
movupd %xmm1,0x241(%rsp)
movupd %xmm1,0x251(%rsp)
movupd %xmm1,0x260(%rsp)
pcmpeqd %xmm2,%xmm2
movdqu %xmm2,0x131(%rsp)
movdqu %xmm2,0x141(%rsp)
movdqu %xmm2,0x151(%rsp)
movdqu %xmm2,0x160(%rsp)
movaps 0xd87(%rip),%xmm3
movups %xmm3,0x31(%rsp)
movaps 0xd8b(%rip),%xmm3
movups %xmm3,0x41(%rsp)
movaps 0xd8f(%rip),%xmm3
movups %xmm3,0x51(%rsp)
movabs $0x1f23272b2f33373b,%rax
27 23 1f
mov    %rax,0x61(%rsp)
movl   $0xf13171b,0x69(%rsp)
0f
movw   $0x70b,0x6d(%rsp)
movb   $0x3,0x6f(%rsp)
movapd %xmm1,0xa0(%rsp)
movapd %xmm1,0x90(%rsp)
movapd %xmm1,0x80(%rsp)
movapd %xmm1,0x70(%rsp)
movaps 0xd4f(%rip),%xmm4
movaps %xmm4,0x270(%rsp)
movaps 0xd4f(%rip),%xmm8
movaps %xmm8,0x170(%rsp)
movaps 0xd4f(%rip),%xmm5
movaps %xmm5,0x280(%rsp)
movaps 0xd4f(%rip),%xmm9
movaps %xmm9,0x180(%rsp)
movaps 0xd4f(%rip),%xmm7
movaps %xmm7,0x290(%rsp)
movaps 0xd4f(%rip),%xmm10
movaps %xmm10,0x190(%rsp)
movaps 0xd4f(%rip),%xmm6
movaps %xmm6,0x2a0(%rsp)
movaps 0xd50(%rip),%xmm3
movaps %xmm3,0x1a0(%rsp)
movdqa %xmm2,0x2e0(%rsp)
movdqa %xmm2,0x2d0(%rsp)
movdqa %xmm2,0x2c0(%rsp)
movdqa %xmm2,0x2b0(%rsp)
movapd %xmm1,0x1e0(%rsp)
movapd %xmm1,0x1d0(%rsp)
movapd %xmm1,0x1c0(%rsp)
movapd %xmm1,0x1b0(%rsp)
movaps %xmm4,0xb0(%rsp)
movaps %xmm5,0xc0(%rsp)
movaps %xmm7,0xd0(%rsp)
movaps %xmm6,0xe0(%rsp)
movdqa %xmm2,0x120(%rsp)
movdqa %xmm2,0x110(%rsp)
movdqa %xmm2,0x100(%rsp)
movdqa %xmm2,0xf0(%rsp)
movapd %xmm1,0x220(%rsp)
movapd %xmm1,0x210(%rsp)
movapd %xmm1,0x200(%rsp)
movapd %xmm1,0x1f0(%rsp)
movaps %xmm8,0x2f0(%rsp)
movaps %xmm9,0x300(%rsp)
movaps %xmm10,0x310(%rsp)
movaps %xmm3,0x320(%rsp)
movsd  0xc7d(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x20(%rsp)
lea    0xcaa(%rip),%rsi
mov    0x8(%rsp),%rdi
mov    $0x204,%edx
mov    $0x208,%ecx
mov    $0xff,%r8d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x40,%eax
mov    0x8(%rsp),%r12
jmp    14a3 <histogram_to_ppm+0x343>
nopl   0x0(%rax)
add    $0xfffffffffffffff8,%r13
mov    0x18(%rsp),%rax
sub    $0x1,%rax
jb     15e4 <histogram_to_ppm+0x484>
mov    %rax,0x18(%rsp)
xor    %eax,%eax
mov    %r13,0x28(%rsp)
jmp    14db <histogram_to_ppm+0x37b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
mov    0x14(%rsp),%eax
add    $0x1,%eax
cmp    $0x8,%eax
je     1490 <histogram_to_ppm+0x330>
mov    %eax,0x14(%rsp)
mov    $0x200,%r14d
jmp    1578 <histogram_to_ppm+0x418>
nopw   0x0(%rax,%rax,1)
cltq
movzbl 0x30(%rsp,%rax,1),%ebp
movzbl 0x230(%rsp,%rax,1),%ebx
movzbl 0x130(%rsp,%rax,1),%r13d
mov    %r12,%rdi
lea    0xc09(%rip),%r15
mov    %r15,%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %r13d,%r8d
mov    0x28(%rsp),%r13
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x208,%r14
cmp    $0x10808,%r14
je     14c0 <histogram_to_ppm+0x360>
movsd  0x0(%r13,%r14,1),%xmm0
unpcklps 0xa7a(%rip),%xmm0
subpd  0xa82(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
mulsd  0x20(%rsp),%xmm1
addsd  0xb30(%rip),%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xb24(%rip),%xmm1
cvttsd2si %xmm1,%rdi
and    %rcx,%rdi
or     %rax,%rdi
call   1080 <floor@plt>
test   %eax,%eax
jne    14f0 <histogram_to_ppm+0x390>
xor    %eax,%eax
cmpq   $0x0,0x0(%r13,%r14,1)
setne  %al
jmp    14f0 <histogram_to_ppm+0x390>
mov    0x8(%rsp),%rdi
add    $0x338,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fclose@plt>
mov    0x29da(%rip),%rbp
movslq 0x0(%rbp),%rcx
lea    0xad9(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
call   1070 <fwrite@plt>
movslq 0x0(%rbp),%rdi
lea    0xaca(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
add    $0x338,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fprintf@plt>

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

LLVM IR (-O2):
@.str = [2 x i8] c"w\00"
@stderr = global i32 0
@.str.1 = [11 x i8] c"\0AWARNING: \00"
@.str.2 = [25 x i8] c"cannot open ppm file %s\0A\00"
@.str.3 = [13 x i8] c"P3\0A%d %d\0A%d\0A\00"
@.str.4 = [11 x i8] c"%d %d %d \00"
define void @histogram_to_ppm(i8* %0, [65 x i64]* nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = alloca [256 x i8]
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%9 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %20
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i32*
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i64 10, i64 1, i32* %14)
%16 = load i32, i32* @stderr
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i32*
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %163
20: ; preds = %2, %52
%21 = phi i64 [ %53, %52 ], [ 0, %2 ]
%22 = phi i64 [ %49, %52 ], [ 0, %2 ]
br label %23
23: ; preds = %23, %20
%24 = phi i64 [ 0, %20 ], [ %50, %23 ]
%25 = phi i64 [ %22, %20 ], [ %49, %23 ]
%26 = getelementptr inbounds [65 x i64], [65 x i64]* %1, i64 %21, i64 %24
%27 = load i64, i64* %26
%28 = icmp ugt i64 %27, %25
%29 = select i1 %28, i64 %27, i64 %25
%30 = add nuw nsw i64 %24, 1
%31 = getelementptr inbounds [65 x i64], [65 x i64]* %1, i64 %21, i64 %30
%32 = load i64, i64* %31
%33 = icmp ugt i64 %32, %29
%34 = select i1 %33, i64 %32, i64 %29
%35 = add nuw nsw i64 %24, 2
%36 = getelementptr inbounds [65 x i64], [65 x i64]* %1, i64 %21, i64 %35
%37 = load i64, i64* %36
%38 = icmp ugt i64 %37, %34
%39 = select i1 %38, i64 %37, i64 %34
%40 = add nuw nsw i64 %24, 3
%41 = getelementptr inbounds [65 x i64], [65 x i64]* %1, i64 %21, i64 %40
%42 = load i64, i64* %41
%43 = icmp ugt i64 %42, %39
%44 = select i1 %43, i64 %42, i64 %39
%45 = add nuw nsw i64 %24, 4
%46 = getelementptr inbounds [65 x i64], [65 x i64]* %1, i64 %21, i64 %45
%47 = load i64, i64* %46
%48 = icmp ugt i64 %47, %44
%49 = select i1 %48, i64 %47, i64 %44
%50 = add nuw nsw i64 %24, 5
%51 = icmp eq i64 %50, 65
br i1 %51, label %52, label %23
52: ; preds = %23
%53 = add nuw nsw i64 %21, 1
%54 = icmp eq i64 %53, 129
br i1 %54, label %55, label %20
55: ; preds = %52
%56 = uitofp i64 %49 to double
store i8 -1, i8* %8
store i8 -1, i8* %7
store i8 -1, i8* %6
%57 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 1
%58 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 1
%59 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 1
%60 = bitcast i8* %59 to <16 x i8>*
store <16 x i8> <i8 -5, i8 -9, i8 -13, i8 -17, i8 -21, i8 -25, i8 -29, i8 -33, i8 -37, i8 -41, i8 -45, i8 -49, i8 -53, i8 -57, i8 -61, i8 -65>, <16 x i8>* %60
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 17
%62 = bitcast i8* %61 to <16 x i8>*
store <16 x i8> <i8 -69, i8 -73, i8 -77, i8 -81, i8 -85, i8 -89, i8 -93, i8 -97, i8 -101, i8 -105, i8 -109, i8 -113, i8 -117, i8 -121, i8 -125, i8 127>, <16 x i8>* %62
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 33
%64 = bitcast i8* %63 to <16 x i8>*
store <16 x i8> <i8 123, i8 119, i8 115, i8 111, i8 107, i8 103, i8 99, i8 95, i8 91, i8 87, i8 83, i8 79, i8 75, i8 71, i8 67, i8 63>, <16 x i8>* %64
%65 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 49
store i8 59, i8* %65
%66 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 50
store i8 55, i8* %66
%67 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 51
store i8 51, i8* %67
%68 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 52
store i8 47, i8* %68
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 53
store i8 43, i8* %69
%70 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 54
store i8 39, i8* %70
%71 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 55
store i8 35, i8* %71
%72 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 56
store i8 31, i8* %72
%73 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 57
store i8 27, i8* %73
%74 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 58
store i8 23, i8* %74
%75 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 59
store i8 19, i8* %75
%76 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 60
store i8 15, i8* %76
%77 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 61
store i8 11, i8* %77
%78 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 62
store i8 7, i8* %78
%79 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 63
store i8 3, i8* %79
%80 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 64
%81 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 64
%82 = bitcast i8* %81 to <16 x i8>*
store <16 x i8> <i8 0, i8 4, i8 8, i8 12, i8 16, i8 20, i8 24, i8 28, i8 32, i8 36, i8 40, i8 44, i8 48, i8 52, i8 56, i8 60>, <16 x i8>* %82
%83 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 64
%84 = bitcast i8* %83 to <16 x i8>*
store <16 x i8> <i8 -1, i8 -5, i8 -9, i8 -13, i8 -17, i8 -21, i8 -25, i8 -29, i8 -33, i8 -37, i8 -41, i8 -45, i8 -49, i8 -53, i8 -57, i8 -61>, <16 x i8>* %84
%85 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 80
%86 = bitcast i8* %85 to <16 x i8>*
store <16 x i8> <i8 64, i8 68, i8 72, i8 76, i8 80, i8 84, i8 88, i8 92, i8 96, i8 100, i8 104, i8 108, i8 112, i8 116, i8 120, i8 124>, <16 x i8>* %86
%87 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 80
%88 = bitcast i8* %87 to <16 x i8>*
store <16 x i8> <i8 -65, i8 -69, i8 -73, i8 -77, i8 -81, i8 -85, i8 -89, i8 -93, i8 -97, i8 -101, i8 -105, i8 -109, i8 -113, i8 -117, i8 -121, i8 -125>, <16 x i8>* %88
%89 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 96
%90 = bitcast i8* %89 to <16 x i8>*
store <16 x i8> <i8 -128, i8 -124, i8 -120, i8 -116, i8 -112, i8 -108, i8 -104, i8 -100, i8 -96, i8 -92, i8 -88, i8 -84, i8 -80, i8 -76, i8 -72, i8 -68>, <16 x i8>* %90
%91 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 96
%92 = bitcast i8* %91 to <16 x i8>*
store <16 x i8> <i8 127, i8 123, i8 119, i8 115, i8 111, i8 107, i8 103, i8 99, i8 95, i8 91, i8 87, i8 83, i8 79, i8 75, i8 71, i8 67>, <16 x i8>* %92
%93 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 112
%94 = bitcast i8* %93 to <16 x i8>*
store <16 x i8> <i8 -64, i8 -60, i8 -56, i8 -52, i8 -48, i8 -44, i8 -40, i8 -36, i8 -32, i8 -28, i8 -24, i8 -20, i8 -16, i8 -12, i8 -8, i8 -4>, <16 x i8>* %94
%95 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 112
%96 = bitcast i8* %95 to <16 x i8>*
store <16 x i8> <i8 63, i8 59, i8 55, i8 51, i8 47, i8 43, i8 39, i8 35, i8 31, i8 27, i8 23, i8 19, i8 15, i8 11, i8 7, i8 3>, <16 x i8>* %96
%97 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 128
%98 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 128
%99 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 128
%100 = bitcast i8* %99 to <16 x i8>*
store <16 x i8> <i8 0, i8 4, i8 8, i8 12, i8 16, i8 20, i8 24, i8 28, i8 32, i8 36, i8 40, i8 44, i8 48, i8 52, i8 56, i8 60>, <16 x i8>* %100
%101 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 144
%102 = bitcast i8* %101 to <16 x i8>*
store <16 x i8> <i8 64, i8 68, i8 72, i8 76, i8 80, i8 84, i8 88, i8 92, i8 96, i8 100, i8 104, i8 108, i8 112, i8 116, i8 120, i8 124>, <16 x i8>* %102
%103 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 160
%104 = bitcast i8* %103 to <16 x i8>*
store <16 x i8> <i8 -128, i8 -124, i8 -120, i8 -116, i8 -112, i8 -108, i8 -104, i8 -100, i8 -96, i8 -92, i8 -88, i8 -84, i8 -80, i8 -76, i8 -72, i8 -68>, <16 x i8>* %104
%105 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 176
%106 = bitcast i8* %105 to <16 x i8>*
store <16 x i8> <i8 -64, i8 -60, i8 -56, i8 -52, i8 -48, i8 -44, i8 -40, i8 -36, i8 -32, i8 -28, i8 -24, i8 -20, i8 -16, i8 -12, i8 -8, i8 -4>, <16 x i8>* %106
%107 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 192
%108 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 192
%109 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 192
%110 = bitcast i8* %109 to <16 x i8>*
store <16 x i8> <i8 -1, i8 -5, i8 -9, i8 -13, i8 -17, i8 -21, i8 -25, i8 -29, i8 -33, i8 -37, i8 -41, i8 -45, i8 -49, i8 -53, i8 -57, i8 -61>, <16 x i8>* %110
%111 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 208
%112 = bitcast i8* %111 to <16 x i8>*
store <16 x i8> <i8 -65, i8 -69, i8 -73, i8 -77, i8 -81, i8 -85, i8 -89, i8 -93, i8 -97, i8 -101, i8 -105, i8 -109, i8 -113, i8 -117, i8 -121, i8 -125>, <16 x i8>* %112
%113 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 224
%114 = bitcast i8* %113 to <16 x i8>*
store <16 x i8> <i8 127, i8 123, i8 119, i8 115, i8 111, i8 107, i8 103, i8 99, i8 95, i8 91, i8 87, i8 83, i8 79, i8 75, i8 71, i8 67>, <16 x i8>* %114
%115 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 240
%116 = bitcast i8* %115 to <16 x i8>*
store <16 x i8> <i8 63, i8 59, i8 55, i8 51, i8 47, i8 43, i8 39, i8 35, i8 31, i8 27, i8 23, i8 19, i8 15, i8 11, i8 7, i8 3>, <16 x i8>* %116
%117 = fdiv double 2.550000e+02, %56
%118 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 516, i32 520, i32 255)
br label %119
119: ; preds = %55, %158
%120 = phi i64 [ 64, %55 ], [ %159, %158 ]
br label %121
121: ; preds = %119, %154
%122 = phi i32 [ 0, %119 ], [ %156, %154 ]
br label %123
123: ; preds = %121, %136
%124 = phi i64 [ 0, %121 ], [ %152, %136 ]
%125 = getelementptr inbounds [65 x i64], [65 x i64]* %1, i64 %124, i64 %120
%126 = load i64, i64* %125
%127 = uitofp i64 %126 to double
%128 = tail call double @llvm.fmuladd.f64(double %127, double %117, double 5.000000e-01)
%129 = fptoui double %128 to i64
%130 = tail call i32 @floor(i64 %129)
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %136
132: ; preds = %123
%133 = load i64, i64* %125
%134 = icmp ne i64 %133, 0
%135 = zext i1 %134 to i32
br label %136
136: ; preds = %132, %123
%137 = phi i32 [ %130, %123 ], [ %135, %132 ]
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 %138
%140 = load i8, i8* %139
%141 = zext i8 %140 to i32
%142 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 %138
%143 = load i8, i8* %142
%144 = zext i8 %143 to i32
%145 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %138
%146 = load i8, i8* %145
%147 = zext i8 %146 to i32
%148 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %141, i32 %144, i32 %147)
%149 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %141, i32 %144, i32 %147)
%150 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %141, i32 %144, i32 %147)
%151 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %141, i32 %144, i32 %147)
%152 = add nuw nsw i64 %124, 1
%153 = icmp eq i64 %152, 129
br i1 %153, label %154, label %123
154: ; preds = %136
%155 = tail call i32 @fputc(i8 signext 10, i32* %9)
%156 = add nuw nsw i32 %122, 1
%157 = icmp eq i32 %156, 8
br i1 %157, label %158, label %121
158: ; preds = %154
%159 = add nsw i64 %120, -1
%160 = icmp eq i64 %120, 0
br i1 %160, label %161, label %119
161: ; preds = %158
%162 = tail call i32 @fclose(i32* %9)
br label %163
163: ; preds = %161, %11
ret void
}