#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 */
struct option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ *member_2;
  int /*<<< orphan*/ member_1;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ ascii85_decode(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ ascii85_encode(int /*<<< orphan*/ *, int, int, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt_long(int, char **, char *, struct option *, int *);
int /*<<< orphan*/ no_argument;
int /*<<< orphan*/ optarg;
scalar_t__ opterr;
int optind;
int optopt;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ required_argument;
int /*<<< orphan*/ setbuf(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ sscanf(int /*<<< orphan*/, char *, int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ *strchr(char *, int);
scalar_t__ strcmp(char *, char *);
char *strerror(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int opt, long_optind;
  int decode = 0, ignore_garbage = 0, delims = 1, wrap = 76, y_abbr = 0;
  FILE *fp = stdin;
  char *opts = "dinw:yh";
  struct option long_opts[] = {{"decode", no_argument, NULL, 'd'},
                               {"ignore-garbage", no_argument, NULL, 'i'},
                               {"no-delims", no_argument, NULL, 'n'},
                               {"wrap", required_argument, NULL, 'w'},
                               {"y-abbr", no_argument, NULL, 'y'},
                               {"help", no_argument, NULL, 'h'},
                               {NULL, no_argument, NULL, 0}};
  opterr = 0;
  while ((opt = getopt_long(argc, argv, opts, long_opts, &long_optind)) != -1) {
    switch (opt) {
    case 'd':
      decode = 1;
      break;
    case 'i':
      ignore_garbage = 1;
      break;
    case 'n':
      delims = 0;
      break;
    case 'w':
      sscanf(optarg, "%d", &wrap);
      break;
    case 'y':
      y_abbr = 1;
      break;
    case 'h':
      printf((
          "NAME\n"
          "\t"
          "ascii85"
          " - Ascii85 encode/decode data and print to standard output\n"
          "\n"
          "SYNOPSIS\n"
          "\t"
          "ascii85"
          " [OPTION]... [FILE]\n"
          "\n"
          "DESCRIPTION\n"
          "\tAscii85 encode or decode FILE, or standard input, to standard "
          "output.\n"
          "\n"
          "\t-d, --decode\n"
          "\t\tdecode data (encodes by default)\n"
          "\n"
          "\t-i, --ignore-garbage\n"
          "\t\twhen decoding, ignore invalid characters\n"
          "\n"
          "\t-n, --no-delims\n"
          "\t\twhen encoding, omit delimiters (<~ and ~>), and when decoding,\n"
          "\t\tdo not look for delimiters\n"
          "\n"
          "\t-w, --wrap=COLS\n"
          "\t\twrap encoded lines after COLS characters (default 76).  Use 0\n"
          "\t\tto disable line wrapping.\n"
          "\n"
          "\t-y, --y-abbr\n"
          "\t\tabbreviates four encoded spaces as 'y'\n"
          "\n"
          "\t-h, --help\n"
          "\t\tdisplay this help and exit\n"
          "\n"
          "\tWith no FILE, or when FILE is -, read standard input.\n"
          "\n"
          "AUTHOR\n"
          "\tWritten by Remy Oukaour <remy.oukaour@gmail.com>.\n"
          "\n"
          "COPYRIGHT\n"
          "\tCopyright (C) 2012-2016 Remy Oukaour "
          "<http://www.remyoukaour.com>.\n"
          "\tMIT License.\n"
          "\tThis is free software: you are free to change and redistribute "
          "it.\n"
          "\tThere is NO WARRANTY, to the extent permitted by law.\n"));
      exit(0);
    case '?':
      fprintf(stderr, "ascii85"
                      ": ");
      if (strchr("w", optopt) != NULL)
        fprintf(stderr, "option '-%c' requires an argument\n", optopt);
      else
        fprintf(stderr, "invalid option -- %c\n", optopt);
      fprintf(stderr, ("usage: "
                       "ascii85"
                       " [OPTION]... [FILE]\n"
                       "Enter '"
                       "ascii85"
                       " -h' for more information.\n"));
      exit(1);
    default:
      break;
    }
  }
  if (optind == argc - 1 && strcmp(argv[optind], "-")) {
    fp = fopen(argv[optind], "rb");
    if (fp == NULL) {
      fprintf(stderr,
              "ascii85"
              ": %s: %s\n",
              argv[optind], strerror(errno));
      exit(1);
    }
  } else if (optind > argc) {
    fprintf(stderr, "ascii85"
                    ": too many operands or wrong operand order\n");
    fprintf(stderr, ("usage: "
                     "ascii85"
                     " [OPTION]... [FILE]\n"
                     "Enter '"
                     "ascii85"
                     " -h' for more information.\n"));
    exit(1);
  }
  setbuf(fp, NULL);
  if (wrap < 1)
    wrap = 0;
  if (decode)
    ascii85_decode(fp, delims, ignore_garbage);
  else
    ascii85_encode(fp, delims, wrap, y_abbr);
  fflush(stdout);
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
movl   $0x4c,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    0x2dad(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
lea    0xeab(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    -0x120(%rbp),%rdi
lea    0xea1(%rip),%rax
mov    %rax,-0x120(%rbp)
mov    0x2d47(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x118(%rbp)
movq   $0x0,-0x110(%rbp)
movl   $0x64,-0x108(%rbp)
add    $0x20,%rdi
lea    0xe72(%rip),%rax
mov    %rax,-0x100(%rbp)
mov    0x2d11(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xf8(%rbp)
movq   $0x0,-0xf0(%rbp)
movl   $0x69,-0xe8(%rbp)
add    $0x20,%rdi
lea    0xe4b(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0x2cdb(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xd8(%rbp)
movq   $0x0,-0xd0(%rbp)
movl   $0x6e,-0xc8(%rbp)
add    $0x20,%rdi
lea    0xe1f(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0x2cc5(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xb8(%rbp)
movq   $0x0,-0xb0(%rbp)
movl   $0x77,-0xa8(%rbp)
add    $0x20,%rdi
lea    0xdee(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0x2c6f(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x98(%rbp)
movq   $0x0,-0x90(%rbp)
movl   $0x79,-0x88(%rbp)
add    $0x20,%rdi
lea    0xdbf(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0x2c3c(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x78(%rbp)
movq   $0x0,-0x70(%rbp)
movl   $0x68,-0x68(%rbp)
add    $0x20,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1090 <memset@plt>
mov    0x2c11(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x58(%rbp)
mov    0x2bfd(%rip),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    -0x120(%rbp),%rcx
lea    -0x18(%rbp),%r8
call   1050 <getopt_long@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     1507 <main+0x317>
mov    -0x14(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x128(%rbp)
sub    $0x3a,%eax
ja     14fd <main+0x30d>
mov    -0x128(%rbp),%rax
lea    0xc09(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1,-0x1c(%rbp)
jmp    1502 <main+0x312>
movl   $0x1,-0x20(%rbp)
jmp    1502 <main+0x312>
movl   $0x0,-0x24(%rbp)
jmp    1502 <main+0x312>
mov    0x2bcd(%rip),%rax
mov    (%rax),%edi
lea    0xcf1(%rip),%rsi
lea    -0x28(%rbp),%rdx
call   10e0 <sscanf@plt>
jmp    1502 <main+0x312>
movl   $0x1,-0x2c(%rbp)
jmp    1502 <main+0x312>
lea    0xcd3(%rip),%rdi
call   1080 <printf@plt>
xor    %edi,%edi
call   1100 <exit@plt>
mov    0x2b50(%rip),%rax
mov    (%rax),%edi
lea    0x1079(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2b59(%rip),%rax
mov    (%rax),%esi
lea    0x106c(%rip),%rdi
call   1070 <strchr@plt>
cmp    $0x0,%rax
je     14bc <main+0x2cc>
mov    0x2b1a(%rip),%rax
mov    (%rax),%edi
mov    0x2b31(%rip),%rax
mov    (%rax),%edx
lea    0x1046(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
jmp    14dc <main+0x2ec>
mov    0x2af5(%rip),%rax
mov    (%rax),%edi
mov    0x2b0c(%rip),%rax
mov    (%rax),%edx
lea    0x1044(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2ad5(%rip),%rax
mov    (%rax),%edi
lea    0x1043(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
jmp    1502 <main+0x312>
jmp    13aa <main+0x1ba>
mov    0x2ac2(%rip),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    15d6 <main+0x3e6>
mov    -0x10(%rbp),%rax
mov    0x2aa7(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x1044(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
je     15d6 <main+0x3e6>
mov    -0x10(%rbp),%rax
mov    0x2a7f(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x101e(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    15d1 <main+0x3e1>
mov    0x2a3e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x134(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2a43(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x130(%rbp)
mov    0x2a0e(%rip),%rax
mov    (%rax),%edi
call   1110 <strerror@plt>
mov    -0x134(%rbp),%edi
mov    -0x130(%rbp),%rdx
mov    %rax,%rcx
lea    0xfc0(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
jmp    1625 <main+0x435>
mov    0x29f3(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jle    1620 <main+0x430>
mov    0x29c9(%rip),%rax
mov    (%rax),%edi
lea    0xf99(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x29b2(%rip),%rax
mov    (%rax),%edi
lea    0xf20(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
jmp    1625 <main+0x435>
mov    -0x38(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1060 <setbuf@plt>
cmpl   $0x1,-0x28(%rbp)
jge    1643 <main+0x453>
movl   $0x0,-0x28(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1661 <main+0x471>
mov    -0x38(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
call   10a0 <ascii85_decode@plt>
jmp    1673 <main+0x483>
mov    -0x38(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
mov    -0x2c(%rbp),%ecx
call   1030 <ascii85_encode@plt>
mov    0x291e(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x4c,0x10(%rsp)
mov    0x2ddb(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x20(%rsp)
lea    0xee0(%rip),%rax
mov    %rax,0x30(%rsp)
mov    0x2d88(%rip),%rax
mov    (%rax),%al
mov    %al,0x38(%rsp)
movq   $0x0,0x40(%rsp)
movl   $0x64,0x48(%rsp)
lea    0xebd(%rip),%rcx
mov    %rcx,0x50(%rsp)
mov    %al,0x58(%rsp)
movq   $0x0,0x60(%rsp)
movl   $0x69,0x68(%rsp)
lea    0xeab(%rip),%rcx
mov    %rcx,0x70(%rsp)
mov    %al,0x78(%rsp)
movq   $0x0,0x80(%rsp)
movl   $0x6e,0x88(%rsp)
lea    0xe8e(%rip),%rcx
mov    %rcx,0x90(%rsp)
mov    0x2d33(%rip),%rcx
mov    (%rcx),%cl
mov    %cl,0x98(%rsp)
movq   $0x0,0xa0(%rsp)
movl   $0x77,0xa8(%rsp)
lea    0xe5d(%rip),%rcx
mov    %rcx,0xb0(%rsp)
mov    %al,0xb8(%rsp)
movq   $0x0,0xc0(%rsp)
movl   $0x79,0xc8(%rsp)
lea    0xe37(%rip),%rcx
mov    %rcx,0xd0(%rsp)
mov    %al,0xd8(%rsp)
movq   $0x0,0xe0(%rsp)
movl   $0x68,0xe8(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0x100(%rsp)
mov    %al,0xf8(%rsp)
mov    0x2c70(%rip),%rax
movq   $0x0,(%rax)
movl   $0x1,0xc(%rsp)
movl   $0x0,0x14(%rsp)
lea    0xd9e(%rip),%r12
lea    0x30(%rsp),%r14
lea    0x2c(%rsp),%r13
lea    0xca1(%rip),%r15
movl   $0x0,0x18(%rsp)
movl   $0x0,0x1c(%rsp)
jmp    1385 <main+0x1a5>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xffffffff,%eax
je     13ed <main+0x20d>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %r13,%r8
call   1060 <getopt_long@plt>
lea    -0x3f(%rax),%ecx
cmp    $0x3a,%ecx
ja     1380 <main+0x1a0>
movslq (%r15,%rcx,4),%rax
add    %r15,%rax
jmp    *%rax
mov    0x2c48(%rip),%rax
mov    (%rax),%edi
lea    0xd6c(%rip),%rsi
lea    0x10(%rsp),%rdx
call   10d0 <sscanf@plt>
jmp    1385 <main+0x1a5>
movl   $0x1,0x1c(%rsp)
jmp    1385 <main+0x1a5>
movl   $0x1,0x18(%rsp)
jmp    1385 <main+0x1a5>
movl   $0x0,0xc(%rsp)
jmp    1385 <main+0x1a5>
movl   $0x1,0x14(%rsp)
jmp    1385 <main+0x1a5>
mov    0x2bdc(%rip),%r14
mov    (%r14),%ecx
lea    -0x1(%rbp),%eax
cmp    %eax,%ecx
jne    1472 <main+0x292>
movslq %ecx,%rax
mov    (%rbx,%rax,8),%rdi
lea    0xdad(%rip),%rsi
call   10a0 <strcmp@plt>
mov    (%r14),%ecx
test   %rax,%rax
je     1472 <main+0x292>
movslq %ecx,%rax
mov    (%rbx,%rax,8),%rdi
lea    0xd94(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    147f <main+0x29f>
mov    0x2b7d(%rip),%rax
mov    (%rax),%ebp
movslq (%r14),%rax
mov    (%rbx,%rax,8),%rbx
mov    0x2b65(%rip),%rax
mov    (%rax),%edi
call   1100 <strerror@plt>
lea    0xd65(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
cmp    %ebp,%ecx
mov    0x20(%rsp),%rbp
jg     1570 <main+0x390>
mov    %rbp,%rdi
xor    %esi,%esi
call   1070 <setbuf@plt>
mov    0x10(%rsp),%edx
test   %edx,%edx
jle    14aa <main+0x2ca>
cmpl   $0x0,0x1c(%rsp)
je     14bb <main+0x2db>
mov    %rbp,%rdi
mov    0xc(%rsp),%esi
mov    0x18(%rsp),%edx
call   1090 <ascii85_decode@plt>
jmp    14cb <main+0x2eb>
movl   $0x0,0x10(%rsp)
xor    %edx,%edx
cmpl   $0x0,0x1c(%rsp)
jne    1498 <main+0x2b8>
mov    %rbp,%rdi
mov    0xc(%rsp),%esi
mov    0x14(%rsp),%ecx
call   1030 <ascii85_encode@plt>
mov    0x2ac6(%rip),%rax
mov    (%rax),%edi
call   10c0 <fflush@plt>
mov    %rbp,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2abc(%rip),%rbx
mov    (%rbx),%edi
lea    0xc23(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    0x2ac5(%rip),%rbp
mov    0x0(%rbp),%esi
lea    0xc15(%rip),%rdi
call   1080 <strchr@plt>
test   %rax,%rax
mov    (%rbx),%edi
mov    0x0(%rbp),%edx
lea    0xc26(%rip),%rax
lea    0xbfc(%rip),%rsi
cmove  %rax,%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc21(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0xc9e(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    0x2a41(%rip),%rbx
mov    (%rbx),%edi
lea    0xc4f(%rip),%rsi
xor    %eax,%eax
call   10b0 <fprintf@plt>
jmp    1543 <main+0x363>

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32*, i32 }
@stdin = global i32* null
@.str = [8 x i8] c"dinw:yh\00"
@.str.1 = [7 x i8] c"decode\00"
@no_argument = global i32 0
@.str.2 = [15 x i8] c"ignore-garbage\00"
@.str.3 = [10 x i8] c"no-delims\00"
@.str.4 = [5 x i8] c"wrap\00"
@required_argument = global i32 0
@.str.5 = [7 x i8] c"y-abbr\00"
@.str.6 = [5 x i8] c"help\00"
@opterr = global i64 0
@optarg = global i32 0
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [962 x i8] c"NAME\0A\09ascii85 - Ascii85 encode/decode data and print to standard output\0A\0ASYNOPSIS\0A\09ascii85 [OPTION]... [FILE]\0A\0ADESCRIPTION\0A\09Ascii85 encode or decode FILE, or standard input, to standard output.\0A\0A\09-d, --decode\0A\09\09decode data (encodes by default)\0A\0A\09-i, --ignore-garbage\0A\09\09when decoding, ignore invalid characters\0A\0A\09-n, --no-delims\0A\09\09when encoding, omit delimiters (<~ and ~>), and when decoding,\0A\09\09do not look for delimiters\0A\0A\09-w, --wrap=COLS\0A\09\09wrap encoded lines after COLS characters (default 76). Use 0\0A\09\09to disable line wrapping.\0A\0A\09-y, --y-abbr\0A\09\09abbreviates four encoded spaces as 'y'\0A\0A\09-h, --help\0A\09\09display this help and exit\0A\0A\09With no FILE, or when FILE is -, read standard input.\0A\0AAUTHOR\0A\09Written by Remy Oukaour <remy.oukaour@gmail.com>.\0A\0ACOPYRIGHT\0A\09Copyright (C) 2012-2016 Remy Oukaour <http://www.remyoukaour.com>.\0A\09MIT License.\0A\09This is free software: you are free to change and redistribute it.\0A\09There is NO WARRANTY, to the extent permitted by law.\0A\00"
@stderr = global i32 0
@.str.9 = [10 x i8] c"ascii85: \00"
@.str.10 = [2 x i8] c"w\00"
@optopt = global i32 0
@.str.11 = [35 x i8] c"option '-%c' requires an argument\0A\00"
@.str.12 = [22 x i8] c"invalid option -- %c\0A\00"
@.str.13 = [76 x i8] c"usage: ascii85 [OPTION]... [FILE]\0AEnter 'ascii85 -h' for more information.\0A\00"
@optind = global i32 0
@.str.14 = [2 x i8] c"-\00"
@.str.15 = [3 x i8] c"rb\00"
@.str.16 = [17 x i8] c"ascii85: %s: %s\0A\00"
@errno = global i32 0
@.str.17 = [51 x i8] c"ascii85: too many operands or wrong operand order\0A\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i8*
%15 = alloca [7 x %struct.option]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 0, i32* %9
store i32 1, i32* %10
store i32 76, i32* %11
store i32 0, i32* %12
%16 = load i32*, i32** @stdin
store i32* %16, i32** %13
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %14
%17 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %15, i64 0, i64 0
%18 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 1
%20 = load i32, i32* @no_argument
%21 = trunc i32 %20 to i8
store i8 %21, i8* %19
%22 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 2
store i32* null, i32** %22
%23 = getelementptr inbounds %struct.option, %struct.option* %17, i32 0, i32 3
store i32 100, i32* %23
%24 = getelementptr inbounds %struct.option, %struct.option* %17, i64 1
%25 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 1
%27 = load i32, i32* @no_argument
%28 = trunc i32 %27 to i8
store i8 %28, i8* %26
%29 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 2
store i32* null, i32** %29
%30 = getelementptr inbounds %struct.option, %struct.option* %24, i32 0, i32 3
store i32 105, i32* %30
%31 = getelementptr inbounds %struct.option, %struct.option* %24, i64 1
%32 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8** %32
%33 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 1
%34 = load i32, i32* @no_argument
%35 = trunc i32 %34 to i8
store i8 %35, i8* %33
%36 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 2
store i32* null, i32** %36
%37 = getelementptr inbounds %struct.option, %struct.option* %31, i32 0, i32 3
store i32 110, i32* %37
%38 = getelementptr inbounds %struct.option, %struct.option* %31, i64 1
%39 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %39
%40 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 1
%41 = load i32, i32* @required_argument
%42 = trunc i32 %41 to i8
store i8 %42, i8* %40
%43 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 2
store i32* null, i32** %43
%44 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 3
store i32 119, i32* %44
%45 = getelementptr inbounds %struct.option, %struct.option* %38, i64 1
%46 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %46
%47 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 1
%48 = load i32, i32* @no_argument
%49 = trunc i32 %48 to i8
store i8 %49, i8* %47
%50 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 2
store i32* null, i32** %50
%51 = getelementptr inbounds %struct.option, %struct.option* %45, i32 0, i32 3
store i32 121, i32* %51
%52 = getelementptr inbounds %struct.option, %struct.option* %45, i64 1
%53 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %53
%54 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 1
%55 = load i32, i32* @no_argument
%56 = trunc i32 %55 to i8
store i8 %56, i8* %54
%57 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 2
store i32* null, i32** %57
%58 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 3
store i32 104, i32* %58
%59 = getelementptr inbounds %struct.option, %struct.option* %52, i64 1
%60 = bitcast %struct.option* %59 to i8*
%61 = getelementptr inbounds %struct.option, %struct.option* %59, i32 0, i32 1
%62 = load i32, i32* @no_argument
%63 = trunc i32 %62 to i8
store i8 %63, i8* %61
store i64 0, i64* @opterr
br label %64
64: ; preds = %102, %2
%65 = load i32, i32* %4
%66 = load i8**, i8*** %5
%67 = load i8*, i8** %14
%68 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %15, i64 0, i64 0
%69 = call i32 @getopt_long(i32 %65, i8** %66, i8* %67, %struct.option* %68, i32* %7)
store i32 %69, i32* %6
%70 = icmp ne i32 %69, -1
br i1 %70, label %71, label %103
71: ; preds = %64
%72 = load i32, i32* %6
switch i32 %72, label %101 [
i32 100, label %73
i32 105, label %74
i32 110, label %75
i32 119, label %76
i32 121, label %79
i32 104, label %80
i32 63, label %83
]
73: ; preds = %71
store i32 1, i32* %8
br label %102
74: ; preds = %71
store i32 1, i32* %9
br label %102
75: ; preds = %71
store i32 0, i32* %10
br label %102
76: ; preds = %71
%77 = load i32, i32* @optarg
%78 = call i32 @sscanf(i32 %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %11)
br label %102
79: ; preds = %71
store i32 1, i32* %12
br label %102
80: ; preds = %71
%81 = call i32 @printf(i8* getelementptr inbounds ([962 x i8], [962 x i8]* @.str.8, i64 0, i64 0))
%82 = call i32 @exit(i32 0)
unreachable
83: ; preds = %71
%84 = load i32, i32* @stderr
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%86 = load i32, i32* @optopt
%87 = call i32* @strchr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i32 %86)
%88 = icmp ne i32* %87, null
br i1 %88, label %89, label %93
89: ; preds = %83
%90 = load i32, i32* @stderr
%91 = load i32, i32* @optopt
%92 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i32 %91)
br label %97
93: ; preds = %83
%94 = load i32, i32* @stderr
%95 = load i32, i32* @optopt
%96 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i32 %95)
br label %97
97: ; preds = %93, %89
%98 = load i32, i32* @stderr
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%100 = call i32 @exit(i32 1)
unreachable
101: ; preds = %71
br label %102
102: ; preds = %101, %79, %76, %75, %74, %73
br label %64
103: ; preds = %64
%104 = load i32, i32* @optind
%105 = load i32, i32* %4
%106 = sub nsw i32 %105, 1
%107 = icmp eq i32 %104, %106
br i1 %107, label %108, label %137
108: ; preds = %103
%109 = load i8**, i8*** %5
%110 = load i32, i32* @optind
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8*, i8** %109, i64 %111
%113 = load i8*, i8** %112
%114 = call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%115 = icmp ne i64 %114, 0
br i1 %115, label %116, label %137
116: ; preds = %108
%117 = load i8**, i8*** %5
%118 = load i32, i32* @optind
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8*, i8** %117, i64 %119
%121 = load i8*, i8** %120
%122 = call i32* @fopen(i8* %121, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
store i32* %122, i32** %13
%123 = load i32*, i32** %13
%124 = icmp eq i32* %123, null
br i1 %124, label %125, label %136
125: ; preds = %116
%126 = load i32, i32* @stderr
%127 = load i8**, i8*** %5
%128 = load i32, i32* @optind
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8*, i8** %127, i64 %129
%131 = load i8*, i8** %130
%132 = load i32, i32* @errno
%133 = call i8* @strerror(i32 %132)
%134 = call i32 (i32, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), i8* %131, i8* %133)
%135 = call i32 @exit(i32 1)
unreachable
136: ; preds = %116
br label %148
137: ; preds = %108, %103
%138 = load i32, i32* @optind
%139 = load i32, i32* %4
%140 = icmp sgt i32 %138, %139
br i1 %140, label %141, label %147
141: ; preds = %137
%142 = load i32, i32* @stderr
%143 = call i32 (i32, i8*, ...) @fprintf(i32 %142, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.17, i64 0, i64 0))
%144 = load i32, i32* @stderr
%145 = call i32 (i32, i8*, ...) @fprintf(i32 %144, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%146 = call i32 @exit(i32 1)
unreachable
147: ; preds = %137
br label %148
148: ; preds = %147, %136
%149 = load i32*, i32** %13
%150 = call i32 @setbuf(i32* %149, i32* null)
%151 = load i32, i32* %11
%152 = icmp slt i32 %151, 1
br i1 %152, label %153, label %154
153: ; preds = %148
store i32 0, i32* %11
br label %154
154: ; preds = %153, %148
%155 = load i32, i32* %8
%156 = icmp ne i32 %155, 0
br i1 %156, label %157, label %162
157: ; preds = %154
%158 = load i32*, i32** %13
%159 = load i32, i32* %10
%160 = load i32, i32* %9
%161 = call i32 @ascii85_decode(i32* %158, i32 %159, i32 %160)
br label %168
162: ; preds = %154
%163 = load i32*, i32** %13
%164 = load i32, i32* %10
%165 = load i32, i32* %11
%166 = load i32, i32* %12
%167 = call i32 @ascii85_encode(i32* %163, i32 %164, i32 %165, i32 %166)
br label %168
168: ; preds = %162, %157
%169 = load i32, i32* @stdout
%170 = call i32 @fflush(i32 %169)
%171 = load i32*, i32** %13
%172 = call i32 @fclose(i32* %171)
ret i32 0
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32*, i32 }
@stdin = global i32* null
@.str = [8 x i8] c"dinw:yh\00"
@.str.1 = [7 x i8] c"decode\00"
@no_argument = global i32 0
@.str.2 = [15 x i8] c"ignore-garbage\00"
@.str.3 = [10 x i8] c"no-delims\00"
@.str.4 = [5 x i8] c"wrap\00"
@required_argument = global i32 0
@.str.5 = [7 x i8] c"y-abbr\00"
@.str.6 = [5 x i8] c"help\00"
@opterr = global i64 0
@optarg = global i32 0
@.str.7 = [3 x i8] c"%d\00"
@stderr = global i32 0
@.str.9 = [10 x i8] c"ascii85: \00"
@.str.10 = [2 x i8] c"w\00"
@optopt = global i32 0
@.str.11 = [35 x i8] c"option '-%c' requires an argument\0A\00"
@.str.12 = [22 x i8] c"invalid option -- %c\0A\00"
@.str.13 = [76 x i8] c"usage: ascii85 [OPTION]... [FILE]\0AEnter 'ascii85 -h' for more information.\0A\00"
@optind = global i32 0
@.str.14 = [2 x i8] c"-\00"
@.str.15 = [3 x i8] c"rb\00"
@.str.16 = [17 x i8] c"ascii85: %s: %s\0A\00"
@errno = global i32 0
@.str.17 = [51 x i8] c"ascii85: too many operands or wrong operand order\0A\00"
@stdout = global i32 0
@str = [961 x i8] c"NAME\0A\09ascii85 - Ascii85 encode/decode data and print to standard output\0A\0ASYNOPSIS\0A\09ascii85 [OPTION]... [FILE]\0A\0ADESCRIPTION\0A\09Ascii85 encode or decode FILE, or standard input, to standard output.\0A\0A\09-d, --decode\0A\09\09decode data (encodes by default)\0A\0A\09-i, --ignore-garbage\0A\09\09when decoding, ignore invalid characters\0A\0A\09-n, --no-delims\0A\09\09when encoding, omit delimiters (<~ and ~>), and when decoding,\0A\09\09do not look for delimiters\0A\0A\09-w, --wrap=COLS\0A\09\09wrap encoded lines after COLS characters (default 76). Use 0\0A\09\09to disable line wrapping.\0A\0A\09-y, --y-abbr\0A\09\09abbreviates four encoded spaces as 'y'\0A\0A\09-h, --help\0A\09\09display this help and exit\0A\0A\09With no FILE, or when FILE is -, read standard input.\0A\0AAUTHOR\0A\09Written by Remy Oukaour <remy.oukaour@gmail.com>.\0A\0ACOPYRIGHT\0A\09Copyright (C) 2012-2016 Remy Oukaour <http://www.remyoukaour.com>.\0A\09MIT License.\0A\09This is free software: you are free to change and redistribute it.\0A\09There is NO WARRANTY, to the extent permitted by law.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [7 x %struct.option]
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
store i32 76, i32* %4
%8 = load i32*, i32** @stdin
%9 = bitcast [7 x %struct.option]* %5 to i8*
%10 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 0
%11 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 0, i32 1
%13 = load i32, i32* @no_argument
%14 = trunc i32 %13 to i8
store i8 %14, i8* %12
%15 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 0, i32 2
store i32* null, i32** %15
%16 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 0, i32 3
store i32 100, i32* %16
%17 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 1, i32 1
store i8 %14, i8* %18
%19 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 1, i32 2
store i32* null, i32** %19
%20 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 1, i32 3
store i32 105, i32* %20
%21 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 2, i32 1
store i8 %14, i8* %22
%23 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 2, i32 2
store i32* null, i32** %23
%24 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 2, i32 3
store i32 110, i32* %24
%25 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 3, i32 1
%27 = load i32, i32* @required_argument
%28 = trunc i32 %27 to i8
store i8 %28, i8* %26
%29 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 3, i32 2
store i32* null, i32** %29
%30 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 3, i32 3
store i32 119, i32* %30
%31 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 4, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %31
%32 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 4, i32 1
store i8 %14, i8* %32
%33 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 4, i32 2
store i32* null, i32** %33
%34 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 4, i32 3
store i32 121, i32* %34
%35 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 5, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %35
%36 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 5, i32 1
store i8 %14, i8* %36
%37 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 5, i32 2
store i32* null, i32** %37
%38 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 5, i32 3
store i32 104, i32* %38
%39 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 6
%40 = bitcast %struct.option* %39 to i8*
%41 = getelementptr inbounds [7 x %struct.option], [7 x %struct.option]* %5, i64 0, i64 6, i32 1
store i8 %14, i8* %41
store i64 0, i64* @opterr
br label %42
42: ; preds = %56, %2
%43 = phi i32 [ 0, %2 ], [ 1, %56 ]
%44 = phi i32 [ 1, %2 ], [ %48, %56 ]
%45 = phi i32 [ 0, %2 ], [ %52, %56 ]
%46 = phi i32 [ 0, %2 ], [ %55, %56 ]
br label %47
47: ; preds = %56, %42
%48 = phi i32 [ %44, %42 ], [ 0, %56 ]
%49 = phi i32 [ %45, %42 ], [ %52, %56 ]
%50 = phi i32 [ %46, %42 ], [ %55, %56 ]
br label %51
51: ; preds = %56, %47
%52 = phi i32 [ %49, %47 ], [ 1, %56 ]
%53 = phi i32 [ %50, %47 ], [ %55, %56 ]
br label %54
54: ; preds = %56, %51
%55 = phi i32 [ %53, %51 ], [ 1, %56 ]
br label %56
56: ; preds = %58, %54
%57 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %struct.option* %10, i32* %3)
switch i32 %57, label %58 [
i32 -1, label %78
i32 100, label %54
i32 105, label %42
i32 110, label %47
i32 119, label %59
i32 121, label %51
i32 104, label %62
i32 63, label %65
]
58: ; preds = %56, %59
br label %56
59: ; preds = %56
%60 = load i32, i32* @optarg
%61 = call i32 @sscanf(i32 %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %4)
br label %58
62: ; preds = %56
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([961 x i8], [961 x i8]* @str, i64 0, i64 0))
%64 = call i32 @exit(i32 0)
unreachable
65: ; preds = %56
%66 = load i32, i32* @stderr
%67 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%68 = load i32, i32* @optopt
%69 = call i32* @strchr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i32 %68)
%70 = icmp eq i32* %69, null
%71 = load i32, i32* @stderr
%72 = load i32, i32* @optopt
%73 = select i1 %70, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0)
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* %73, i32 %72)
%75 = load i32, i32* @stderr
%76 = call i32 (i32, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%77 = call i32 @exit(i32 1)
unreachable
78: ; preds = %56
%79 = load i32, i32* @optind
%80 = add nsw i32 %0, -1
%81 = icmp eq i32 %79, %80
br i1 %81, label %82, label %105
82: ; preds = %78
%83 = sext i32 %79 to i64
%84 = getelementptr inbounds i8*, i8** %1, i64 %83
%85 = load i8*, i8** %84
%86 = call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
%88 = load i32, i32* @optind
br i1 %87, label %105, label %89
89: ; preds = %82
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds i8*, i8** %1, i64 %90
%92 = load i8*, i8** %91
%93 = call i32* @fopen(i8* %92, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%94 = icmp eq i32* %93, null
br i1 %94, label %95, label %114
95: ; preds = %89
%96 = load i32, i32* @stderr
%97 = load i32, i32* @optind
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8*, i8** %1, i64 %98
%100 = load i8*, i8** %99
%101 = load i32, i32* @errno
%102 = call i8* @strerror(i32 %101)
%103 = call i32 (i32, i8*, ...) @fprintf(i32 %96, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), i8* %100, i8* %102)
%104 = call i32 @exit(i32 1)
unreachable
105: ; preds = %82, %78
%106 = phi i32 [ %79, %78 ], [ %88, %82 ]
%107 = icmp sgt i32 %106, %0
br i1 %107, label %108, label %114
108: ; preds = %105
%109 = load i32, i32* @stderr
%110 = call i32 (i32, i8*, ...) @fprintf(i32 %109, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.17, i64 0, i64 0))
%111 = load i32, i32* @stderr
%112 = call i32 (i32, i8*, ...) @fprintf(i32 %111, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%113 = call i32 @exit(i32 1)
unreachable
114: ; preds = %105, %89
%115 = phi i32* [ %93, %89 ], [ %8, %105 ]
%116 = call i32 @setbuf(i32* %115, i32* null)
%117 = load i32, i32* %4
%118 = icmp slt i32 %117, 1
br i1 %118, label %119, label %120
119: ; preds = %114
store i32 0, i32* %4
br label %120
120: ; preds = %119, %114
%121 = phi i32 [ 0, %119 ], [ %117, %114 ]
%122 = icmp eq i32 %55, 0
br i1 %122, label %125, label %123
123: ; preds = %120
%124 = call i32 @ascii85_decode(i32* %115, i32 %48, i32 %43)
br label %127
125: ; preds = %120
%126 = call i32 @ascii85_encode(i32* %115, i32 %48, i32 %121, i32 %52)
br label %127
127: ; preds = %125, %123
%128 = load i32, i32* @stdout
%129 = call i32 @fflush(i32 %128)
%130 = call i32 @fclose(i32* %115)
ret i32 0
}