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

/* Variables and functions */
int /*<<< orphan*/ EISDIR;
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ R_OK;
int STDIN_FILENO;
int /*<<< orphan*/ STDOUT_FILENO;
scalar_t__ S_ISDIR(int /*<<< orphan*/);
int /*<<< orphan*/ abort();
scalar_t__ access(char *, int /*<<< orphan*/);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt_long(int, char **, char *, struct option *, int /*<<< orphan*/ *);
int /*<<< orphan*/ no_argument;
int open(char *, int /*<<< orphan*/);
int optind;
int read(int, char *, int);
scalar_t__ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
char *strerror(int /*<<< orphan*/);
int write(int /*<<< orphan*/, char *, int);
int main(int argc, char *argv[]) {
  int number_flag = 0;
  int show_ends_flag = 0;
  int c, i, nread, arg_ind;
  int file;
  int line_nbr;
  int do_print_line_nbr = 0;
  char *pgr_name;
  char *filename;
  int buf_len = 4;
  char buf[buf_len];
  char buf_c;
  struct stat file_stat;
  struct option options[] = {{"show-ends", no_argument, NULL, 'E'},
                             {"number", no_argument, NULL, 'n'},
                             {0, 0, 0, 0}};
  pgr_name = argv[0];
  while ((c = getopt_long(argc, argv, "En", options, NULL)) != -1) {
    switch (c) {
    case 'E':
      show_ends_flag = 1;
      break;
    case 'n':
      number_flag = 1;
      break;
    default:
      abort();
    }
  }
  if (argc == optind) {
    file = STDIN_FILENO;
    argc++;
  }
  line_nbr = 0;
  do_print_line_nbr = number_flag;
  for (arg_ind = optind; arg_ind < argc; arg_ind++) {
    if (file != STDIN_FILENO) {
      filename = argv[arg_ind];
      if (access(filename, R_OK)) {
        fprintf(stderr, "%s: %s: %s\n", pgr_name, filename, strerror(errno));
        return EXIT_FAILURE;
      }
      if (stat(filename, &file_stat)) {
        fprintf(stderr, "%s: %s: %s\n", pgr_name, filename, strerror(errno));
        return EXIT_FAILURE;
      }
      if (S_ISDIR(file_stat.st_mode)) {
        errno = EISDIR;
        fprintf(stderr, "%s: %s: %s\n", pgr_name, filename, strerror(errno));
        return EXIT_FAILURE;
      }
      file = open(filename, 0);
      if (file == -1) {
        fprintf(stderr, "%s: %s: %s\n", pgr_name, filename, strerror(errno));
        return EXIT_FAILURE;
      }
    }
    while ((nread = read(file, buf, buf_len))) {
      if (nread == -1) {
        fprintf(stderr, "%s: %s: %s\n", pgr_name, filename, strerror(errno));
        return EXIT_FAILURE;
      }
      for (i = 0; i < nread; i++) {
        if (number_flag && do_print_line_nbr) {
          fprintf(stdout, "%6d  ", ++line_nbr);
          fflush(stdout);
        }
        do_print_line_nbr = buf[i] == '\n';
        if (show_ends_flag && buf[i] == '\n') {
          buf_c = '$';
          if (write(STDOUT_FILENO, &buf_c, sizeof(char)) == -1) {
            fprintf(stderr, "%s: %s: %s\n", pgr_name, filename,
                    strerror(errno));
            return EXIT_FAILURE;
          }
        }
        if (write(STDOUT_FILENO, &buf[i], sizeof(char)) == -1) {
          fprintf(stderr, "%s: %s: %s\n", pgr_name, filename, strerror(errno));
          return EXIT_FAILURE;
        }
      }
    }
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x4,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xe0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x60(%rbp)
lea    -0xd0(%rbp),%rdi
lea    0xdd4(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0x2d7e(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xc8(%rbp)
movq   $0x0,-0xc0(%rbp)
movl   $0x45,-0xb8(%rbp)
add    $0x20,%rdi
lea    0xda8(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0x2d48(%rip),%rax
mov    (%rax),%eax
mov    %al,-0xa8(%rbp)
movq   $0x0,-0xa0(%rbp)
movl   $0x6e,-0x98(%rbp)
add    $0x20,%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1070 <memset@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0xd0(%rbp),%rcx
lea    0xd54(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1050 <getopt_long@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0xffffffff,%eax
je     1322 <main+0x162>
mov    -0x1c(%rbp),%eax
mov    %eax,-0xe4(%rbp)
sub    $0x45,%eax
je     12fe <main+0x13e>
jmp    12ea <main+0x12a>
mov    -0xe4(%rbp),%eax
sub    $0x6e,%eax
je     130a <main+0x14a>
jmp    1316 <main+0x156>
movl   $0x1,-0x18(%rbp)
jmp    131d <main+0x15d>
movl   $0x1,-0x14(%rbp)
jmp    131d <main+0x15d>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    12a8 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    0x2cac(%rip),%rcx
cmp    (%rcx),%eax
jne    1349 <main+0x189>
mov    0x2c55(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    0x2c7b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1868 <main+0x6a8>
mov    -0x2c(%rbp),%eax
mov    0x2c18(%rip),%rcx
cmp    (%rcx),%eax
je     15d0 <main+0x410>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
mov    0x2c05(%rip),%rax
mov    (%rax),%esi
call   10d0 <access@plt>
cmp    $0x0,%rax
je     141f <main+0x25f>
mov    0x2c15(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xfc(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0xf8(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    0x2be8(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0xfc(%rbp),%edi
mov    -0xf8(%rbp),%rdx
mov    -0xf0(%rbp),%rcx
mov    %rax,%r8
lea    0xc17(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2ba5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
jmp    187e <main+0x6be>
mov    -0x48(%rbp),%rdi
lea    -0x68(%rbp),%rsi
call   10a0 <stat@plt>
cmp    $0x0,%rax
je     14a9 <main+0x2e9>
mov    0x2b8b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x114(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x108(%rbp)
mov    0x2b5e(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x114(%rbp),%edi
mov    -0x110(%rbp),%rdx
mov    -0x108(%rbp),%rcx
mov    %rax,%r8
lea    0xb8d(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2b1b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
jmp    187e <main+0x6be>
mov    -0x68(%rbp),%edi
call   1060 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1540 <main+0x380>
mov    0x2b1e(%rip),%rax
mov    (%rax),%ecx
mov    0x2af5(%rip),%rax
mov    %ecx,(%rax)
mov    0x2af4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x12c(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x128(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    0x2ac7(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x12c(%rbp),%edi
mov    -0x128(%rbp),%rdx
mov    -0x120(%rbp),%rcx
mov    %rax,%r8
lea    0xaf6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2a84(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
jmp    187e <main+0x6be>
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
call   10c0 <open@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0xffffffff,-0x2c(%rbp)
jne    15cb <main+0x40b>
mov    0x2a69(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x144(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x140(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x138(%rbp)
mov    0x2a3c(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x144(%rbp),%edi
mov    -0x140(%rbp),%rdx
mov    -0x138(%rbp),%rcx
mov    %rax,%r8
lea    0xa6b(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x29f9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
jmp    187e <main+0x6be>
jmp    15d0 <main+0x410>
jmp    15d5 <main+0x415>
mov    -0xe0(%rbp),%rsi
mov    -0x2c(%rbp),%edi
mov    -0x4c(%rbp),%edx
call   1080 <read@plt>
mov    %eax,-0x24(%rbp)
cmp    $0x0,%eax
je     1855 <main+0x695>
cmpl   $0xffffffff,-0x24(%rbp)
jne    1670 <main+0x4b0>
mov    0x29c4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x15c(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x150(%rbp)
mov    0x2997(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x15c(%rbp),%edi
mov    -0x158(%rbp),%rdx
mov    -0x150(%rbp),%rcx
mov    %rax,%r8
lea    0x9c6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2954(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
jmp    187e <main+0x6be>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1850 <main+0x690>
cmpl   $0x0,-0x14(%rbp)
je     16c5 <main+0x505>
cmpl   $0x0,-0x34(%rbp)
je     16c5 <main+0x505>
mov    0x290a(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%edx
add    $0x1,%edx
mov    %edx,-0x30(%rbp)
lea    0x970(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x28ea(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
mov    -0xe0(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     17a0 <main+0x5e0>
mov    -0xe0(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    17a0 <main+0x5e0>
movb   $0x24,-0x61(%rbp)
mov    0x28e1(%rip),%rax
mov    (%rax),%edi
lea    -0x61(%rbp),%rsi
mov    $0x1,%edx
call   1040 <write@plt>
cmp    $0xffffffff,%eax
jne    179b <main+0x5db>
mov    0x2899(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x174(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    0x286c(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x174(%rbp),%edi
mov    -0x170(%rbp),%rdx
mov    -0x168(%rbp),%rcx
mov    %rax,%r8
lea    0x89b(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2829(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
jmp    187e <main+0x6be>
jmp    17a0 <main+0x5e0>
mov    -0xe0(%rbp),%rsi
mov    0x2842(%rip),%rax
mov    (%rax),%edi
movslq -0x20(%rbp),%rax
add    %rax,%rsi
mov    $0x1,%edx
call   1040 <write@plt>
cmp    $0xffffffff,%eax
jne    183d <main+0x67d>
mov    0x27f7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18c(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x188(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x180(%rbp)
mov    0x27ca(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x18c(%rbp),%edi
mov    -0x188(%rbp),%rdx
mov    -0x180(%rbp),%rcx
mov    %rax,%r8
lea    0x7f9(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2787(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
jmp    187e <main+0x6be>
jmp    1842 <main+0x682>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1677 <main+0x4b7>
jmp    15d5 <main+0x415>
jmp    185a <main+0x69a>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1362 <main+0x1a2>
mov    0x2729(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
movl   $0x1,-0xd4(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rsi,%r15
mov    %edi,%ebp
lea    0xe33(%rip),%rax
mov    %rax,0x40(%rsp)
mov    0x2ddf(%rip),%rax
mov    (%rax),%al
mov    %al,0x48(%rsp)
movq   $0x0,0x50(%rsp)
movl   $0x45,0x58(%rsp)
lea    0xe13(%rip),%rcx
mov    %rcx,0x60(%rsp)
mov    %al,0x68(%rsp)
movq   $0x0,0x70(%rsp)
movl   $0x6e,0x78(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
mov    (%rsi),%rax
mov    %rax,0x8(%rsp)
xor    %r13d,%r13d
mov    $0x1,%al
mov    %eax,0x14(%rsp)
lea    0xdd5(%rip),%r14
lea    0x40(%rsp),%rbx
mov    %r13d,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ecx,%r13d
mov    %ebp,%edi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %r8d,%r8d
call   1050 <getopt_long@plt>
mov    $0x1,%ecx
cmp    $0x6e,%eax
je     1250 <main+0xa0>
cmp    $0xffffffff,%eax
je     1288 <main+0xd8>
cmp    $0x45,%eax
jne    14f3 <main+0x343>
movl   $0x0,0x14(%rsp)
jmp    1241 <main+0x91>
mov    0x2d49(%rip),%rax
movslq (%rax),%rdx
xor    %ecx,%ecx
cmp    %ebp,%edx
sete   %cl
add    %ebp,%ecx
mov    0x2cf6(%rip),%rax
cmp    %ecx,%edx
jge    14b6 <main+0x306>
mov    %ecx,0x28(%rsp)
mov    0x2cdb(%rip),%rax
mov    (%rax),%eax
mov    %r13d,%ebp
movl   $0x0,0x10(%rsp)
mov    %eax,%ebx
cmp    %eax,%ebx
mov    %eax,%ebx
je     1330 <main+0x180>
mov    %rdx,%r12
mov    (%r15,%rdx,8),%r14
mov    0x2cc8(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   10c0 <access@plt>
test   %rax,%rax
jne    1451 <main+0x2a1>
mov    %r14,%rdi
lea    0x20(%rsp),%rsi
call   1090 <stat@plt>
test   %rax,%rax
jne    1451 <main+0x2a1>
mov    0x20(%rsp),%edi
call   1060 <S_ISDIR@plt>
test   %rax,%rax
jne    14ca <main+0x31a>
mov    %r14,%rdi
xor    %esi,%esi
call   10b0 <open@plt>
cmp    $0xffffffff,%eax
je     1451 <main+0x2a1>
mov    %eax,%ebx
mov    %r14,0x18(%rsp)
mov    %r12,%rdx
mov    %rdx,0x38(%rsp)
mov    %ebx,0x2c(%rsp)
mov    0x18(%rsp),%r14
lea    0x30(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
mov    %r12,%rsi
mov    $0x4,%edx
call   1070 <read@plt>
cmp    $0xffffffff,%eax
je     1451 <main+0x2a1>
test   %eax,%eax
je     1430 <main+0x280>
jle    1350 <main+0x1a0>
mov    %eax,%r14d
cs nopw 0x0(%rax,%rax,1)
nop
test   %r13d,%r13d
je     13b2 <main+0x202>
test   %ebp,%ebp
je     13b2 <main+0x202>
mov    0x2c18(%rip),%rbx
mov    (%rbx),%edi
mov    0x10(%rsp),%edx
add    $0x1,%edx
lea    0xc80(%rip),%rsi
mov    %edx,0x10(%rsp)
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%edi
call   10a0 <fflush@plt>
xor    %ebp,%ebp
cmpb   $0xa,(%r12)
setne  %al
sete   %bl
or     0x14(%rsp),%al
test   $0x1,%al
jne    13ed <main+0x23d>
movb   $0x24,0x7(%rsp)
mov    0x2c1d(%rip),%rax
mov    (%rax),%edi
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   1040 <write@plt>
cmp    $0xffffffff,%eax
je     147b <main+0x2cb>
mov    0x2bfc(%rip),%rax
mov    (%rax),%edi
mov    %r12,%rsi
mov    $0x1,%edx
call   1040 <write@plt>
cmp    $0xffffffff,%eax
je     147b <main+0x2cb>
mov    %bl,%bpl
add    $0x1,%r12
add    $0xffffffffffffffff,%r14
mov    0x2c(%rsp),%ebx
jne    1380 <main+0x1d0>
jmp    1339 <main+0x189>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x38(%rsp),%rdx
add    $0x1,%rdx
cmp    %edx,0x28(%rsp)
je     14ea <main+0x33a>
mov    0x2b46(%rip),%rax
mov    (%rax),%eax
jmp    12c4 <main+0x114>
mov    0x2b70(%rip),%rax
mov    (%rax),%ebp
mov    0x2b5f(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xba5(%rip),%rsi
mov    %ebp,%edi
mov    0x8(%rsp),%rdx
mov    %r14,%rcx
jmp    14a5 <main+0x2f5>
mov    0x2b46(%rip),%rax
mov    (%rax),%ebp
mov    0x2b35(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xb7b(%rip),%rsi
mov    %ebp,%edi
mov    0x8(%rsp),%rdx
mov    0x18(%rsp),%rcx
mov    %rax,%r8
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x2afa(%rip),%rax
mov    (%rax),%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b0f(%rip),%rax
mov    (%rax),%edi
mov    0x2ae6(%rip),%rax
mov    %edi,(%rax)
mov    0x2ae5(%rip),%rax
mov    (%rax),%ebp
jmp    1463 <main+0x2b3>
mov    0x2aa7(%rip),%rax
jmp    14b6 <main+0x306>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
%struct.stat = type { i32 }
%struct.option = type { i8*, i8, i32*, i32 }
@.str = [10 x i8] c"show-ends\00"
@no_argument = global i32 0
@.str.1 = [7 x i8] c"number\00"
@.str.2 = [3 x i8] c"En\00"
@optind = global i32 0
@STDIN_FILENO = global i32 0
@R_OK = global i32 0
@stderr = global i32 0
@.str.3 = [12 x i8] c"%s: %s: %s\0A\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@EISDIR = global i32 0
@stdout = global i32 0
@.str.4 = [6 x i8] c"%6d \00"
@STDOUT_FILENO = global i32 0
@EXIT_SUCCESS = 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 i32
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i32
%18 = alloca i8*
%19 = alloca i64
%20 = alloca i8
%21 = alloca %struct.stat
%22 = alloca [3 x %struct.option]
%23 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %14
store i32 4, i32* %17
%24 = load i32, i32* %17
%25 = zext i32 %24 to i64
%26 = call i8* @llvm.stacksave()
store i8* %26, i8** %18
%27 = alloca i8, i64 %25
store i64 %25, i64* %19
%28 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %22, i64 0, i64 0
%29 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 1
%31 = load i32, i32* @no_argument
%32 = trunc i32 %31 to i8
store i8 %32, i8* %30
%33 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 2
store i32* null, i32** %33
%34 = getelementptr inbounds %struct.option, %struct.option* %28, i32 0, i32 3
store i32 69, i32* %34
%35 = getelementptr inbounds %struct.option, %struct.option* %28, i64 1
%36 = getelementptr inbounds %struct.option, %struct.option* %35, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %36
%37 = getelementptr inbounds %struct.option, %struct.option* %35, i32 0, i32 1
%38 = load i32, i32* @no_argument
%39 = trunc i32 %38 to i8
store i8 %39, i8* %37
%40 = getelementptr inbounds %struct.option, %struct.option* %35, i32 0, i32 2
store i32* null, i32** %40
%41 = getelementptr inbounds %struct.option, %struct.option* %35, i32 0, i32 3
store i32 110, i32* %41
%42 = getelementptr inbounds %struct.option, %struct.option* %35, i64 1
%43 = bitcast %struct.option* %42 to i8*
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 0
%46 = load i8*, i8** %45
store i8* %46, i8** %15
br label %47
47: ; preds = %59, %2
%48 = load i32, i32* %4
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %22, i64 0, i64 0
%51 = call i32 @getopt_long(i32 %48, i8** %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.option* %50, i32* null)
store i32 %51, i32* %8
%52 = icmp ne i32 %51, -1
br i1 %52, label %53, label %60
53: ; preds = %47
%54 = load i32, i32* %8
switch i32 %54, label %57 [
i32 69, label %55
i32 110, label %56
]
55: ; preds = %53
store i32 1, i32* %7
br label %59
56: ; preds = %53
store i32 1, i32* %6
br label %59
57: ; preds = %53
%58 = call i32 (...) @abort()
unreachable
59: ; preds = %56, %55
br label %47
60: ; preds = %47
%61 = load i32, i32* %4
%62 = load i32, i32* @optind
%63 = icmp eq i32 %61, %62
br i1 %63, label %64, label %68
64: ; preds = %60
%65 = load i32, i32* @STDIN_FILENO
store i32 %65, i32* %12
%66 = load i32, i32* %4
%67 = add nsw i32 %66, 1
store i32 %67, i32* %4
br label %68
68: ; preds = %64, %60
store i32 0, i32* %13
%69 = load i32, i32* %6
store i32 %69, i32* %14
%70 = load i32, i32* @optind
store i32 %70, i32* %11
br label %71
71: ; preds = %223, %68
%72 = load i32, i32* %11
%73 = load i32, i32* %4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %226
75: ; preds = %71
%76 = load i32, i32* %12
%77 = load i32, i32* @STDIN_FILENO
%78 = icmp ne i32 %76, %77
br i1 %78, label %79, label %137
79: ; preds = %75
%80 = load i8**, i8*** %5
%81 = load i32, i32* %11
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8*, i8** %80, i64 %82
%84 = load i8*, i8** %83
store i8* %84, i8** %16
%85 = load i8*, i8** %16
%86 = load i32, i32* @R_OK
%87 = call i64 @access(i8* %85, i32 %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %97
89: ; preds = %79
%90 = load i32, i32* @stderr
%91 = load i8*, i8** %15
%92 = load i8*, i8** %16
%93 = load i32, i32* @errno
%94 = call i8* @strerror(i32 %93)
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %91, i8* %92, i8* %94)
%96 = load i32, i32* @EXIT_FAILURE
store i32 %96, i32* %3
store i32 1, i32* %23
br label %228
97: ; preds = %79
%98 = load i8*, i8** %16
%99 = call i64 @stat(i8* %98, %struct.stat* %21)
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %109
101: ; preds = %97
%102 = load i32, i32* @stderr
%103 = load i8*, i8** %15
%104 = load i8*, i8** %16
%105 = load i32, i32* @errno
%106 = call i8* @strerror(i32 %105)
%107 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %103, i8* %104, i8* %106)
%108 = load i32, i32* @EXIT_FAILURE
store i32 %108, i32* %3
store i32 1, i32* %23
br label %228
109: ; preds = %97
%110 = getelementptr inbounds %struct.stat, %struct.stat* %21, i32 0, i32 0
%111 = load i32, i32* %110
%112 = call i64 @S_ISDIR(i32 %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %123
114: ; preds = %109
%115 = load i32, i32* @EISDIR
store i32 %115, i32* @errno
%116 = load i32, i32* @stderr
%117 = load i8*, i8** %15
%118 = load i8*, i8** %16
%119 = load i32, i32* @errno
%120 = call i8* @strerror(i32 %119)
%121 = call i32 (i32, i8*, ...) @fprintf(i32 %116, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %117, i8* %118, i8* %120)
%122 = load i32, i32* @EXIT_FAILURE
store i32 %122, i32* %3
store i32 1, i32* %23
br label %228
123: ; preds = %109
%124 = load i8*, i8** %16
%125 = call i32 @open(i8* %124, i32 0)
store i32 %125, i32* %12
%126 = load i32, i32* %12
%127 = icmp eq i32 %126, -1
br i1 %127, label %128, label %136
128: ; preds = %123
%129 = load i32, i32* @stderr
%130 = load i8*, i8** %15
%131 = load i8*, i8** %16
%132 = load i32, i32* @errno
%133 = call i8* @strerror(i32 %132)
%134 = call i32 (i32, i8*, ...) @fprintf(i32 %129, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %130, i8* %131, i8* %133)
%135 = load i32, i32* @EXIT_FAILURE
store i32 %135, i32* %3
store i32 1, i32* %23
br label %228
136: ; preds = %123
br label %137
137: ; preds = %136, %75
br label %138
138: ; preds = %221, %137
%139 = load i32, i32* %12
%140 = load i32, i32* %17
%141 = call i32 @read(i32 %139, i8* %27, i32 %140)
store i32 %141, i32* %10
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %222
143: ; preds = %138
%144 = load i32, i32* %10
%145 = icmp eq i32 %144, -1
br i1 %145, label %146, label %154
146: ; preds = %143
%147 = load i32, i32* @stderr
%148 = load i8*, i8** %15
%149 = load i8*, i8** %16
%150 = load i32, i32* @errno
%151 = call i8* @strerror(i32 %150)
%152 = call i32 (i32, i8*, ...) @fprintf(i32 %147, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %148, i8* %149, i8* %151)
%153 = load i32, i32* @EXIT_FAILURE
store i32 %153, i32* %3
store i32 1, i32* %23
br label %228
154: ; preds = %143
store i32 0, i32* %9
br label %155
155: ; preds = %218, %154
%156 = load i32, i32* %9
%157 = load i32, i32* %10
%158 = icmp slt i32 %156, %157
br i1 %158, label %159, label %221
159: ; preds = %155
%160 = load i32, i32* %6
%161 = icmp ne i32 %160, 0
br i1 %161, label %162, label %172
162: ; preds = %159
%163 = load i32, i32* %14
%164 = icmp ne i32 %163, 0
br i1 %164, label %165, label %172
165: ; preds = %162
%166 = load i32, i32* @stdout
%167 = load i32, i32* %13
%168 = add nsw i32 %167, 1
store i32 %168, i32* %13
%169 = call i32 (i32, i8*, ...) @fprintf(i32 %166, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %168)
%170 = load i32, i32* @stdout
%171 = call i32 @fflush(i32 %170)
br label %172
172: ; preds = %165, %162, %159
%173 = load i32, i32* %9
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8, i8* %27, i64 %174
%176 = load i8, i8* %175
%177 = sext i8 %176 to i32
%178 = icmp eq i32 %177, 10
%179 = zext i1 %178 to i32
store i32 %179, i32* %14
%180 = load i32, i32* %7
%181 = icmp ne i32 %180, 0
br i1 %181, label %182, label %202
182: ; preds = %172
%183 = load i32, i32* %9
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, i8* %27, i64 %184
%186 = load i8, i8* %185
%187 = sext i8 %186 to i32
%188 = icmp eq i32 %187, 10
br i1 %188, label %189, label %202
189: ; preds = %182
store i8 36, i8* %20
%190 = load i32, i32* @STDOUT_FILENO
%191 = call i32 @write(i32 %190, i8* %20, i32 1)
%192 = icmp eq i32 %191, -1
br i1 %192, label %193, label %201
193: ; preds = %189
%194 = load i32, i32* @stderr
%195 = load i8*, i8** %15
%196 = load i8*, i8** %16
%197 = load i32, i32* @errno
%198 = call i8* @strerror(i32 %197)
%199 = call i32 (i32, i8*, ...) @fprintf(i32 %194, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %195, i8* %196, i8* %198)
%200 = load i32, i32* @EXIT_FAILURE
store i32 %200, i32* %3
store i32 1, i32* %23
br label %228
201: ; preds = %189
br label %202
202: ; preds = %201, %182, %172
%203 = load i32, i32* @STDOUT_FILENO
%204 = load i32, i32* %9
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds i8, i8* %27, i64 %205
%207 = call i32 @write(i32 %203, i8* %206, i32 1)
%208 = icmp eq i32 %207, -1
br i1 %208, label %209, label %217
209: ; preds = %202
%210 = load i32, i32* @stderr
%211 = load i8*, i8** %15
%212 = load i8*, i8** %16
%213 = load i32, i32* @errno
%214 = call i8* @strerror(i32 %213)
%215 = call i32 (i32, i8*, ...) @fprintf(i32 %210, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %211, i8* %212, i8* %214)
%216 = load i32, i32* @EXIT_FAILURE
store i32 %216, i32* %3
store i32 1, i32* %23
br label %228
217: ; preds = %202
br label %218
218: ; preds = %217
%219 = load i32, i32* %9
%220 = add nsw i32 %219, 1
store i32 %220, i32* %9
br label %155
221: ; preds = %155
br label %138
222: ; preds = %138
br label %223
223: ; preds = %222
%224 = load i32, i32* %11
%225 = add nsw i32 %224, 1
store i32 %225, i32* %11
br label %71
226: ; preds = %71
%227 = load i32, i32* @EXIT_SUCCESS
store i32 %227, i32* %3
store i32 1, i32* %23
br label %228
228: ; preds = %226, %209, %193, %146, %128, %114, %101, %89
%229 = load i8*, i8** %18
%230 = load i32, i32* %3
ret i32 %230
}

LLVM IR (-O2):
%struct.stat = type { i32 }
%struct.option = type { i8*, i8, i32*, i32 }
@.str = [10 x i8] c"show-ends\00"
@no_argument = global i32 0
@.str.1 = [7 x i8] c"number\00"
@.str.2 = [3 x i8] c"En\00"
@optind = global i32 0
@STDIN_FILENO = global i32 0
@R_OK = global i32 0
@stderr = global i32 0
@.str.3 = [12 x i8] c"%s: %s: %s\0A\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@EISDIR = global i32 0
@stdout = global i32 0
@.str.4 = [6 x i8] c"%6d \00"
@STDOUT_FILENO = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i8
%4 = alloca %struct.stat
%5 = alloca [3 x %struct.option]
%6 = alloca [4 x i8]
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %6, i64 0, i64 0
%8 = bitcast %struct.stat* %4 to i8*
%9 = bitcast [3 x %struct.option]* %5 to i8*
%10 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 0
%11 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [3 x %struct.option], [3 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 [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 0, i32 2
store i32* null, i32** %15
%16 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 0, i32 3
store i32 69, i32* %16
%17 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 1, i32 1
store i8 %14, i8* %18
%19 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 1, i32 2
store i32* null, i32** %19
%20 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 1, i32 3
store i32 110, i32* %20
%21 = getelementptr inbounds [3 x %struct.option], [3 x %struct.option]* %5, i64 0, i64 2
%22 = bitcast %struct.option* %21 to i8*
%23 = load i8*, i8** %1
br label %24
24: ; preds = %27, %2
%25 = phi i1 [ true, %2 ], [ false, %27 ]
%26 = phi i32 [ 0, %2 ], [ %28, %27 ]
br label %27
27: ; preds = %27, %24
%28 = phi i32 [ %26, %24 ], [ 1, %27 ]
%29 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %struct.option* %10, i32* null)
switch i32 %29, label %30 [
i32 -1, label %32
i32 69, label %24
i32 110, label %27
]
30: ; preds = %27
%31 = call i32 (...) @abort()
unreachable
32: ; preds = %27
%33 = load i32, i32* @optind
%34 = icmp eq i32 %33, %0
%35 = zext i1 %34 to i32
%36 = add i32 %35, %0
%37 = icmp slt i32 %33, %36
br i1 %37, label %38, label %152
38: ; preds = %32
%39 = load i32, i32* @STDIN_FILENO
%40 = select i1 %34, i32 %39, i32 undef
%41 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%42 = icmp ne i32 %28, 0
%43 = sext i32 %33 to i64
br label %44
44: ; preds = %150, %38
%45 = phi i32 [ %39, %38 ], [ %151, %150 ]
%46 = phi i64 [ %43, %38 ], [ %147, %150 ]
%47 = phi i8* [ undef, %38 ], [ %90, %150 ]
%48 = phi i32 [ %28, %38 ], [ %93, %150 ]
%49 = phi i32 [ 0, %38 ], [ %92, %150 ]
%50 = phi i32 [ %40, %38 ], [ %89, %150 ]
%51 = icmp eq i32 %50, %45
br i1 %51, label %88, label %52
52: ; preds = %44
%53 = getelementptr inbounds i8*, i8** %1, i64 %46
%54 = load i8*, i8** %53
%55 = load i32, i32* @R_OK
%56 = call i64 @access(i8* %54, i32 %55)
%57 = icmp eq i64 %56, 0
br i1 %57, label %63, label %58
58: ; preds = %52
%59 = load i32, i32* @stderr
%60 = load i32, i32* @errno
%61 = call i8* @strerror(i32 %60)
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %23, i8* %54, i8* %61)
br label %152
63: ; preds = %52
%64 = call i64 @stat(i8* %54, %struct.stat* %4)
%65 = icmp eq i64 %64, 0
br i1 %65, label %71, label %66
66: ; preds = %63
%67 = load i32, i32* @stderr
%68 = load i32, i32* @errno
%69 = call i8* @strerror(i32 %68)
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %23, i8* %54, i8* %69)
br label %152
71: ; preds = %63
%72 = load i32, i32* %41
%73 = call i64 @S_ISDIR(i32 %72)
%74 = icmp eq i64 %73, 0
br i1 %74, label %80, label %75
75: ; preds = %71
%76 = load i32, i32* @EISDIR
store i32 %76, i32* @errno
%77 = load i32, i32* @stderr
%78 = call i8* @strerror(i32 %76)
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %23, i8* %54, i8* %78)
br label %152
80: ; preds = %71
%81 = call i32 @open(i8* %54, i32 0)
%82 = icmp eq i32 %81, -1
br i1 %82, label %83, label %88
83: ; preds = %80
%84 = load i32, i32* @stderr
%85 = load i32, i32* @errno
%86 = call i8* @strerror(i32 %85)
%87 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %23, i8* %54, i8* %86)
br label %152
88: ; preds = %80, %44
%89 = phi i32 [ %81, %80 ], [ %45, %44 ]
%90 = phi i8* [ %54, %80 ], [ %47, %44 ]
br label %91
91: ; preds = %105, %88
%92 = phi i32 [ %49, %88 ], [ %120, %105 ]
%93 = phi i32 [ %48, %88 ], [ %124, %105 ]
br label %94
94: ; preds = %91, %96
%95 = call i32 @read(i32 %89, i8* %7, i32 4)
switch i32 %95, label %96 [
i32 0, label %146
i32 -1, label %100
]
96: ; preds = %94
%97 = icmp sgt i32 %95, 0
br i1 %97, label %98, label %94
98: ; preds = %96
%99 = zext i32 %95 to i64
br label %107
100: ; preds = %94
%101 = load i32, i32* @stderr
%102 = load i32, i32* @errno
%103 = call i8* @strerror(i32 %102)
%104 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %23, i8* %90, i8* %103)
br label %152
105: ; preds = %136
%106 = icmp eq i64 %140, %99
br i1 %106, label %91, label %107
107: ; preds = %98, %105
%108 = phi i64 [ 0, %98 ], [ %140, %105 ]
%109 = phi i32 [ %93, %98 ], [ %124, %105 ]
%110 = phi i32 [ %92, %98 ], [ %120, %105 ]
%111 = icmp ne i32 %109, 0
%112 = select i1 %42, i1 %111, i1 false
br i1 %112, label %113, label %119
113: ; preds = %107
%114 = load i32, i32* @stdout
%115 = add nsw i32 %110, 1
%116 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %115)
%117 = load i32, i32* @stdout
%118 = call i32 @fflush(i32 %117)
br label %119
119: ; preds = %113, %107
%120 = phi i32 [ %115, %113 ], [ %110, %107 ]
%121 = getelementptr inbounds [4 x i8], [4 x i8]* %6, i64 0, i64 %108
%122 = load i8, i8* %121
%123 = icmp eq i8 %122, 10
%124 = zext i1 %123 to i32
%125 = xor i1 %123, true
%126 = select i1 %25, i1 true, i1 %125
br i1 %126, label %136, label %127
127: ; preds = %119
store i8 36, i8* %3
%128 = load i32, i32* @STDOUT_FILENO
%129 = call i32 @write(i32 %128, i8* %3, i32 1)
%130 = icmp eq i32 %129, -1
br i1 %130, label %131, label %136
131: ; preds = %127
%132 = load i32, i32* @stderr
%133 = load i32, i32* @errno
%134 = call i8* @strerror(i32 %133)
%135 = call i32 (i32, i8*, ...) @fprintf(i32 %132, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %23, i8* %90, i8* %134)
br label %152
136: ; preds = %119, %127
%137 = load i32, i32* @STDOUT_FILENO
%138 = call i32 @write(i32 %137, i8* %121, i32 1)
%139 = icmp eq i32 %138, -1
%140 = add nuw nsw i64 %108, 1
br i1 %139, label %141, label %105
141: ; preds = %136
%142 = load i32, i32* @stderr
%143 = load i32, i32* @errno
%144 = call i8* @strerror(i32 %143)
%145 = call i32 (i32, i8*, ...) @fprintf(i32 %142, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %23, i8* %90, i8* %144)
br label %152
146: ; preds = %94
%147 = add nsw i64 %46, 1
%148 = trunc i64 %147 to i32
%149 = icmp eq i32 %36, %148
br i1 %149, label %152, label %150
150: ; preds = %146
%151 = load i32, i32* @STDIN_FILENO
br label %44
152: ; preds = %146, %32, %141, %131, %100, %83, %75, %66, %58
%153 = phi i32* [ @EXIT_FAILURE, %58 ], [ @EXIT_FAILURE, %66 ], [ @EXIT_FAILURE, %75 ], [ @EXIT_FAILURE, %83 ], [ @EXIT_FAILURE, %100 ], [ @EXIT_FAILURE, %131 ], [ @EXIT_FAILURE, %141 ], [ @EXIT_SUCCESS, %32 ], [ @EXIT_SUCCESS, %146 ]
%154 = load i32, i32* %153
ret i32 %154
}