#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int lseek64(int, long long, int /*<<< orphan*/);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, int);
int open64(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ read(int, unsigned char **, int);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ stdout;
char *strerror(int /*<<< orphan*/);
int write(int, unsigned char **, int);
int main(int argc, char **argv) {
  int i;
  int fd;
  int value;
  unsigned char oldBuffer[8];
  unsigned char newBuffer[8];
  char *fileName;
  long long int offset;
  long long int alignedOffset;
  long long int bufferIndex;
  long long int indexMask = (long long int)(8 - 1);
  long long int alignedMask = (long long int)(8 - 1) ^ (long long int)(-1);
  if (argc != 3 && argc != 4) {
    printf("Usage: %s <filename> <offset> [<newValue>]\n", argv[0]);
    printf("Returns value of byte offset, or modifies to new value.\n");
    exit(1);
  }
  fileName = argv[1];
  sscanf(argv[2], "%lld", &offset);
  alignedOffset = offset & alignedMask;
  bufferIndex = offset & indexMask;
  if (argc == 4) {
    sscanf(argv[3], "%d", &value);
    if (value < 0 || value > 255)
      do {
        fprintf(stdout, "** error **\n");
        fprintf(
            stdout, "ERROR in %s (line %d): %s.\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/"
            "heads/master/ior-3.0.1/contrib/cbif.c",
            69, "ERROR: <value> must be 0-255");
        fprintf(stdout, "ERROR: %s\n", strerror(errno));
        fprintf(stdout, "** exiting **\n");
        fflush(stdout);
        exit(1);
      } while (0);
  }
  fd = open64(fileName, O_RDWR);
  if (fd < 0)
    do {
      fprintf(stdout, "** error **\n");
      fprintf(stdout, "ERROR in %s (line %d): %s.\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/"
              "heads/master/ior-3.0.1/contrib/cbif.c",
              74, "ERROR: Unable to open file");
      fprintf(stdout, "ERROR: %s\n", strerror(errno));
      fprintf(stdout, "** exiting **\n");
      fflush(stdout);
      exit(1);
    } while (0);
  if (lseek64(fd, alignedOffset, SEEK_SET) == -1)
    do {
      fprintf(stdout, "** error **\n");
      fprintf(stdout, "ERROR in %s (line %d): %s.\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/"
              "heads/master/ior-3.0.1/contrib/cbif.c",
              78, "ERROR: Unable to seek to file offset");
      fprintf(stdout, "ERROR: %s\n", strerror(errno));
      fprintf(stdout, "** exiting **\n");
      fflush(stdout);
      exit(1);
    } while (0);
  if (read(fd, &oldBuffer, 8) <= 0)
    do {
      fprintf(stdout, "** error **\n");
      fprintf(stdout, "ERROR in %s (line %d): %s.\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/"
              "heads/master/ior-3.0.1/contrib/cbif.c",
              82, "ERROR: Unable to read file offset");
      fprintf(stdout, "ERROR: %s\n", strerror(errno));
      fprintf(stdout, "** exiting **\n");
      fflush(stdout);
      exit(1);
    } while (0);
  if (argc == 4) {
    memcpy(newBuffer, oldBuffer, 8);
    newBuffer[bufferIndex] = (unsigned char)value;
    if (lseek64(fd, alignedOffset, SEEK_SET) == -1)
      do {
        fprintf(stdout, "** error **\n");
        fprintf(
            stdout, "ERROR in %s (line %d): %s.\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/"
            "heads/master/ior-3.0.1/contrib/cbif.c",
            92, "ERROR: Unable to seek to file offset");
        fprintf(stdout, "ERROR: %s\n", strerror(errno));
        fprintf(stdout, "** exiting **\n");
        fflush(stdout);
        exit(1);
      } while (0);
    if (write(fd, &newBuffer, 8) != 8)
      do {
        fprintf(stdout, "** error **\n");
        fprintf(
            stdout, "ERROR in %s (line %d): %s.\n",
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/"
            "heads/master/ior-3.0.1/contrib/cbif.c",
            96, "ERROR: Unable to write to file offset");
        fprintf(stdout, "ERROR: %s\n", strerror(errno));
        fprintf(stdout, "** exiting **\n");
        fflush(stdout);
        exit(1);
      } while (0);
  }
  if (argc == 3) {
    fprintf(stdout, "offset:               original value:   \n");
    fprintf(stdout, "------------------    ------------------\n");
  } else {
    fprintf(stdout,
            "offset:               original value:       new value:        \n");
    fprintf(stdout,
            "------------------    ------------------    ------------------\n");
  }
  fprintf(stdout, "0x%016llx    0x", alignedOffset);
  for (i = 0; i < 8; i++) {
    fprintf(stdout, "%02x", oldBuffer[i]);
  }
  if (argc == 4) {
    fprintf(stdout, "    0x");
    for (i = 0; i < 8; i++) {
      fprintf(stdout, "%02x", newBuffer[i]);
    }
  }
  fprintf(stdout, "\n");
  fprintf(stdout, "%-16lld      %-3d (0x%02x)", offset, oldBuffer[bufferIndex],
          oldBuffer[bufferIndex]);
  if (argc == 4) {
    fprintf(stdout, "            %-3d (0x%02x)\n", newBuffer[bufferIndex],
            newBuffer[bufferIndex]);
  }
  fprintf(stdout, "\n");
  fflush(stdout);
  close(fd);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x7,-0x58(%rbp)
movq   $0xfffffffffffffff8,-0x60(%rbp)
ff
cmpl   $0x3,-0x8(%rbp)
je     122a <main+0x6a>
cmpl   $0x4,-0x8(%rbp)
je     122a <main+0x6a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe20(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
mov    -0x40(%rbp),%rax
and    -0x60(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
and    -0x58(%rbp),%rax
mov    %rax,-0x50(%rbp)
cmpl   $0x4,-0x8(%rbp)
jne    134b <main+0x18b>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xde9(%rip),%rsi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sscanf@plt>
cmpl   $0x0,-0x1c(%rbp)
jl     12a3 <main+0xe3>
cmpl   $0xff,-0x1c(%rbp)
jle    1346 <main+0x186>
jmp    12a8 <main+0xe8>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
lea    0xdb5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
lea    0xdab(%rip),%rsi
lea    0xdc0(%rip),%rdx
mov    $0x45,%ecx
lea    0xe5a(%rip),%r8
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2cd8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    0x2cdc(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    %rax,%rdx
lea    0xe49(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2caa(%rip),%rax
mov    (%rax),%edi
lea    0xe3d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c93(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
jmp    134b <main+0x18b>
mov    -0x38(%rbp),%rdi
mov    0x2c92(%rip),%rax
mov    (%rax),%esi
call   10b0 <open64@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    140d <main+0x24d>
jmp    136f <main+0x1af>
mov    0x2c52(%rip),%rax
mov    (%rax),%edi
lea    0xcee(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c3b(%rip),%rax
mov    (%rax),%edi
lea    0xce4(%rip),%rsi
lea    0xcf9(%rip),%rdx
mov    $0x4a,%ecx
lea    0xdca(%rip),%r8
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c11(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x68(%rbp)
mov    0x2c15(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x68(%rbp),%edi
mov    %rax,%rdx
lea    0xd82(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2be3(%rip),%rax
mov    (%rax),%edi
lea    0xd76(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2bcc(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    0x2bb5(%rip),%rax
mov    (%rax),%edx
call   10d0 <lseek64@plt>
cmp    $0xffffffff,%eax
jne    14ce <main+0x30e>
jmp    1430 <main+0x270>
mov    0x2b91(%rip),%rax
mov    (%rax),%edi
lea    0xc2d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b7a(%rip),%rax
mov    (%rax),%edi
lea    0xc23(%rip),%rsi
lea    0xc38(%rip),%rdx
mov    $0x4e,%ecx
lea    0xd24(%rip),%r8
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b50(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    0x2b54(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x6c(%rbp),%edi
mov    %rax,%rdx
lea    0xcc1(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b22(%rip),%rax
mov    (%rax),%edi
lea    0xcb5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2b0b(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%edi
lea    -0x24(%rbp),%rsi
mov    $0x8,%edx
call   1060 <read@plt>
cmp    $0x0,%rax
jg     158c <main+0x3cc>
jmp    14ee <main+0x32e>
mov    0x2ad3(%rip),%rax
mov    (%rax),%edi
lea    0xb6f(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2abc(%rip),%rax
mov    (%rax),%edi
lea    0xb65(%rip),%rsi
lea    0xb7a(%rip),%rdx
mov    $0x52,%ecx
lea    0xc8b(%rip),%r8
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2a92(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
mov    0x2a96(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x70(%rbp),%edi
mov    %rax,%rdx
lea    0xc03(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2a64(%rip),%rax
mov    (%rax),%edi
lea    0xbf7(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2a4d(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
cmpl   $0x4,-0x8(%rbp)
jne    1738 <main+0x578>
lea    -0x2c(%rbp),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x8,%edx
call   1080 <memcpy@plt>
mov    -0x1c(%rbp),%eax
mov    %al,%cl
mov    -0x50(%rbp),%rax
mov    %cl,-0x2c(%rbp,%rax,1)
mov    -0x18(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    0x2a0d(%rip),%rax
mov    (%rax),%edx
call   10d0 <lseek64@plt>
cmp    $0xffffffff,%eax
jne    1676 <main+0x4b6>
jmp    15d8 <main+0x418>
mov    0x29e9(%rip),%rax
mov    (%rax),%edi
lea    0xa85(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x29d2(%rip),%rax
mov    (%rax),%edi
lea    0xa7b(%rip),%rsi
lea    0xa90(%rip),%rdx
mov    $0x5c,%ecx
lea    0xb7c(%rip),%r8
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x29a8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    0x29ac(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x74(%rbp),%edi
mov    %rax,%rdx
lea    0xb19(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x297a(%rip),%rax
mov    (%rax),%edi
lea    0xb0d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2963(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%edi
lea    -0x2c(%rbp),%rsi
mov    $0x8,%edx
call   1030 <write@plt>
cmp    $0x8,%eax
je     1733 <main+0x573>
jmp    1695 <main+0x4d5>
mov    0x292c(%rip),%rax
mov    (%rax),%edi
lea    0x9c8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2915(%rip),%rax
mov    (%rax),%edi
lea    0x9be(%rip),%rsi
lea    0x9d3(%rip),%rdx
mov    $0x60,%ecx
lea    0xb06(%rip),%r8
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x28eb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x78(%rbp)
mov    0x28ef(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x78(%rbp),%edi
mov    %rax,%rdx
lea    0xa5c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x28bd(%rip),%rax
mov    (%rax),%edi
lea    0xa50(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x28a6(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
jmp    1738 <main+0x578>
cmpl   $0x3,-0x8(%rbp)
jne    1775 <main+0x5b5>
mov    0x287f(%rip),%rax
mov    (%rax),%edi
lea    0xaa9(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2868(%rip),%rax
mov    (%rax),%edi
lea    0xb12(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    17a3 <main+0x5e3>
mov    0x284c(%rip),%rax
mov    (%rax),%edi
lea    0xaa0(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2835(%rip),%rax
mov    (%rax),%edi
lea    0xac9(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x281e(%rip),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%rdx
lea    0xaee(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    17fd <main+0x63d>
mov    0x27f2(%rip),%rax
mov    (%rax),%edi
movslq -0x14(%rbp),%rax
movzbl -0x24(%rbp,%rax,1),%edx
lea    0xacd(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    17c5 <main+0x605>
cmpl   $0x4,-0x8(%rbp)
jne    1862 <main+0x6a2>
mov    0x27ba(%rip),%rax
mov    (%rax),%edi
lea    0xa97(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x8,-0x14(%rbp)
jge    185d <main+0x69d>
mov    0x2792(%rip),%rax
mov    (%rax),%edi
movslq -0x14(%rbp),%rax
movzbl -0x2c(%rbp,%rax,1),%edx
lea    0xa6d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1825 <main+0x665>
jmp    1862 <main+0x6a2>
mov    0x275f(%rip),%rax
mov    (%rax),%edi
lea    0x9f1(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2748(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rdx
mov    -0x50(%rbp),%rax
movzbl -0x24(%rbp,%rax,1),%ecx
mov    -0x50(%rbp),%rax
movzbl -0x24(%rbp,%rax,1),%r8d
lea    0xa1a(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
cmpl   $0x4,-0x8(%rbp)
jne    18da <main+0x71a>
mov    0x2710(%rip),%rax
mov    (%rax),%edi
mov    -0x50(%rbp),%rax
movzbl -0x2c(%rbp,%rax,1),%edx
mov    -0x50(%rbp),%rax
movzbl -0x2c(%rbp,%rax,1),%ecx
lea    0xa02(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x26e7(%rip),%rax
mov    (%rax),%edi
lea    0x979(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x26d0(%rip),%rax
mov    (%rax),%edi
call   1090 <fflush@plt>
mov    -0x18(%rbp),%edi
call   1050 <close@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%rbx
mov    %edi,%r15d
lea    -0x5(%r15),%eax
cmp    $0xfffffffd,%eax
jbe    1520 <main+0x350>
mov    0x8(%rbx),%rbp
mov    0x10(%rbx),%rdi
lea    0xe2e(%rip),%rsi
lea    0x18(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
mov    0x18(%rsp),%r12
cmp    $0x4,%r15d
jne    123a <main+0x6a>
mov    0x18(%rbx),%rdi
lea    0xe11(%rip),%rsi
lea    0x14(%rsp),%rdx
xor    %eax,%eax
call   10b0 <sscanf@plt>
cmpl   $0x100,0x14(%rsp)
jae    15f2 <main+0x422>
mov    0x2da7(%rip),%rax
mov    (%rax),%esi
mov    %rbp,%rdi
call   10c0 <open64@plt>
test   %eax,%eax
js     1547 <main+0x377>
mov    %eax,%r14d
mov    %r12,%rbp
and    $0xfffffffffffffff8,%rbp
mov    0x2d6c(%rip),%rbx
mov    (%rbx),%edx
mov    %eax,%edi
mov    %rbp,%rsi
call   10e0 <lseek64@plt>
cmp    $0xffffffff,%eax
je     1581 <main+0x3b1>
lea    0x8(%rsp),%rsi
mov    %r14d,%edi
mov    $0x8,%edx
call   1070 <read@plt>
test   %rax,%rax
jle    15bb <main+0x3eb>
and    $0x7,%r12d
cmp    $0x4,%r15d
jne    1307 <main+0x137>
mov    %rsp,%rdi
lea    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1090 <memcpy@plt>
mov    0x14(%rsp),%al
mov    %al,(%rsp,%r12,1)
mov    (%rbx),%edx
mov    %r14d,%edi
mov    %rbp,%rsi
call   10e0 <lseek64@plt>
cmp    $0xffffffff,%eax
je     1629 <main+0x459>
mov    %rsp,%rsi
mov    %r14d,%edi
mov    $0x8,%edx
call   1040 <write@plt>
mov    0x2ce3(%rip),%rbx
mov    (%rbx),%edi
cmp    $0x8,%eax
jne    16ac <main+0x4dc>
lea    0xef5(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xf27(%rip),%rsi
jmp    1325 <main+0x155>
mov    0x2cba(%rip),%rax
mov    (%rax),%edi
lea    0xeab(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xf1d(%rip),%rsi
mov    0x2c9c(%rip),%rbx
mov    (%rbx),%edi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2e(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x8(%rsp),%edx
lea    0xf26(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x9(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0xa(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0xb(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0xc(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0xd(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0xe(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0xf(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
cmp    $0x4,%r15d
jne    14c6 <main+0x2f6>
lea    0xe8b(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl (%rsp),%edx
lea    0xe7e(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x1(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x2(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x3(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x4(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x5(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x6(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl 0x7(%rsp),%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xda2(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
mov    0x18(%rsp),%rdx
movzbl 0x8(%rsp,%r12,1),%ecx
lea    0xdde(%rip),%rsi
mov    %ecx,%r8d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
movzbl (%rsp,%r12,1),%ecx
lea    0xde1(%rip),%rsi
mov    %ecx,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    14f2 <main+0x322>
lea    0xd5d(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
mov    0x18(%rsp),%rdx
movzbl 0x8(%rsp,%r12,1),%ecx
lea    0xd99(%rip),%rsi
mov    %ecx,%r8d
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd2f(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
call   10a0 <fflush@plt>
mov    %r14d,%edi
call   1060 <close@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx),%rsi
lea    0xad6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd7f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2a7a(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xadc(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xad8(%rip),%rsi
lea    0xaed(%rip),%rdx
lea    0xbc3(%rip),%r8
mov    $0x4a,%ecx
jmp    165e <main+0x48e>
mov    0x2a40(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xaa2(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xa9e(%rip),%rsi
lea    0xab3(%rip),%rdx
lea    0xba4(%rip),%r8
mov    $0x4e,%ecx
jmp    165e <main+0x48e>
mov    0x2a06(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xa68(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xa64(%rip),%rsi
lea    0xa79(%rip),%rdx
lea    0xb8f(%rip),%r8
mov    $0x52,%ecx
jmp    165e <main+0x48e>
mov    0x29cf(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xa31(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xa2d(%rip),%rsi
lea    0xa42(%rip),%rdx
lea    0xae1(%rip),%r8
mov    $0x45,%ecx
jmp    165e <main+0x48e>
mov    0x2998(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0x9fa(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x9f6(%rip),%rsi
lea    0xa0b(%rip),%rdx
lea    0xafc(%rip),%r8
mov    $0x5c,%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%ebx
mov    0x2969(%rip),%rax
mov    (%rax),%edi
call   10f0 <strerror@plt>
lea    0xaa3(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xa98(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x0(%rbp),%edi
call   10a0 <fflush@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0x981(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0x97e(%rip),%rsi
lea    0x993(%rip),%rdx
lea    0xacb(%rip),%r8
mov    $0x60,%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%ebp
mov    0x28f2(%rip),%rax
mov    (%rax),%edi
call   10f0 <strerror@plt>
lea    0xa2c(%rip),%rsi
mov    %ebp,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
lea    0xa22(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
jmp    169d <main+0x4cd>

LLVM IR (-O0):
@.str = [44 x i8] c"Usage: %s <filename> <offset> [<newValue>]\0A\00"
@.str.1 = [57 x i8] c"Returns value of byte offset, or modifies to new value.\0A\00"
@.str.2 = [5 x i8] c"%lld\00"
@.str.3 = [3 x i8] c"%d\00"
@stdout = global i32 0
@.str.4 = [13 x i8] c"** error **\0A\00"
@.str.5 = [28 x i8] c"ERROR in %s (line %d): %s.\0A\00"
@.str.6 = [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/heads/master/ior-3.0.1/contrib/cbif.c\00"
@.str.7 = [29 x i8] c"ERROR: <value> must be 0-255\00"
@.str.8 = [11 x i8] c"ERROR: %s\0A\00"
@errno = global i32 0
@.str.9 = [15 x i8] c"** exiting **\0A\00"
@O_RDWR = global i32 0
@.str.10 = [27 x i8] c"ERROR: Unable to open file\00"
@SEEK_SET = global i32 0
@.str.11 = [37 x i8] c"ERROR: Unable to seek to file offset\00"
@.str.12 = [34 x i8] c"ERROR: Unable to read file offset\00"
@.str.13 = [38 x i8] c"ERROR: Unable to write to file offset\00"
@.str.14 = [42 x i8] c"offset: original value: \0A\00"
@.str.15 = [42 x i8] c"------------------ ------------------\0A\00"
@.str.16 = [64 x i8] c"offset: original value: new value: \0A\00"
@.str.17 = [64 x i8] c"------------------ ------------------ ------------------\0A\00"
@.str.18 = [16 x i8] c"0x%016llx 0x\00"
@.str.19 = [5 x i8] c"%02x\00"
@.str.20 = [7 x i8] c" 0x\00"
@.str.21 = [2 x i8] c"\0A\00"
@.str.22 = [27 x i8] c"%-16lld %-3d (0x%02x)\00"
@.str.23 = [27 x i8] c" %-3d (0x%02x)\0A\00"
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 [8 x i8]
%10 = alloca [8 x i8]
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 7, i64* %15
store i64 -8, i64* %16
%17 = load i32, i32* %4
%18 = icmp ne i32 %17, 3
br i1 %18, label %19, label %29
19: ; preds = %2
%20 = load i32, i32* %4
%21 = icmp ne i32 %20, 4
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 0
%25 = load i8*, i8** %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %25)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @exit(i32 1)
unreachable
29: ; preds = %19, %2
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
store i8* %32, i8** %11
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 2
%35 = load i8*, i8** %34
%36 = call i32 (i8*, i8*, ...) @sscanf(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64* %12)
%37 = load i64, i64* %12
%38 = load i64, i64* %16
%39 = and i64 %37, %38
store i64 %39, i64* %13
%40 = load i64, i64* %12
%41 = load i64, i64* %15
%42 = and i64 %40, %41
store i64 %42, i64* %14
%43 = load i32, i32* %4
%44 = icmp eq i32 %43, 4
br i1 %44, label %45, label %72
45: ; preds = %29
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 3
%48 = load i8*, i8** %47
%49 = call i32 (i8*, i8*, ...) @sscanf(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %8)
%50 = load i32, i32* %8
%51 = icmp slt i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %45
%53 = load i32, i32* %8
%54 = icmp sgt i32 %53, 255
br i1 %54, label %55, label %71
55: ; preds = %52, %45
br label %56
56: ; preds = %55
%57 = load i32, i32* @stdout
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%59 = load i32, i32* @stdout
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 69, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%61 = load i32, i32* @stdout
%62 = load i32, i32* @errno
%63 = call i8* @strerror(i32 %62)
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %63)
%65 = load i32, i32* @stdout
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%67 = load i32, i32* @stdout
%68 = call i32 @fflush(i32 %67)
%69 = call i32 @exit(i32 1)
unreachable
70: ; No predecessors!
br label %71
71: ; preds = %70, %52
br label %72
72: ; preds = %71, %29
%73 = load i8*, i8** %11
%74 = load i32, i32* @O_RDWR
%75 = call i32 @open64(i8* %73, i32 %74)
store i32 %75, i32* %7
%76 = load i32, i32* %7
%77 = icmp slt i32 %76, 0
br i1 %77, label %78, label %94
78: ; preds = %72
br label %79
79: ; preds = %78
%80 = load i32, i32* @stdout
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%82 = load i32, i32* @stdout
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%84 = load i32, i32* @stdout
%85 = load i32, i32* @errno
%86 = call i8* @strerror(i32 %85)
%87 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %86)
%88 = load i32, i32* @stdout
%89 = call i32 (i32, i8*, ...) @fprintf(i32 %88, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%90 = load i32, i32* @stdout
%91 = call i32 @fflush(i32 %90)
%92 = call i32 @exit(i32 1)
unreachable
93: ; No predecessors!
br label %94
94: ; preds = %93, %72
%95 = load i32, i32* %7
%96 = load i64, i64* %13
%97 = load i32, i32* @SEEK_SET
%98 = call i32 @lseek64(i32 %95, i64 %96, i32 %97)
%99 = icmp eq i32 %98, -1
br i1 %99, label %100, label %116
100: ; preds = %94
br label %101
101: ; preds = %100
%102 = load i32, i32* @stdout
%103 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%104 = load i32, i32* @stdout
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 78, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%106 = load i32, i32* @stdout
%107 = load i32, i32* @errno
%108 = call i8* @strerror(i32 %107)
%109 = call i32 (i32, i8*, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %108)
%110 = load i32, i32* @stdout
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%112 = load i32, i32* @stdout
%113 = call i32 @fflush(i32 %112)
%114 = call i32 @exit(i32 1)
unreachable
115: ; No predecessors!
br label %116
116: ; preds = %115, %94
%117 = load i32, i32* %7
%118 = bitcast [8 x i8]* %9 to i8**
%119 = call i64 @read(i32 %117, i8** %118, i32 8)
%120 = icmp sle i64 %119, 0
br i1 %120, label %121, label %137
121: ; preds = %116
br label %122
122: ; preds = %121
%123 = load i32, i32* @stdout
%124 = call i32 (i32, i8*, ...) @fprintf(i32 %123, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%125 = load i32, i32* @stdout
%126 = call i32 (i32, i8*, ...) @fprintf(i32 %125, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 82, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
%127 = load i32, i32* @stdout
%128 = load i32, i32* @errno
%129 = call i8* @strerror(i32 %128)
%130 = call i32 (i32, i8*, ...) @fprintf(i32 %127, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %129)
%131 = load i32, i32* @stdout
%132 = call i32 (i32, i8*, ...) @fprintf(i32 %131, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%133 = load i32, i32* @stdout
%134 = call i32 @fflush(i32 %133)
%135 = call i32 @exit(i32 1)
unreachable
136: ; No predecessors!
br label %137
137: ; preds = %136, %116
%138 = load i32, i32* %4
%139 = icmp eq i32 %138, 4
br i1 %139, label %140, label %191
140: ; preds = %137
%141 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
%142 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%143 = call i32 @memcpy(i8* %141, i8* %142, i32 8)
%144 = load i32, i32* %8
%145 = trunc i32 %144 to i8
%146 = load i64, i64* %14
%147 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %146
store i8 %145, i8* %147
%148 = load i32, i32* %7
%149 = load i64, i64* %13
%150 = load i32, i32* @SEEK_SET
%151 = call i32 @lseek64(i32 %148, i64 %149, i32 %150)
%152 = icmp eq i32 %151, -1
br i1 %152, label %153, label %169
153: ; preds = %140
br label %154
154: ; preds = %153
%155 = load i32, i32* @stdout
%156 = call i32 (i32, i8*, ...) @fprintf(i32 %155, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%157 = load i32, i32* @stdout
%158 = call i32 (i32, i8*, ...) @fprintf(i32 %157, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 92, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%159 = load i32, i32* @stdout
%160 = load i32, i32* @errno
%161 = call i8* @strerror(i32 %160)
%162 = call i32 (i32, i8*, ...) @fprintf(i32 %159, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %161)
%163 = load i32, i32* @stdout
%164 = call i32 (i32, i8*, ...) @fprintf(i32 %163, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%165 = load i32, i32* @stdout
%166 = call i32 @fflush(i32 %165)
%167 = call i32 @exit(i32 1)
unreachable
168: ; No predecessors!
br label %169
169: ; preds = %168, %140
%170 = load i32, i32* %7
%171 = bitcast [8 x i8]* %10 to i8**
%172 = call i32 @write(i32 %170, i8** %171, i32 8)
%173 = icmp ne i32 %172, 8
br i1 %173, label %174, label %190
174: ; preds = %169
br label %175
175: ; preds = %174
%176 = load i32, i32* @stdout
%177 = call i32 (i32, i8*, ...) @fprintf(i32 %176, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%178 = load i32, i32* @stdout
%179 = call i32 (i32, i8*, ...) @fprintf(i32 %178, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 96, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%180 = load i32, i32* @stdout
%181 = load i32, i32* @errno
%182 = call i8* @strerror(i32 %181)
%183 = call i32 (i32, i8*, ...) @fprintf(i32 %180, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %182)
%184 = load i32, i32* @stdout
%185 = call i32 (i32, i8*, ...) @fprintf(i32 %184, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%186 = load i32, i32* @stdout
%187 = call i32 @fflush(i32 %186)
%188 = call i32 @exit(i32 1)
unreachable
189: ; No predecessors!
br label %190
190: ; preds = %189, %169
br label %191
191: ; preds = %190, %137
%192 = load i32, i32* %4
%193 = icmp eq i32 %192, 3
br i1 %193, label %194, label %199
194: ; preds = %191
%195 = load i32, i32* @stdout
%196 = call i32 (i32, i8*, ...) @fprintf(i32 %195, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0))
%197 = load i32, i32* @stdout
%198 = call i32 (i32, i8*, ...) @fprintf(i32 %197, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.15, i64 0, i64 0))
br label %204
199: ; preds = %191
%200 = load i32, i32* @stdout
%201 = call i32 (i32, i8*, ...) @fprintf(i32 %200, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.16, i64 0, i64 0))
%202 = load i32, i32* @stdout
%203 = call i32 (i32, i8*, ...) @fprintf(i32 %202, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.17, i64 0, i64 0))
br label %204
204: ; preds = %199, %194
%205 = load i32, i32* @stdout
%206 = load i64, i64* %13
%207 = call i32 (i32, i8*, ...) @fprintf(i32 %205, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), i64 %206)
store i32 0, i32* %6
br label %208
208: ; preds = %219, %204
%209 = load i32, i32* %6
%210 = icmp slt i32 %209, 8
br i1 %210, label %211, label %222
211: ; preds = %208
%212 = load i32, i32* @stdout
%213 = load i32, i32* %6
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 %214
%216 = load i8, i8* %215
%217 = zext i8 %216 to i32
%218 = call i32 (i32, i8*, ...) @fprintf(i32 %212, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %217)
br label %219
219: ; preds = %211
%220 = load i32, i32* %6
%221 = add nsw i32 %220, 1
store i32 %221, i32* %6
br label %208
222: ; preds = %208
%223 = load i32, i32* %4
%224 = icmp eq i32 %223, 4
br i1 %224, label %225, label %243
225: ; preds = %222
%226 = load i32, i32* @stdout
%227 = call i32 (i32, i8*, ...) @fprintf(i32 %226, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
store i32 0, i32* %6
br label %228
228: ; preds = %239, %225
%229 = load i32, i32* %6
%230 = icmp slt i32 %229, 8
br i1 %230, label %231, label %242
231: ; preds = %228
%232 = load i32, i32* @stdout
%233 = load i32, i32* %6
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %234
%236 = load i8, i8* %235
%237 = zext i8 %236 to i32
%238 = call i32 (i32, i8*, ...) @fprintf(i32 %232, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %237)
br label %239
239: ; preds = %231
%240 = load i32, i32* %6
%241 = add nsw i32 %240, 1
store i32 %241, i32* %6
br label %228
242: ; preds = %228
br label %243
243: ; preds = %242, %222
%244 = load i32, i32* @stdout
%245 = call i32 (i32, i8*, ...) @fprintf(i32 %244, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
%246 = load i32, i32* @stdout
%247 = load i64, i64* %12
%248 = load i64, i64* %14
%249 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 %248
%250 = load i8, i8* %249
%251 = zext i8 %250 to i32
%252 = load i64, i64* %14
%253 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 %252
%254 = load i8, i8* %253
%255 = zext i8 %254 to i32
%256 = call i32 (i32, i8*, ...) @fprintf(i32 %246, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.22, i64 0, i64 0), i64 %247, i32 %251, i32 %255)
%257 = load i32, i32* %4
%258 = icmp eq i32 %257, 4
br i1 %258, label %259, label %270
259: ; preds = %243
%260 = load i32, i32* @stdout
%261 = load i64, i64* %14
%262 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %261
%263 = load i8, i8* %262
%264 = zext i8 %263 to i32
%265 = load i64, i64* %14
%266 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %265
%267 = load i8, i8* %266
%268 = zext i8 %267 to i32
%269 = call i32 (i32, i8*, ...) @fprintf(i32 %260, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.23, i64 0, i64 0), i32 %264, i32 %268)
br label %270
270: ; preds = %259, %243
%271 = load i32, i32* @stdout
%272 = call i32 (i32, i8*, ...) @fprintf(i32 %271, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
%273 = load i32, i32* @stdout
%274 = call i32 @fflush(i32 %273)
%275 = load i32, i32* %7
%276 = call i32 @close(i32 %275)
ret i32 0
}

LLVM IR (-O2):
@.str = [44 x i8] c"Usage: %s <filename> <offset> [<newValue>]\0A\00"
@.str.2 = [5 x i8] c"%lld\00"
@.str.3 = [3 x i8] c"%d\00"
@stdout = global i32 0
@.str.4 = [13 x i8] c"** error **\0A\00"
@.str.5 = [28 x i8] c"ERROR in %s (line %d): %s.\0A\00"
@.str.6 = [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/yinyanlong/profiling_parallel_io/refs/heads/master/ior-3.0.1/contrib/cbif.c\00"
@.str.7 = [29 x i8] c"ERROR: <value> must be 0-255\00"
@.str.8 = [11 x i8] c"ERROR: %s\0A\00"
@errno = global i32 0
@.str.9 = [15 x i8] c"** exiting **\0A\00"
@O_RDWR = global i32 0
@.str.10 = [27 x i8] c"ERROR: Unable to open file\00"
@SEEK_SET = global i32 0
@.str.11 = [37 x i8] c"ERROR: Unable to seek to file offset\00"
@.str.12 = [34 x i8] c"ERROR: Unable to read file offset\00"
@.str.13 = [38 x i8] c"ERROR: Unable to write to file offset\00"
@.str.14 = [42 x i8] c"offset: original value: \0A\00"
@.str.15 = [42 x i8] c"------------------ ------------------\0A\00"
@.str.16 = [64 x i8] c"offset: original value: new value: \0A\00"
@.str.17 = [64 x i8] c"------------------ ------------------ ------------------\0A\00"
@.str.18 = [16 x i8] c"0x%016llx 0x\00"
@.str.19 = [5 x i8] c"%02x\00"
@.str.20 = [7 x i8] c" 0x\00"
@.str.21 = [2 x i8] c"\0A\00"
@.str.22 = [27 x i8] c"%-16lld %-3d (0x%02x)\00"
@.str.23 = [27 x i8] c" %-3d (0x%02x)\0A\00"
@str = [56 x i8] c"Returns value of byte offset, or modifies to new value.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = bitcast i8** %4 to [8 x i8]*
%6 = alloca i8*
%7 = bitcast i8** %6 to [8 x i8]*
%8 = alloca i64
%9 = bitcast i32* %3 to i8*
%10 = bitcast i8** %4 to i8*
%11 = bitcast i8** %6 to i8*
%12 = bitcast i64* %8 to i8*
%13 = add i32 %0, -5
%14 = icmp ult i32 %13, -2
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i8*, i8** %1
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
%19 = tail call i32 @exit(i32 1)
unreachable
20: ; preds = %2
%21 = getelementptr inbounds i8*, i8** %1, i64 1
%22 = load i8*, i8** %21
%23 = getelementptr inbounds i8*, i8** %1, i64 2
%24 = load i8*, i8** %23
%25 = call i32 (i8*, i8*, ...) @sscanf(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64* %8)
%26 = load i64, i64* %8
%27 = and i64 %26, -8
%28 = and i64 %26, 7
%29 = icmp eq i32 %0, 4
br i1 %29, label %30, label %50
30: ; preds = %20
%31 = getelementptr inbounds i8*, i8** %1, i64 3
%32 = load i8*, i8** %31
%33 = call i32 (i8*, i8*, ...) @sscanf(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%34 = load i32, i32* %3
%35 = icmp ugt i32 %34, 255
br i1 %35, label %36, label %50
36: ; preds = %30
%37 = load i32, i32* @stdout
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%39 = load i32, i32* @stdout
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 69, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%41 = load i32, i32* @stdout
%42 = load i32, i32* @errno
%43 = call i8* @strerror(i32 %42)
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %43)
%45 = load i32, i32* @stdout
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%47 = load i32, i32* @stdout
%48 = call i32 @fflush(i32 %47)
%49 = call i32 @exit(i32 1)
unreachable
50: ; preds = %30, %20
%51 = load i32, i32* @O_RDWR
%52 = call i32 @open64(i8* %22, i32 %51)
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %68
54: ; preds = %50
%55 = load i32, i32* @stdout
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%57 = load i32, i32* @stdout
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%59 = load i32, i32* @stdout
%60 = load i32, i32* @errno
%61 = call i8* @strerror(i32 %60)
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %61)
%63 = load i32, i32* @stdout
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%65 = load i32, i32* @stdout
%66 = call i32 @fflush(i32 %65)
%67 = call i32 @exit(i32 1)
unreachable
68: ; preds = %50
%69 = load i32, i32* @SEEK_SET
%70 = call i32 @lseek64(i32 %52, i64 %27, i32 %69)
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %86
72: ; preds = %68
%73 = load i32, i32* @stdout
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%75 = load i32, i32* @stdout
%76 = call i32 (i32, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 78, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%77 = load i32, i32* @stdout
%78 = load i32, i32* @errno
%79 = call i8* @strerror(i32 %78)
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %79)
%81 = load i32, i32* @stdout
%82 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%83 = load i32, i32* @stdout
%84 = call i32 @fflush(i32 %83)
%85 = call i32 @exit(i32 1)
unreachable
86: ; preds = %68
%87 = call i64 @read(i32 %52, i8** %4, i32 8)
%88 = icmp slt i64 %87, 1
br i1 %88, label %89, label %103
89: ; preds = %86
%90 = load i32, i32* @stdout
%91 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%92 = load i32, i32* @stdout
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 82, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
%94 = load i32, i32* @stdout
%95 = load i32, i32* @errno
%96 = call i8* @strerror(i32 %95)
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %96)
%98 = load i32, i32* @stdout
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%100 = load i32, i32* @stdout
%101 = call i32 @fflush(i32 %100)
%102 = call i32 @exit(i32 1)
unreachable
103: ; preds = %86
br i1 %29, label %104, label %143
104: ; preds = %103
%105 = call i32 @memcpy(i8* %11, i8* %10, i32 8)
%106 = load i32, i32* %3
%107 = trunc i32 %106 to i8
%108 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 %28
store i8 %107, i8* %108
%109 = load i32, i32* @SEEK_SET
%110 = call i32 @lseek64(i32 %52, i64 %27, i32 %109)
%111 = icmp eq i32 %110, -1
br i1 %111, label %112, label %126
112: ; preds = %104
%113 = load i32, i32* @stdout
%114 = call i32 (i32, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%115 = load i32, i32* @stdout
%116 = call i32 (i32, i8*, ...) @fprintf(i32 %115, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 92, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%117 = load i32, i32* @stdout
%118 = load i32, i32* @errno
%119 = call i8* @strerror(i32 %118)
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %117, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %119)
%121 = load i32, i32* @stdout
%122 = call i32 (i32, i8*, ...) @fprintf(i32 %121, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%123 = load i32, i32* @stdout
%124 = call i32 @fflush(i32 %123)
%125 = call i32 @exit(i32 1)
unreachable
126: ; preds = %104
%127 = call i32 @write(i32 %52, i8** %6, i32 8)
%128 = icmp eq i32 %127, 8
%129 = load i32, i32* @stdout
br i1 %128, label %146, label %130
130: ; preds = %126
%131 = call i32 (i32, i8*, ...) @fprintf(i32 %129, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%132 = load i32, i32* @stdout
%133 = call i32 (i32, i8*, ...) @fprintf(i32 %132, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.6, i64 0, i64 0), i32 96, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%134 = load i32, i32* @stdout
%135 = load i32, i32* @errno
%136 = call i8* @strerror(i32 %135)
%137 = call i32 (i32, i8*, ...) @fprintf(i32 %134, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %136)
%138 = load i32, i32* @stdout
%139 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%140 = load i32, i32* @stdout
%141 = call i32 @fflush(i32 %140)
%142 = call i32 @exit(i32 1)
unreachable
143: ; preds = %103
%144 = load i32, i32* @stdout
%145 = call i32 (i32, i8*, ...) @fprintf(i32 %144, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0))
br label %148
146: ; preds = %126
%147 = call i32 (i32, i8*, ...) @fprintf(i32 %129, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.16, i64 0, i64 0))
br label %148
148: ; preds = %146, %143
%149 = phi i8* [ getelementptr inbounds ([64 x i8], [64 x i8]* @.str.17, i64 0, i64 0), %146 ], [ getelementptr inbounds ([42 x i8], [42 x i8]* @.str.15, i64 0, i64 0), %143 ]
%150 = load i32, i32* @stdout
%151 = call i32 (i32, i8*, ...) @fprintf(i32 %150, i8* %149)
%152 = load i32, i32* @stdout
%153 = call i32 (i32, i8*, ...) @fprintf(i32 %152, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), i64 %27)
%154 = load i32, i32* @stdout
%155 = bitcast i8** %4 to i8*
%156 = load i8, i8* %155
%157 = zext i8 %156 to i32
%158 = call i32 (i32, i8*, ...) @fprintf(i32 %154, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %157)
%159 = load i32, i32* @stdout
%160 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 1
%161 = load i8, i8* %160
%162 = zext i8 %161 to i32
%163 = call i32 (i32, i8*, ...) @fprintf(i32 %159, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %162)
%164 = load i32, i32* @stdout
%165 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 2
%166 = load i8, i8* %165
%167 = zext i8 %166 to i32
%168 = call i32 (i32, i8*, ...) @fprintf(i32 %164, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %167)
%169 = load i32, i32* @stdout
%170 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 3
%171 = load i8, i8* %170
%172 = zext i8 %171 to i32
%173 = call i32 (i32, i8*, ...) @fprintf(i32 %169, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %172)
%174 = load i32, i32* @stdout
%175 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 4
%176 = load i8, i8* %175
%177 = zext i8 %176 to i32
%178 = call i32 (i32, i8*, ...) @fprintf(i32 %174, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %177)
%179 = load i32, i32* @stdout
%180 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 5
%181 = load i8, i8* %180
%182 = zext i8 %181 to i32
%183 = call i32 (i32, i8*, ...) @fprintf(i32 %179, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %182)
%184 = load i32, i32* @stdout
%185 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 6
%186 = load i8, i8* %185
%187 = zext i8 %186 to i32
%188 = call i32 (i32, i8*, ...) @fprintf(i32 %184, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %187)
%189 = load i32, i32* @stdout
%190 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 7
%191 = load i8, i8* %190
%192 = zext i8 %191 to i32
%193 = call i32 (i32, i8*, ...) @fprintf(i32 %189, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %192)
%194 = load i32, i32* @stdout
br i1 %29, label %195, label %250
195: ; preds = %148
%196 = call i32 (i32, i8*, ...) @fprintf(i32 %194, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%197 = load i32, i32* @stdout
%198 = bitcast i8** %6 to i8*
%199 = load i8, i8* %198
%200 = zext i8 %199 to i32
%201 = call i32 (i32, i8*, ...) @fprintf(i32 %197, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %200)
%202 = load i32, i32* @stdout
%203 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 1
%204 = load i8, i8* %203
%205 = zext i8 %204 to i32
%206 = call i32 (i32, i8*, ...) @fprintf(i32 %202, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %205)
%207 = load i32, i32* @stdout
%208 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 2
%209 = load i8, i8* %208
%210 = zext i8 %209 to i32
%211 = call i32 (i32, i8*, ...) @fprintf(i32 %207, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %210)
%212 = load i32, i32* @stdout
%213 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 3
%214 = load i8, i8* %213
%215 = zext i8 %214 to i32
%216 = call i32 (i32, i8*, ...) @fprintf(i32 %212, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %215)
%217 = load i32, i32* @stdout
%218 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 4
%219 = load i8, i8* %218
%220 = zext i8 %219 to i32
%221 = call i32 (i32, i8*, ...) @fprintf(i32 %217, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %220)
%222 = load i32, i32* @stdout
%223 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 5
%224 = load i8, i8* %223
%225 = zext i8 %224 to i32
%226 = call i32 (i32, i8*, ...) @fprintf(i32 %222, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %225)
%227 = load i32, i32* @stdout
%228 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 6
%229 = load i8, i8* %228
%230 = zext i8 %229 to i32
%231 = call i32 (i32, i8*, ...) @fprintf(i32 %227, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %230)
%232 = load i32, i32* @stdout
%233 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 7
%234 = load i8, i8* %233
%235 = zext i8 %234 to i32
%236 = call i32 (i32, i8*, ...) @fprintf(i32 %232, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i32 %235)
%237 = load i32, i32* @stdout
%238 = call i32 (i32, i8*, ...) @fprintf(i32 %237, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
%239 = load i32, i32* @stdout
%240 = load i64, i64* %8
%241 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %28
%242 = load i8, i8* %241
%243 = zext i8 %242 to i32
%244 = call i32 (i32, i8*, ...) @fprintf(i32 %239, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.22, i64 0, i64 0), i64 %240, i32 %243, i32 %243)
%245 = load i32, i32* @stdout
%246 = getelementptr inbounds [8 x i8], [8 x i8]* %7, i64 0, i64 %28
%247 = load i8, i8* %246
%248 = zext i8 %247 to i32
%249 = call i32 (i32, i8*, ...) @fprintf(i32 %245, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.23, i64 0, i64 0), i32 %248, i32 %248)
br label %258
250: ; preds = %148
%251 = call i32 (i32, i8*, ...) @fprintf(i32 %194, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
%252 = load i32, i32* @stdout
%253 = load i64, i64* %8
%254 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %28
%255 = load i8, i8* %254
%256 = zext i8 %255 to i32
%257 = call i32 (i32, i8*, ...) @fprintf(i32 %252, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.22, i64 0, i64 0), i64 %253, i32 %256, i32 %256)
br label %258
258: ; preds = %250, %195
%259 = load i32, i32* @stdout
%260 = call i32 (i32, i8*, ...) @fprintf(i32 %259, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
%261 = load i32, i32* @stdout
%262 = call i32 @fflush(i32 %261)
%263 = call i32 @close(i32 %52)
ret i32 0
}