#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 atoi(char const *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, unsigned long long, ...);
int /*<<< orphan*/ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
double get_time();
char *malloc(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcmp(char const *, char *);
unsigned long long strtoll(char const *, int /*<<< orphan*/ *, int);
int main(int argc, const char *argv[]) {
  const char *filenames[2];
  int nfiles, i;
  int streamin = 0;
  int streamout = 0;
  int blocksize = 8;
  unsigned long long filesize = 10000000000;
  for (i = 1; i < argc; i++) {
    if (!strcmp(argv[i], "-blocksize")) {
      blocksize = atoi(argv[++i]);
    } else if (!strcmp(argv[i], "-filesize")) {
      filesize = strtoll(argv[++i], NULL, 10);
    } else if (!strcmp(argv[i], "-streamin")) {
      streamin = 1;
    } else if (!strcmp(argv[i], "-streamout")) {
      streamout = 1;
    } else {
      if (nfiles < 2)
        filenames[nfiles++] = argv[i];
    }
  }
  fprintf(stderr, "File size is %lld block size is %d\n", filesize, blocksize);
  if (streamin) {
    FILE *ifs;
    double start, end;
    char *b;
    unsigned long long size;
    fprintf(stdout, "Stream reading (block = %d)\n", blocksize);
    start = get_time();
    b = malloc(blocksize);
    ifs = fopen(filenames[0], "r");
    size = 0;
    while (!feof(ifs)) {
      fread(b, blocksize, 1, ifs);
      size += blocksize;
    }
    fclose(ifs);
    end = get_time();
    fprintf(stdout, "Stream reading (size = %lld, block = %d) %.2f\n", size,
            blocksize, end - start);
  }
  if (streamout) {
    FILE *ofs;
    double start, end;
    char *b;
    unsigned long long i;
    unsigned int j;
    fprintf(stdout, "Stream writing (block = %d)\n", blocksize);
    start = get_time();
    b = malloc(blocksize);
    for (i = 0; i < blocksize; i++)
      b[i] = i % 256;
    ofs = fopen(filenames[0], "w");
    for (i = 0; i < filesize; i += blocksize) {
      for (j = 0; j < blocksize; j++)
        b[j] = j % 256;
      fwrite(b, blocksize, 1, ofs);
    }
    fclose(ofs);
    end = get_time();
    fprintf(stdout, "Stream writing (size = %lld, block = %d) %.2f\n", filesize,
            blocksize, end - start);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x8,-0x34(%rbp)
movabs $0x2540be400,%rax
mov    %rax,-0x40(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1336 <main+0x186>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdee(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1241 <main+0x91>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x28(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x34(%rbp)
jmp    1323 <main+0x173>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdb7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    128d <main+0xdd>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x28(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1070 <strtoll@plt>
mov    %rax,-0x40(%rbp)
jmp    131e <main+0x16e>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd75(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12ba <main+0x10a>
movl   $0x1,-0x2c(%rbp)
jmp    1319 <main+0x169>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd52(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12e7 <main+0x137>
movl   $0x1,-0x30(%rbp)
jmp    1314 <main+0x164>
cmpl   $0x2,-0x24(%rbp)
jge    130f <main+0x15f>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
mov    -0x24(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
cltq
mov    %rcx,-0x20(%rbp,%rax,8)
jmp    1314 <main+0x164>
jmp    1319 <main+0x169>
jmp    131e <main+0x16e>
jmp    1323 <main+0x173>
jmp    1328 <main+0x178>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11f3 <main+0x43>
mov    0x2ca3(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rdx
mov    -0x34(%rbp),%ecx
lea    0xcdd(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
cmpl   $0x0,-0x2c(%rbp)
je     142e <main+0x27e>
mov    0x2c73(%rip),%rax
mov    (%rax),%edi
movslq -0x34(%rbp),%rdx
lea    0xcdc(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x0,%al
call   1050 <get_time@plt>
movsd  %xmm0,-0x50(%rbp)
mov    -0x34(%rbp),%edi
call   10a0 <malloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xccf(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x48(%rbp)
movq   $0x0,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
call   1090 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    13cb <main+0x21b>
jmp    13f1 <main+0x241>
mov    -0x60(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x48(%rbp),%rcx
mov    $0x1,%edx
call   1030 <fread@plt>
movslq -0x34(%rbp),%rax
add    -0x68(%rbp),%rax
mov    %rax,-0x68(%rbp)
jmp    13ad <main+0x1fd>
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x0,%al
call   1050 <get_time@plt>
movsd  %xmm0,-0x58(%rbp)
mov    0x2bcb(%rip),%rax
mov    (%rax),%edi
mov    -0x68(%rbp),%rdx
mov    -0x34(%rbp),%ecx
movsd  -0x58(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
lea    0xc46(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
cmpl   $0x0,-0x30(%rbp)
je     15aa <main+0x3fa>
mov    0x2b99(%rip),%rax
mov    (%rax),%edi
movslq -0x34(%rbp),%rdx
lea    0xc50(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x0,%al
call   1050 <get_time@plt>
movsd  %xmm0,-0x78(%rbp)
mov    -0x34(%rbp),%edi
call   10a0 <malloc@plt>
mov    %rax,-0x88(%rbp)
movq   $0x0,-0x90(%rbp)
mov    -0x90(%rbp),%rax
movslq -0x34(%rbp),%rcx
cmp    %rcx,%rax
jae    14c4 <main+0x314>
mov    -0x90(%rbp),%rax
and    $0xff,%rax
mov    %al,%dl
mov    -0x88(%rbp),%rax
mov    -0x90(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x90(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x90(%rbp)
jmp    1479 <main+0x2c9>
mov    -0x20(%rbp),%rdi
lea    0xbea(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x70(%rbp)
movq   $0x0,-0x90(%rbp)
mov    -0x90(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    156d <main+0x3bd>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x34(%rbp),%eax
jae    153e <main+0x38e>
mov    -0x94(%rbp),%eax
and    $0xff,%eax
mov    %al,%dl
mov    -0x88(%rbp),%rax
mov    -0x94(%rbp),%ecx
mov    %dl,(%rax,%rcx,1)
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    14fe <main+0x34e>
mov    -0x88(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x70(%rbp),%rcx
mov    $0x1,%edx
call   10d0 <fwrite@plt>
movslq -0x34(%rbp),%rax
add    -0x90(%rbp),%rax
mov    %rax,-0x90(%rbp)
jmp    14e3 <main+0x333>
mov    -0x70(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x0,%al
call   1050 <get_time@plt>
movsd  %xmm0,-0x80(%rbp)
mov    0x2a4f(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rdx
mov    -0x34(%rbp),%ecx
movsd  -0x80(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
lea    0xb18(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
cmp    $0x2,%edi
jl     12cb <main+0x11b>
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x8,(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
mov    $0x1,%r12d
movabs $0x2540be400,%rax
mov    %rax,0x10(%rsp)
lea    0xe9a(%rip),%r15
movl   $0x0,0x18(%rsp)
jmp    121e <main+0x6e>
lea    0x1(%r13),%r12d
mov    0x8(%rbx,%r13,8),%rdi
call   10c0 <atoi@plt>
mov    %eax,(%rsp)
add    $0x1,%r12d
cmp    %ebp,%r12d
jge    12f6 <main+0x146>
movslq %r12d,%r13
mov    (%rbx,%r13,8),%r14
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1200 <main+0x50>
mov    %r14,%rdi
lea    0xe5d(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1290 <main+0xe0>
mov    %r14,%rdi
lea    0xe54(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     12af <main+0xff>
mov    %r14,%rdi
lea    0xe4b(%rip),%rsi
call   1060 <strcmp@plt>
test   %eax,%eax
je     12be <main+0x10e>
mov    0x8(%rsp),%ecx
cmp    $0x1,%ecx
jg     1211 <main+0x61>
movslq %ecx,%rax
add    $0x1,%ecx
mov    %ecx,0x8(%rsp)
mov    %r14,0x40(%rsp,%rax,8)
jmp    1211 <main+0x61>
nopw   0x0(%rax,%rax,1)
lea    0x1(%r13),%r12d
mov    0x8(%rbx,%r13,8),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1070 <strtoll@plt>
mov    %rax,0x10(%rsp)
jmp    1211 <main+0x61>
mov    $0x1,%eax
mov    %rax,0x20(%rsp)
jmp    1211 <main+0x61>
movl   $0x1,0x18(%rsp)
jmp    1211 <main+0x61>
mov    0x2d0e(%rip),%rax
mov    (%rax),%edi
lea    0xddf(%rip),%rsi
movabs $0x2540be400,%rdx
mov    $0x8,%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    17e5 <main+0x635>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
lea    0xdb4(%rip),%rsi
mov    0x10(%rsp),%rdx
mov    (%rsp),%ebx
mov    %ebx,%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
movslq %ebx,%r12
cmpl   $0x0,0x20(%rsp)
je     13ce <main+0x21e>
mov    0x2cac(%rip),%r15
mov    (%r15),%edi
lea    0xda8(%rip),%rsi
xor    %ebx,%ebx
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %eax,%eax
call   1050 <get_time@plt>
movsd  %xmm0,0x8(%rsp)
mov    %r12d,%edi
call   10a0 <malloc@plt>
mov    %rax,%r14
mov    0x40(%rsp),%rdi
lea    0xd95(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbp
mov    %rax,%rdi
call   1090 <feof@plt>
test   %eax,%eax
jne    13a2 <main+0x1f2>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %r12d,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1030 <fread@plt>
add    %r12,%rbx
mov    %rbp,%rdi
call   1090 <feof@plt>
test   %eax,%eax
je     1380 <main+0x1d0>
mov    %rbp,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
call   1050 <get_time@plt>
mov    (%r15),%edi
subsd  0x8(%rsp),%xmm0
lea    0xd3c(%rip),%rsi
mov    %rbx,%rdx
mov    (%rsp),%ecx
mov    $0x1,%al
call   1080 <fprintf@plt>
cmpl   $0x0,0x18(%rsp)
je     17e5 <main+0x635>
mov    0x2bf8(%rip),%rax
mov    (%rax),%edi
lea    0xd43(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %eax,%eax
call   1050 <get_time@plt>
movsd  %xmm0,0x28(%rsp)
mov    (%rsp),%edi
call   10a0 <malloc@plt>
mov    (%rsp),%r13d
mov    %rax,%rbx
test   %r13d,%r13d
je     159c <main+0x3ec>
cmp    $0x2,%r12
mov    $0x1,%eax
cmovae %r12,%rax
cmp    $0x20,%rax
jae    1432 <main+0x282>
xor    %ecx,%ecx
jmp    1590 <main+0x3e0>
mov    %rax,%rcx
and    $0xffffffffffffffe0,%rcx
lea    -0x20(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x5,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0x60,%rdi
jae    1462 <main+0x2b2>
movdqa 0xba5(%rip),%xmm0
xor    %edi,%edi
jmp    1538 <main+0x388>
and    $0xfffffffffffffffc,%rsi
movdqa 0xb92(%rip),%xmm0
xor    %edi,%edi
movdqa 0xb97(%rip),%xmm8
movdqa 0xb9e(%rip),%xmm9
movdqa 0xba5(%rip),%xmm10
movdqa 0xbad(%rip),%xmm4
movdqa 0xbb5(%rip),%xmm5
movdqa 0xbbd(%rip),%xmm6
movdqa 0xbc5(%rip),%xmm7
movdqa 0xbcd(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movdqa %xmm0,%xmm2
paddb  %xmm8,%xmm2
movdqu %xmm0,(%rbx,%rdi,1)
movdqu %xmm2,0x10(%rbx,%rdi,1)
movdqa %xmm0,%xmm2
paddb  %xmm9,%xmm2
movdqa %xmm0,%xmm3
paddb  %xmm10,%xmm3
movdqu %xmm2,0x20(%rbx,%rdi,1)
movdqu %xmm3,0x30(%rbx,%rdi,1)
movdqa %xmm0,%xmm2
paddb  %xmm4,%xmm2
movdqa %xmm0,%xmm3
paddb  %xmm5,%xmm3
movdqu %xmm2,0x40(%rbx,%rdi,1)
movdqu %xmm3,0x50(%rbx,%rdi,1)
movdqa %xmm0,%xmm2
paddb  %xmm6,%xmm2
movdqa %xmm0,%xmm3
paddb  %xmm7,%xmm3
movdqu %xmm2,0x60(%rbx,%rdi,1)
movdqu %xmm3,0x70(%rbx,%rdi,1)
sub    $0xffffffffffffff80,%rdi
pxor   %xmm1,%xmm0
add    $0xfffffffffffffffc,%rsi
jne    14c0 <main+0x310>
test   %rdx,%rdx
je     1580 <main+0x3d0>
lea    (%rdi,%rbx,1),%rsi
add    $0x10,%rsi
shl    $0x5,%rdx
xor    %edi,%edi
movdqa 0xabd(%rip),%xmm1
movdqa 0xac5(%rip),%xmm2
nopl   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm3
paddb  %xmm1,%xmm3
movdqu %xmm0,-0x10(%rsi,%rdi,1)
movdqu %xmm3,(%rsi,%rdi,1)
paddb  %xmm2,%xmm0
add    $0x20,%rdi
cmp    %rdi,%rdx
jne    1560 <main+0x3b0>
cmp    %rcx,%rax
mov    (%rsp),%r13d
je     159c <main+0x3ec>
nopl   0x0(%rax)
mov    %cl,(%rbx,%rcx,1)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1590 <main+0x3e0>
mov    %r12,(%rsp)
mov    0x40(%rsp),%rdi
lea    0xb9d(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%r12
cmpq   $0x0,0x10(%rsp)
je     17b1 <main+0x601>
mov    %r13d,%ebp
mov    %ebp,%eax
and    $0xffffffe0,%eax
mov    %rax,0x8(%rsp)
add    $0xffffffffffffffe0,%rax
mov    %rax,0x20(%rsp)
shr    $0x5,%rax
add    $0x1,%rax
mov    %eax,%r14d
and    $0x3,%r14d
and    $0xfffffffffffffffc,%rax
mov    %rax,0x30(%rsp)
mov    %rbx,%rax
add    $0x10,%rax
mov    %rax,0x38(%rsp)
mov    %r14,0x18(%rsp)
shl    $0x5,%r14
xor    %r15d,%r15d
movdqa 0xa02(%rip),%xmm3
movdqa 0xa0a(%rip),%xmm4
jmp    1652 <main+0x4a2>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r13d,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10d0 <fwrite@plt>
movdqa 0x9e5(%rip),%xmm4
movdqa 0x9cd(%rip),%xmm3
add    (%rsp),%r15
cmp    0x10(%rsp),%r15
jae    17b1 <main+0x601>
test   %r13d,%r13d
je     1620 <main+0x470>
cmp    $0x20,%r13d
jae    1670 <main+0x4c0>
xor    %eax,%eax
jmp    17a0 <main+0x5f0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmpq   $0x60,0x20(%rsp)
jae    1687 <main+0x4d7>
xor    %eax,%eax
movdqa 0x97e(%rip),%xmm0
jmp    1748 <main+0x598>
mov    0x30(%rsp),%rcx
xor    %eax,%eax
movdqa 0x96a(%rip),%xmm0
movdqa 0x991(%rip),%xmm8
movdqa 0x998(%rip),%xmm9
movdqa 0x99f(%rip),%xmm10
movdqa 0x9a7(%rip),%xmm5
movdqa 0x9af(%rip),%xmm6
movdqa 0x9b7(%rip),%xmm7
nopl   0x0(%rax)
movdqa %xmm0,%xmm1
paddb  %xmm3,%xmm1
movdqu %xmm0,(%rbx,%rax,1)
movdqu %xmm1,0x10(%rbx,%rax,1)
movdqa %xmm0,%xmm1
paddb  %xmm4,%xmm1
movdqa %xmm0,%xmm2
paddb  %xmm8,%xmm2
movdqu %xmm1,0x20(%rbx,%rax,1)
movdqu %xmm2,0x30(%rbx,%rax,1)
movdqa %xmm0,%xmm1
paddb  %xmm9,%xmm1
movdqa %xmm0,%xmm2
paddb  %xmm10,%xmm2
movdqu %xmm1,0x40(%rbx,%rax,1)
movdqu %xmm2,0x50(%rbx,%rax,1)
movdqa %xmm0,%xmm1
paddb  %xmm5,%xmm1
movdqa %xmm0,%xmm2
paddb  %xmm6,%xmm2
movdqu %xmm1,0x60(%rbx,%rax,1)
movdqu %xmm2,0x70(%rbx,%rax,1)
sub    $0xffffffffffffff80,%rax
pxor   %xmm7,%xmm0
add    $0xfffffffffffffffc,%rcx
jne    16d0 <main+0x520>
cmpq   $0x0,0x18(%rsp)
je     1780 <main+0x5d0>
add    0x38(%rsp),%rax
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm1
paddb  %xmm3,%xmm1
movdqu %xmm0,-0x10(%rax,%rcx,1)
movdqu %xmm1,(%rax,%rcx,1)
paddb  %xmm4,%xmm0
add    $0x20,%rcx
cmp    %rcx,%r14
jne    1760 <main+0x5b0>
mov    0x8(%rsp),%rcx
mov    %rcx,%rax
cmp    %rbp,%rcx
je     1620 <main+0x470>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %al,(%rbx,%rax,1)
add    $0x1,%rax
cmp    %rax,%rbp
jne    17a0 <main+0x5f0>
jmp    1620 <main+0x470>
mov    %r12,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
call   1050 <get_time@plt>
mov    0x2811(%rip),%rax
mov    (%rax),%edi
subsd  0x28(%rsp),%xmm0
lea    0x975(%rip),%rsi
mov    0x10(%rsp),%rdx
mov    %r13d,%ecx
mov    $0x1,%al
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"-blocksize\00"
@.str.1 = [10 x i8] c"-filesize\00"
@.str.2 = [10 x i8] c"-streamin\00"
@.str.3 = [11 x i8] c"-streamout\00"
@stderr = global i32 0
@.str.4 = [36 x i8] c"File size is %lld block size is %d\0A\00"
@stdout = global i32 0
@.str.5 = [29 x i8] c"Stream reading (block = %d)\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [47 x i8] c"Stream reading (size = %lld, block = %d) %.2f\0A\00"
@.str.8 = [29 x i8] c"Stream writing (block = %d)\0A\00"
@.str.9 = [2 x i8] c"w\00"
@.str.10 = [47 x i8] c"Stream writing (size = %lld, block = %d) %.2f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x i8*]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i64
%13 = alloca i32*
%14 = alloca double
%15 = alloca double
%16 = alloca i8*
%17 = alloca i64
%18 = alloca i32*
%19 = alloca double
%20 = alloca double
%21 = alloca i8*
%22 = alloca i64
%23 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i32 0, i32* %10
store i32 8, i32* %11
store i64 10000000000, i64* %12
store i32 1, i32* %8
br label %24
24: ; preds = %96, %2
%25 = load i32, i32* %8
%26 = load i32, i32* %4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %99
28: ; preds = %24
%29 = load i8**, i8*** %5
%30 = load i32, i32* %8
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8*, i8** %29, i64 %31
%33 = load i8*, i8** %32
%34 = call i32 @strcmp(i8* %33, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%35 = icmp ne i32 %34, 0
br i1 %35, label %44, label %36
36: ; preds = %28
%37 = load i8**, i8*** %5
%38 = load i32, i32* %8
%39 = add nsw i32 %38, 1
store i32 %39, i32* %8
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %37, i64 %40
%42 = load i8*, i8** %41
%43 = call i32 @atoi(i8* %42)
store i32 %43, i32* %11
br label %95
44: ; preds = %28
%45 = load i8**, i8*** %5
%46 = load i32, i32* %8
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8*, i8** %45, i64 %47
%49 = load i8*, i8** %48
%50 = call i32 @strcmp(i8* %49, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%51 = icmp ne i32 %50, 0
br i1 %51, label %60, label %52
52: ; preds = %44
%53 = load i8**, i8*** %5
%54 = load i32, i32* %8
%55 = add nsw i32 %54, 1
store i32 %55, i32* %8
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8*, i8** %53, i64 %56
%58 = load i8*, i8** %57
%59 = call i64 @strtoll(i8* %58, i32* null, i32 10)
store i64 %59, i64* %12
br label %94
60: ; preds = %44
%61 = load i8**, i8*** %5
%62 = load i32, i32* %8
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8*, i8** %61, i64 %63
%65 = load i8*, i8** %64
%66 = call i32 @strcmp(i8* %65, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%67 = icmp ne i32 %66, 0
br i1 %67, label %69, label %68
68: ; preds = %60
store i32 1, i32* %9
br label %93
69: ; preds = %60
%70 = load i8**, i8*** %5
%71 = load i32, i32* %8
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8*, i8** %70, i64 %72
%74 = load i8*, i8** %73
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%76 = icmp ne i32 %75, 0
br i1 %76, label %78, label %77
77: ; preds = %69
store i32 1, i32* %10
br label %92
78: ; preds = %69
%79 = load i32, i32* %7
%80 = icmp slt i32 %79, 2
br i1 %80, label %81, label %91
81: ; preds = %78
%82 = load i8**, i8*** %5
%83 = load i32, i32* %8
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8*, i8** %82, i64 %84
%86 = load i8*, i8** %85
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds [2 x i8*], [2 x i8*]* %6, i64 0, i64 %89
store i8* %86, i8** %90
br label %91
91: ; preds = %81, %78
br label %92
92: ; preds = %91, %77
br label %93
93: ; preds = %92, %68
br label %94
94: ; preds = %93, %52
br label %95
95: ; preds = %94, %36
br label %96
96: ; preds = %95
%97 = load i32, i32* %8
%98 = add nsw i32 %97, 1
store i32 %98, i32* %8
br label %24
99: ; preds = %24
%100 = load i32, i32* @stderr
%101 = load i64, i64* %12
%102 = load i32, i32* %11
%103 = call i32 (i32, i8*, i64, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i64 %101, i32 %102)
%104 = load i32, i32* %9
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %142
106: ; preds = %99
%107 = load i32, i32* @stdout
%108 = load i32, i32* %11
%109 = sext i32 %108 to i64
%110 = call i32 (i32, i8*, i64, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i64 %109)
%111 = call double (...) @get_time()
store double %111, double* %14
%112 = load i32, i32* %11
%113 = call i8* @malloc(i32 %112)
store i8* %113, i8** %16
%114 = getelementptr inbounds [2 x i8*], [2 x i8*]* %6, i64 0, i64 0
%115 = load i8*, i8** %114
%116 = call i32* @fopen(i8* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %116, i32** %13
store i64 0, i64* %17
br label %117
117: ; preds = %122, %106
%118 = load i32*, i32** %13
%119 = call i32 @feof(i32* %118)
%120 = icmp ne i32 %119, 0
%121 = xor i1 %120, true
br i1 %121, label %122, label %131
122: ; preds = %117
%123 = load i8*, i8** %16
%124 = load i32, i32* %11
%125 = load i32*, i32** %13
%126 = call i32 @fread(i8* %123, i32 %124, i32 1, i32* %125)
%127 = load i32, i32* %11
%128 = sext i32 %127 to i64
%129 = load i64, i64* %17
%130 = add i64 %129, %128
store i64 %130, i64* %17
br label %117
131: ; preds = %117
%132 = load i32*, i32** %13
%133 = call i32 @fclose(i32* %132)
%134 = call double (...) @get_time()
store double %134, double* %15
%135 = load i32, i32* @stdout
%136 = load i64, i64* %17
%137 = load i32, i32* %11
%138 = load double, double* %15
%139 = load double, double* %14
%140 = fsub double %138, %139
%141 = call i32 (i32, i8*, i64, ...) @fprintf(i32 %135, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i64 %136, i32 %137, double %140)
br label %142
142: ; preds = %131, %99
%143 = load i32, i32* %10
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %213
145: ; preds = %142
%146 = load i32, i32* @stdout
%147 = load i32, i32* %11
%148 = sext i32 %147 to i64
%149 = call i32 (i32, i8*, i64, ...) @fprintf(i32 %146, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i64 %148)
%150 = call double (...) @get_time()
store double %150, double* %19
%151 = load i32, i32* %11
%152 = call i8* @malloc(i32 %151)
store i8* %152, i8** %21
store i64 0, i64* %22
br label %153
153: ; preds = %165, %145
%154 = load i64, i64* %22
%155 = load i32, i32* %11
%156 = sext i32 %155 to i64
%157 = icmp ult i64 %154, %156
br i1 %157, label %158, label %168
158: ; preds = %153
%159 = load i64, i64* %22
%160 = urem i64 %159, 256
%161 = trunc i64 %160 to i8
%162 = load i8*, i8** %21
%163 = load i64, i64* %22
%164 = getelementptr inbounds i8, i8* %162, i64 %163
store i8 %161, i8* %164
br label %165
165: ; preds = %158
%166 = load i64, i64* %22
%167 = add i64 %166, 1
store i64 %167, i64* %22
br label %153
168: ; preds = %153
%169 = getelementptr inbounds [2 x i8*], [2 x i8*]* %6, i64 0, i64 0
%170 = load i8*, i8** %169
%171 = call i32* @fopen(i8* %170, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %171, i32** %18
store i64 0, i64* %22
br label %172
172: ; preds = %197, %168
%173 = load i64, i64* %22
%174 = load i64, i64* %12
%175 = icmp ult i64 %173, %174
br i1 %175, label %176, label %202
176: ; preds = %172
store i32 0, i32* %23
br label %177
177: ; preds = %189, %176
%178 = load i32, i32* %23
%179 = load i32, i32* %11
%180 = icmp ult i32 %178, %179
br i1 %180, label %181, label %192
181: ; preds = %177
%182 = load i32, i32* %23
%183 = urem i32 %182, 256
%184 = trunc i32 %183 to i8
%185 = load i8*, i8** %21
%186 = load i32, i32* %23
%187 = zext i32 %186 to i64
%188 = getelementptr inbounds i8, i8* %185, i64 %187
store i8 %184, i8* %188
br label %189
189: ; preds = %181
%190 = load i32, i32* %23
%191 = add i32 %190, 1
store i32 %191, i32* %23
br label %177
192: ; preds = %177
%193 = load i8*, i8** %21
%194 = load i32, i32* %11
%195 = load i32*, i32** %18
%196 = call i32 @fwrite(i8* %193, i32 %194, i32 1, i32* %195)
br label %197
197: ; preds = %192
%198 = load i32, i32* %11
%199 = sext i32 %198 to i64
%200 = load i64, i64* %22
%201 = add i64 %200, %199
store i64 %201, i64* %22
br label %172
202: ; preds = %172
%203 = load i32*, i32** %18
%204 = call i32 @fclose(i32* %203)
%205 = call double (...) @get_time()
store double %205, double* %20
%206 = load i32, i32* @stdout
%207 = load i64, i64* %12
%208 = load i32, i32* %11
%209 = load double, double* %20
%210 = load double, double* %19
%211 = fsub double %209, %210
%212 = call i32 (i32, i8*, i64, ...) @fprintf(i32 %206, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0), i64 %207, i32 %208, double %211)
br label %213
213: ; preds = %202, %142
%214 = load i32, i32* %3
ret i32 %214
}

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