#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*/ printf(char *);
int /*<<< orphan*/ required_argument;
int /*<<< orphan*/ sscanf(char *, 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[]) {
  extern char *optarg;
  extern int optind, optopt, opterr;
  int opt, long_optind, decode = 0, ignore_garbage = 0, delims = 0, 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"
          "\tascii85 - Ascii85 encode/decode data and print to standard "
          "output\n"
          "\n"
          "SYNOPSIS\n"
          "\tascii85 [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 <me@remyoukaour.com>.\n"
          "\n"
          "COPYRIGHT\n"
          "\tCopyright (C) 2011 Remy Oukaour. MIT 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);
  }
  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   $0x0,-0x24(%rbp)
movl   $0x4c,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    0x2dbd(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
lea    0xebb(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    -0x120(%rbp),%rdi
lea    0xeb1(%rip),%rax
mov    %rax,-0x120(%rbp)
mov    0x2d57(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x118(%rbp)
movq   $0x0,-0x110(%rbp)
movl   $0x64,-0x108(%rbp)
add    $0x20,%rdi
lea    0xe82(%rip),%rax
mov    %rax,-0x100(%rbp)
mov    0x2d21(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xf8(%rbp)
movq   $0x0,-0xf0(%rbp)
movl   $0x69,-0xe8(%rbp)
add    $0x20,%rdi
lea    0xe5b(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0x2ceb(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xd8(%rbp)
movq   $0x0,-0xd0(%rbp)
movl   $0x6e,-0xc8(%rbp)
add    $0x20,%rdi
lea    0xe2f(%rip),%rax
mov    %rax,-0xc0(%rbp)
mov    0x2cdd(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xb8(%rbp)
movq   $0x0,-0xb0(%rbp)
movl   $0x77,-0xa8(%rbp)
add    $0x20,%rdi
lea    0xdfe(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0x2c7f(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x98(%rbp)
movq   $0x0,-0x90(%rbp)
movl   $0x79,-0x88(%rbp)
add    $0x20,%rdi
lea    0xdcf(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0x2c4c(%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   1080 <memset@plt>
mov    0x2c21(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x58(%rbp)
mov    0x2c65(%rip),%rax
movl   $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     14f7 <main+0x317>
mov    -0x14(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x128(%rbp)
sub    $0x3a,%eax
ja     14ed <main+0x30d>
mov    -0x128(%rbp),%rax
lea    0xc1a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1,-0x1c(%rbp)
jmp    14f2 <main+0x312>
movl   $0x1,-0x20(%rbp)
jmp    14f2 <main+0x312>
movl   $0x0,-0x24(%rbp)
jmp    14f2 <main+0x312>
mov    0x2ba6(%rip),%rax
mov    (%rax),%rdi
lea    0xd01(%rip),%rsi
lea    -0x28(%rbp),%rdx
call   10d0 <sscanf@plt>
jmp    14f2 <main+0x312>
movl   $0x1,-0x2c(%rbp)
jmp    14f2 <main+0x312>
lea    0xce3(%rip),%rdi
call   1070 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    0x2b60(%rip),%rax
mov    (%rax),%edi
lea    0x1062(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x2b69(%rip),%rax
mov    (%rax),%esi
lea    0x1055(%rip),%rdi
call   1060 <strchr@plt>
cmp    $0x0,%rax
je     14ac <main+0x2cc>
mov    0x2b2a(%rip),%rax
mov    (%rax),%edi
mov    0x2b41(%rip),%rax
mov    (%rax),%edx
lea    0x102f(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
jmp    14cc <main+0x2ec>
mov    0x2b05(%rip),%rax
mov    (%rax),%edi
mov    0x2b1c(%rip),%rax
mov    (%rax),%edx
lea    0x102d(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x2ae5(%rip),%rax
mov    (%rax),%edi
lea    0x102c(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    14f2 <main+0x312>
jmp    1399 <main+0x1b9>
mov    0x2a9a(%rip),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    15c6 <main+0x3e6>
mov    -0x10(%rbp),%rax
mov    0x2a7f(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x102d(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     15c6 <main+0x3e6>
mov    -0x10(%rbp),%rax
mov    0x2a57(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x1007(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    15c1 <main+0x3e1>
mov    0x2a4e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x134(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2a1b(%rip),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x130(%rbp)
mov    0x2a1e(%rip),%rax
mov    (%rax),%edi
call   1100 <strerror@plt>
mov    -0x134(%rbp),%edi
mov    -0x130(%rbp),%rdx
mov    %rax,%rcx
lea    0xfa9(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    1615 <main+0x435>
mov    0x29cb(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jle    1610 <main+0x430>
mov    0x29d9(%rip),%rax
mov    (%rax),%edi
lea    0xf82(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    0x29c2(%rip),%rax
mov    (%rax),%edi
lea    0xf09(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    1615 <main+0x435>
cmpl   $0x1,-0x28(%rbp)
jge    1626 <main+0x446>
movl   $0x0,-0x28(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1644 <main+0x464>
mov    -0x38(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1090 <ascii85_decode@plt>
jmp    1656 <main+0x476>
mov    -0x38(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
mov    -0x2c(%rbp),%ecx
call   1030 <ascii85_encode@plt>
mov    0x2943(%rip),%rax
mov    (%rax),%edi
call   10c0 <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    $0x108,%rsp
mov    %rsi,%r15
mov    %edi,%ebx
movl   $0x4c,(%rsp)
mov    0x2dec(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x10(%rsp)
lea    0xef1(%rip),%rax
mov    %rax,0x20(%rsp)
mov    0x2d99(%rip),%rax
mov    (%rax),%al
mov    %al,0x28(%rsp)
movq   $0x0,0x30(%rsp)
movl   $0x64,0x38(%rsp)
lea    0xece(%rip),%rcx
mov    %rcx,0x40(%rsp)
mov    %al,0x48(%rsp)
movq   $0x0,0x50(%rsp)
movl   $0x69,0x58(%rsp)
lea    0xebc(%rip),%rcx
mov    %rcx,0x60(%rsp)
mov    %al,0x68(%rsp)
movq   $0x0,0x70(%rsp)
movl   $0x6e,0x78(%rsp)
lea    0xea5(%rip),%rcx
mov    %rcx,0x80(%rsp)
mov    0x2d52(%rip),%rcx
mov    (%rcx),%cl
mov    %cl,0x88(%rsp)
movq   $0x0,0x90(%rsp)
movl   $0x77,0x98(%rsp)
lea    0xe74(%rip),%rcx
mov    %rcx,0xa0(%rsp)
mov    %al,0xa8(%rsp)
movq   $0x0,0xb0(%rsp)
movl   $0x79,0xb8(%rsp)
lea    0xe4e(%rip),%rcx
mov    %rcx,0xc0(%rsp)
mov    %al,0xc8(%rsp)
movq   $0x0,0xd0(%rsp)
movl   $0x68,0xd8(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xf0(%rsp)
mov    %al,0xe8(%rsp)
mov    0x2cdf(%rip),%rax
movl   $0x0,(%rax)
movl   $0x0,0x4(%rsp)
lea    0xdbe(%rip),%rbp
lea    0x20(%rsp),%r14
lea    0x1c(%rsp),%r12
lea    0xcc1(%rip),%r13
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
jmp    1365 <main+0x195>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xffffffff,%eax
je     13c3 <main+0x1f3>
mov    %ebx,%edi
mov    %r15,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
mov    %r12,%r8
call   1060 <getopt_long@plt>
lea    -0x3f(%rax),%ecx
cmp    $0x3a,%ecx
ja     1360 <main+0x190>
movslq 0x0(%r13,%rcx,4),%rax
add    %r13,%rax
jmp    *%rax
mov    0x2c2f(%rip),%rax
mov    (%rax),%rdi
lea    0xd8a(%rip),%rsi
mov    %rsp,%rdx
call   10c0 <sscanf@plt>
jmp    1365 <main+0x195>
movl   $0x1,0xc(%rsp)
jmp    1365 <main+0x195>
movl   $0x1,0x8(%rsp)
jmp    1365 <main+0x195>
movl   $0x1,0x4(%rsp)
jmp    1365 <main+0x195>
mov    0x2bce(%rip),%rbp
mov    0x0(%rbp),%ecx
lea    -0x1(%rbx),%eax
cmp    %eax,%ecx
jne    1449 <main+0x279>
movslq %ecx,%rax
mov    (%r15,%rax,8),%rdi
lea    0xdd7(%rip),%rsi
call   1090 <strcmp@plt>
mov    0x0(%rbp),%ecx
test   %rax,%rax
je     1449 <main+0x279>
movslq %ecx,%rax
mov    (%r15,%rax,8),%rdi
lea    0xdbe(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1456 <main+0x286>
mov    0x2ba7(%rip),%rax
mov    (%rax),%ebx
movslq 0x0(%rbp),%rax
mov    (%r15,%rax,8),%rbp
mov    0x2b8e(%rip),%rax
mov    (%rax),%edi
call   10f0 <strerror@plt>
lea    0xd8e(%rip),%rsi
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmp    %ebx,%ecx
mov    0x10(%rsp),%rbx
jg     1537 <main+0x367>
mov    (%rsp),%edx
test   %edx,%edx
jle    1474 <main+0x2a4>
cmpl   $0x0,0xc(%rsp)
je     1484 <main+0x2b4>
mov    %rbx,%rdi
xor    %esi,%esi
mov    0x8(%rsp),%edx
call   1080 <ascii85_decode@plt>
jmp    1492 <main+0x2c2>
movl   $0x0,(%rsp)
xor    %edx,%edx
cmpl   $0x0,0xc(%rsp)
jne    1464 <main+0x294>
mov    %rbx,%rdi
xor    %esi,%esi
mov    0x4(%rsp),%ecx
call   1030 <ascii85_encode@plt>
mov    0x2b07(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2af5(%rip),%rbx
mov    (%rbx),%edi
lea    0xc5c(%rip),%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    0x2afe(%rip),%rbp
mov    0x0(%rbp),%esi
lea    0xc4e(%rip),%rdi
call   1070 <strchr@plt>
test   %rax,%rax
mov    (%rbx),%edi
mov    0x0(%rbp),%edx
lea    0xc5f(%rip),%rax
lea    0xc35(%rip),%rsi
cmove  %rax,%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xc5a(%rip),%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
lea    0xcd7(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
mov    0x2a7a(%rip),%rbx
mov    (%rbx),%edi
lea    0xc88(%rip),%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    150a <main+0x33a>

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 = external global i32
@optarg = external global i8*
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [923 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 <me@remyoukaour.com>.\0A\0ACOPYRIGHT\0A\09Copyright (C) 2011 Remy Oukaour. MIT 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 = external global i32
@.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 = external global i32
@.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 0, 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 i32 0, i32* @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 i8*, i8** @optarg
%78 = call i32 @sscanf(i8* %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 ([923 x i8], [923 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* %11
%150 = icmp slt i32 %149, 1
br i1 %150, label %151, label %152
151: ; preds = %148
store i32 0, i32* %11
br label %152
152: ; preds = %151, %148
%153 = load i32, i32* %8
%154 = icmp ne i32 %153, 0
br i1 %154, label %155, label %160
155: ; preds = %152
%156 = load i32*, i32** %13
%157 = load i32, i32* %10
%158 = load i32, i32* %9
%159 = call i32 @ascii85_decode(i32* %156, i32 %157, i32 %158)
br label %166
160: ; preds = %152
%161 = load i32*, i32** %13
%162 = load i32, i32* %10
%163 = load i32, i32* %11
%164 = load i32, i32* %12
%165 = call i32 @ascii85_encode(i32* %161, i32 %162, i32 %163, i32 %164)
br label %166
166: ; preds = %160, %155
%167 = load i32, i32* @stdout
%168 = call i32 @fflush(i32 %167)
%169 = load i32*, i32** %13
%170 = call i32 @fclose(i32* %169)
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 = external global i32
@optarg = external global i8*
@.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 = external global i32
@.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 = external global i32
@.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 = [922 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 <me@remyoukaour.com>.\0A\0ACOPYRIGHT\0A\09Copyright (C) 2011 Remy Oukaour. MIT 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 i32 0, i32* @opterr
br label %42
42: ; preds = %51, %2
%43 = phi i32 [ 0, %2 ], [ 1, %51 ]
%44 = phi i32 [ 0, %2 ], [ %47, %51 ]
%45 = phi i32 [ 0, %2 ], [ %50, %51 ]
br label %46
46: ; preds = %51, %42
%47 = phi i32 [ %44, %42 ], [ 1, %51 ]
%48 = phi i32 [ %45, %42 ], [ %50, %51 ]
br label %49
49: ; preds = %51, %46
%50 = phi i32 [ %48, %46 ], [ 1, %51 ]
br label %51
51: ; preds = %53, %49
%52 = 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 %52, label %53 [
i32 -1, label %73
i32 100, label %49
i32 105, label %42
i32 63, label %60
i32 119, label %54
i32 121, label %46
i32 104, label %57
]
53: ; preds = %51, %54
br label %51
54: ; preds = %51
%55 = load i8*, i8** @optarg
%56 = call i32 @sscanf(i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %4)
br label %53
57: ; preds = %51
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([922 x i8], [922 x i8]* @str, i64 0, i64 0))
%59 = call i32 @exit(i32 0)
unreachable
60: ; preds = %51
%61 = load i32, i32* @stderr
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%63 = load i32, i32* @optopt
%64 = call i32* @strchr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i32 %63)
%65 = icmp eq i32* %64, null
%66 = load i32, i32* @stderr
%67 = load i32, i32* @optopt
%68 = select i1 %65, 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)
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* %68, i32 %67)
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%72 = call i32 @exit(i32 1)
unreachable
73: ; preds = %51
%74 = load i32, i32* @optind
%75 = add nsw i32 %0, -1
%76 = icmp eq i32 %74, %75
br i1 %76, label %77, label %100
77: ; preds = %73
%78 = sext i32 %74 to i64
%79 = getelementptr inbounds i8*, i8** %1, i64 %78
%80 = load i8*, i8** %79
%81 = call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
%83 = load i32, i32* @optind
br i1 %82, label %100, label %84
84: ; preds = %77
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds i8*, i8** %1, i64 %85
%87 = load i8*, i8** %86
%88 = call i32* @fopen(i8* %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%89 = icmp eq i32* %88, null
br i1 %89, label %90, label %109
90: ; preds = %84
%91 = load i32, i32* @stderr
%92 = load i32, i32* @optind
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8*, i8** %1, i64 %93
%95 = load i8*, i8** %94
%96 = load i32, i32* @errno
%97 = call i8* @strerror(i32 %96)
%98 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), i8* %95, i8* %97)
%99 = call i32 @exit(i32 1)
unreachable
100: ; preds = %77, %73
%101 = phi i32 [ %74, %73 ], [ %83, %77 ]
%102 = icmp sgt i32 %101, %0
br i1 %102, label %103, label %109
103: ; preds = %100
%104 = load i32, i32* @stderr
%105 = call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.17, i64 0, i64 0))
%106 = load i32, i32* @stderr
%107 = call i32 (i32, i8*, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%108 = call i32 @exit(i32 1)
unreachable
109: ; preds = %100, %84
%110 = phi i32* [ %88, %84 ], [ %8, %100 ]
%111 = load i32, i32* %4
%112 = icmp slt i32 %111, 1
br i1 %112, label %113, label %114
113: ; preds = %109
store i32 0, i32* %4
br label %114
114: ; preds = %113, %109
%115 = phi i32 [ 0, %113 ], [ %111, %109 ]
%116 = icmp eq i32 %50, 0
br i1 %116, label %119, label %117
117: ; preds = %114
%118 = call i32 @ascii85_decode(i32* %110, i32 0, i32 %43)
br label %121
119: ; preds = %114
%120 = call i32 @ascii85_encode(i32* %110, i32 0, i32 %115, i32 %47)
br label %121
121: ; preds = %119, %117
%122 = load i32, i32* @stdout
%123 = call i32 @fflush(i32 %122)
%124 = call i32 @fclose(i32* %110)
ret i32 0
}