#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 st_mode;
  scalar_t__ st_size;
};

/* Variables and functions */
int /*<<< orphan*/ F_OK;
long INT_MAX;
int /*<<< orphan*/ R_OK;
int S_ISBLK(int);
int S_ISCHR(int);
int S_ISDIR(int);
int S_ISFIFO(int);
int S_ISGID;
int S_ISLNK(int);
int S_ISREG(int);
int S_ISSOCK(int);
int S_ISUID;
int /*<<< orphan*/ W_OK;
int /*<<< orphan*/ X_OK;
scalar_t__ access(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ errx(int, char *, char const *);
int isatty(long);
scalar_t__ lstat(char const *, struct stat *);
scalar_t__ stat(char const *, struct stat *);
scalar_t__ strcmp(char const *, char *);
long toInteger(char const *);
bool unary(const char *operator, const char * operand) {
  struct stat st;
  if (strcmp(operator, "-b") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return S_ISBLK(st.st_mode);
  } else if (strcmp(operator, "-c") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return S_ISCHR(st.st_mode);
  } else if (strcmp(operator, "-d") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return S_ISDIR(st.st_mode);
  } else if (strcmp(operator, "-e") == 0) {
    return access(operand, F_OK) == 0;
  } else if (strcmp(operator, "-f") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return S_ISREG(st.st_mode);
  } else if (strcmp(operator, "-g") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return st.st_mode & S_ISGID;
  } else if (strcmp(operator, "-h") == 0 || strcmp(operator, "-L") == 0) {
    if (lstat(operand, &st) < 0)
      return false;
    return S_ISLNK(st.st_mode);
  } else if (strcmp(operator, "-n") == 0) {
    return *operand;
  } else if (strcmp(operator, "-p") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return S_ISFIFO(st.st_mode);
  } else if (strcmp(operator, "-r") == 0) {
    return access(operand, R_OK) == 0;
  } else if (strcmp(operator, "-S") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return S_ISSOCK(st.st_mode);
  } else if (strcmp(operator, "-s") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return st.st_size > 0;
  } else if (strcmp(operator, "-t") == 0) {
    long fd = toInteger(operand);
    if (fd < 0 || fd > INT_MAX)
      return false;
    return isatty(fd);
  } else if (strcmp(operator, "-u") == 0) {
    if (stat(operand, &st) < 0)
      return false;
    return st.st_mode & S_ISUID;
  } else if (strcmp(operator, "-w") == 0) {
    return access(operand, W_OK) == 0;
  } else if (strcmp(operator, "-x") == 0) {
    return access(operand, X_OK) == 0;
  } else if (strcmp(operator, "-z") == 0) {
    return !*operand;
  } else {
    errx(2, "invalid unary operator '%s'", operator);
  }
}


x86 assembly (clang, -O0):
<unary>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe05(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    123d <unary+0x5d>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    122d <unary+0x4d>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%edi
call   10e0 <S_ISBLK@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xdbb(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    128a <unary+0xaa>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    127a <unary+0x9a>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%edi
call   10d0 <S_ISCHR@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xd71(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    12d7 <unary+0xf7>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    12c7 <unary+0xe7>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%edi
call   1080 <S_ISDIR@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xd27(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1317 <unary+0x137>
mov    -0x18(%rbp),%rdi
mov    0x2cac(%rip),%rax
mov    (%rax),%esi
call   1100 <access@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xcea(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1364 <unary+0x184>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    1354 <unary+0x174>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%edi
call   10c0 <S_ISREG@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xca0(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13b5 <unary+0x1d5>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    13a1 <unary+0x1c1>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%eax
mov    0x2c15(%rip),%rcx
and    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xc52(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     13e9 <unary+0x209>
mov    -0x10(%rbp),%rdi
lea    0xc3b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    141c <unary+0x23c>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1090 <lstat@plt>
cmp    $0x0,%rax
jge    140c <unary+0x22c>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%edi
call   1030 <S_ISLNK@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xbf1(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1445 <unary+0x265>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xbcb(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1492 <unary+0x2b2>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    1482 <unary+0x2a2>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%edi
call   1050 <S_ISFIFO@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xb81(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    14d2 <unary+0x2f2>
mov    -0x18(%rbp),%rdi
mov    0x2b01(%rip),%rax
mov    (%rax),%esi
call   1100 <access@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xb44(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    151f <unary+0x33f>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    150f <unary+0x32f>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%edi
call   1060 <S_ISSOCK@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xafa(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1571 <unary+0x391>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    155c <unary+0x37c>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
cmpq   $0x0,-0x20(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xaab(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    15d4 <unary+0x3f4>
mov    -0x18(%rbp),%rdi
call   10f0 <toInteger@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jl     15b7 <unary+0x3d7>
mov    -0x30(%rbp),%rax
mov    0x2a3a(%rip),%rcx
cmp    (%rcx),%rax
jle    15c3 <unary+0x3e3>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x30(%rbp),%rdi
call   1040 <isatty@plt>
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0xa4b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1625 <unary+0x445>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
jge    1611 <unary+0x431>
movl   $0x0,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x28(%rbp),%eax
mov    0x29c5(%rip),%rcx
and    (%rcx),%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0x9fd(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1665 <unary+0x485>
mov    -0x18(%rbp),%rdi
mov    0x298e(%rip),%rax
mov    (%rax),%esi
call   1100 <access@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0x9c0(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    16a5 <unary+0x4c5>
mov    -0x18(%rbp),%rdi
mov    0x2946(%rip),%rax
mov    (%rax),%esi
call   1100 <access@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdi
lea    0x983(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    16d8 <unary+0x4f8>
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
jmp    173d <unary+0x55d>
mov    -0x10(%rbp),%rdx
mov    $0x2,%edi
lea    0x94e(%rip),%rsi
call   1070 <errx@plt>
jmp    16f2 <unary+0x512>
jmp    16f7 <unary+0x517>
jmp    16fc <unary+0x51c>
jmp    1701 <unary+0x521>
jmp    1706 <unary+0x526>
jmp    170b <unary+0x52b>
jmp    1710 <unary+0x530>
jmp    1715 <unary+0x535>
jmp    171a <unary+0x53a>
jmp    171f <unary+0x53f>
jmp    1724 <unary+0x544>
jmp    1729 <unary+0x549>
jmp    172e <unary+0x54e>
jmp    1733 <unary+0x553>
jmp    1738 <unary+0x558>
jmp    173d <unary+0x55d>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unary>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xe0c(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13b3 <unary+0x1d3>
lea    0xdfa(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13d7 <unary+0x1f7>
lea    0xde5(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13fb <unary+0x21b>
lea    0xdd0(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     141f <unary+0x23f>
lea    0xdbb(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1440 <unary+0x260>
lea    0xda6(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     148a <unary+0x2aa>
lea    0xd91(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1464 <unary+0x284>
lea    0xd7c(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1464 <unary+0x284>
lea    0xd67(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     14b2 <unary+0x2d2>
lea    0xd52(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     14bb <unary+0x2db>
lea    0xd3d(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     14df <unary+0x2ff>
lea    0xd28(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     14eb <unary+0x30b>
lea    0xd13(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1508 <unary+0x328>
lea    0xcfe(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1527 <unary+0x347>
lea    0xce9(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1551 <unary+0x371>
lea    0xcd4(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1579 <unary+0x399>
lea    0xcbf(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1585 <unary+0x3a5>
lea    0xcaa(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1591 <unary+0x3b1>
lea    0xc95(%rip),%rsi
mov    $0x2,%edi
mov    %rbx,%rdx
call   1070 <errx@plt>
jmp    1571 <unary+0x391>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x8(%rsp),%edi
call   10e0 <S_ISBLK@plt>
jmp    1571 <unary+0x391>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x8(%rsp),%edi
call   10d0 <S_ISCHR@plt>
jmp    1571 <unary+0x391>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x8(%rsp),%edi
call   1080 <S_ISDIR@plt>
jmp    1571 <unary+0x391>
mov    0x2b82(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1100 <access@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
jmp    1571 <unary+0x391>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x8(%rsp),%edi
call   10c0 <S_ISREG@plt>
jmp    1571 <unary+0x391>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   1090 <lstat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x8(%rsp),%edi
add    $0x18,%rsp
pop    %rbx
pop    %r14
jmp    1030 <S_ISLNK@plt>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x2b19(%rip),%rax
mov    (%rax),%eax
and    0x8(%rsp),%eax
jmp    1571 <unary+0x391>
movsbl (%r14),%eax
jmp    1571 <unary+0x391>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x8(%rsp),%edi
call   1050 <S_ISFIFO@plt>
jmp    1571 <unary+0x391>
mov    0x2ad2(%rip),%rax
jmp    1426 <unary+0x246>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x8(%rsp),%edi
call   1060 <S_ISSOCK@plt>
jmp    1571 <unary+0x391>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
xor    %eax,%eax
cmpq   $0x0,0x10(%rsp)
setg   %al
jmp    1571 <unary+0x391>
mov    %r14,%rdi
call   10f0 <toInteger@plt>
mov    %rax,%rdi
xor    %eax,%eax
test   %rdi,%rdi
js     1571 <unary+0x391>
mov    0x2aa8(%rip),%rcx
cmp    (%rcx),%rdi
jg     1571 <unary+0x391>
add    $0x18,%rsp
pop    %rbx
pop    %r14
jmp    1040 <isatty@plt>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
js     156f <unary+0x38f>
mov    0x2a76(%rip),%rax
jmp    14a7 <unary+0x2c7>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret
mov    0x2a58(%rip),%rax
jmp    1426 <unary+0x246>
mov    0x2a44(%rip),%rax
jmp    1426 <unary+0x246>
xor    %eax,%eax
cmpb   $0x0,(%r14)
jmp    1438 <unary+0x258>

LLVM IR (-O0):
%struct.stat = type { i32, i64 }
@.str = [3 x i8] c"-b\00"
@.str.1 = [3 x i8] c"-c\00"
@.str.2 = [3 x i8] c"-d\00"
@.str.3 = [3 x i8] c"-e\00"
@F_OK = global i32 0
@.str.4 = [3 x i8] c"-f\00"
@.str.5 = [3 x i8] c"-g\00"
@S_ISGID = global i32 0
@.str.6 = [3 x i8] c"-h\00"
@.str.7 = [3 x i8] c"-L\00"
@.str.8 = [3 x i8] c"-n\00"
@.str.9 = [3 x i8] c"-p\00"
@.str.10 = [3 x i8] c"-r\00"
@R_OK = global i32 0
@.str.11 = [3 x i8] c"-S\00"
@.str.12 = [3 x i8] c"-s\00"
@.str.13 = [3 x i8] c"-t\00"
@INT_MAX = global i64 0
@.str.14 = [3 x i8] c"-u\00"
@S_ISUID = global i32 0
@.str.15 = [3 x i8] c"-w\00"
@W_OK = global i32 0
@.str.16 = [3 x i8] c"-x\00"
@X_OK = global i32 0
@.str.17 = [3 x i8] c"-z\00"
@.str.18 = [28 x i8] c"invalid unary operator '%s'\00"
define i32 @unary(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca %struct.stat
%7 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
%8 = load i8*, i8** %4
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %2
%12 = load i8*, i8** %5
%13 = call i64 @stat(i8* %12, %struct.stat* %6)
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %11
store i32 0, i32* %3
br label %238
16: ; preds = %11
%17 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%18 = load i32, i32* %17
%19 = call i32 @S_ISBLK(i32 %18)
store i32 %19, i32* %3
br label %238
20: ; preds = %2
%21 = load i8*, i8** %4
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %20
%25 = load i8*, i8** %5
%26 = call i64 @stat(i8* %25, %struct.stat* %6)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 0, i32* %3
br label %238
29: ; preds = %24
%30 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%31 = load i32, i32* %30
%32 = call i32 @S_ISCHR(i32 %31)
store i32 %32, i32* %3
br label %238
33: ; preds = %20
%34 = load i8*, i8** %4
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %46
37: ; preds = %33
%38 = load i8*, i8** %5
%39 = call i64 @stat(i8* %38, %struct.stat* %6)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 0, i32* %3
br label %238
42: ; preds = %37
%43 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%44 = load i32, i32* %43
%45 = call i32 @S_ISDIR(i32 %44)
store i32 %45, i32* %3
br label %238
46: ; preds = %33
%47 = load i8*, i8** %4
%48 = call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %46
%51 = load i8*, i8** %5
%52 = load i32, i32* @F_OK
%53 = call i64 @access(i8* %51, i32 %52)
%54 = icmp eq i64 %53, 0
%55 = zext i1 %54 to i32
store i32 %55, i32* %3
br label %238
56: ; preds = %46
%57 = load i8*, i8** %4
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %69
60: ; preds = %56
%61 = load i8*, i8** %5
%62 = call i64 @stat(i8* %61, %struct.stat* %6)
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 0, i32* %3
br label %238
65: ; preds = %60
%66 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%67 = load i32, i32* %66
%68 = call i32 @S_ISREG(i32 %67)
store i32 %68, i32* %3
br label %238
69: ; preds = %56
%70 = load i8*, i8** %4
%71 = call i64 @strcmp(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %83
73: ; preds = %69
%74 = load i8*, i8** %5
%75 = call i64 @stat(i8* %74, %struct.stat* %6)
%76 = icmp slt i64 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %73
store i32 0, i32* %3
br label %238
78: ; preds = %73
%79 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%80 = load i32, i32* %79
%81 = load i32, i32* @S_ISGID
%82 = and i32 %80, %81
store i32 %82, i32* %3
br label %238
83: ; preds = %69
%84 = load i8*, i8** %4
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %91, label %87
87: ; preds = %83
%88 = load i8*, i8** %4
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %100
91: ; preds = %87, %83
%92 = load i8*, i8** %5
%93 = call i64 @lstat(i8* %92, %struct.stat* %6)
%94 = icmp slt i64 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %91
store i32 0, i32* %3
br label %238
96: ; preds = %91
%97 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%98 = load i32, i32* %97
%99 = call i32 @S_ISLNK(i32 %98)
store i32 %99, i32* %3
br label %238
100: ; preds = %87
%101 = load i8*, i8** %4
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %108
104: ; preds = %100
%105 = load i8*, i8** %5
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
store i32 %107, i32* %3
br label %238
108: ; preds = %100
%109 = load i8*, i8** %4
%110 = call i64 @strcmp(i8* %109, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %121
112: ; preds = %108
%113 = load i8*, i8** %5
%114 = call i64 @stat(i8* %113, %struct.stat* %6)
%115 = icmp slt i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
store i32 0, i32* %3
br label %238
117: ; preds = %112
%118 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%119 = load i32, i32* %118
%120 = call i32 @S_ISFIFO(i32 %119)
store i32 %120, i32* %3
br label %238
121: ; preds = %108
%122 = load i8*, i8** %4
%123 = call i64 @strcmp(i8* %122, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
br i1 %124, label %125, label %131
125: ; preds = %121
%126 = load i8*, i8** %5
%127 = load i32, i32* @R_OK
%128 = call i64 @access(i8* %126, i32 %127)
%129 = icmp eq i64 %128, 0
%130 = zext i1 %129 to i32
store i32 %130, i32* %3
br label %238
131: ; preds = %121
%132 = load i8*, i8** %4
%133 = call i64 @strcmp(i8* %132, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%134 = icmp eq i64 %133, 0
br i1 %134, label %135, label %144
135: ; preds = %131
%136 = load i8*, i8** %5
%137 = call i64 @stat(i8* %136, %struct.stat* %6)
%138 = icmp slt i64 %137, 0
br i1 %138, label %139, label %140
139: ; preds = %135
store i32 0, i32* %3
br label %238
140: ; preds = %135
%141 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%142 = load i32, i32* %141
%143 = call i32 @S_ISSOCK(i32 %142)
store i32 %143, i32* %3
br label %238
144: ; preds = %131
%145 = load i8*, i8** %4
%146 = call i64 @strcmp(i8* %145, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %158
148: ; preds = %144
%149 = load i8*, i8** %5
%150 = call i64 @stat(i8* %149, %struct.stat* %6)
%151 = icmp slt i64 %150, 0
br i1 %151, label %152, label %153
152: ; preds = %148
store i32 0, i32* %3
br label %238
153: ; preds = %148
%154 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 1
%155 = load i64, i64* %154
%156 = icmp sgt i64 %155, 0
%157 = zext i1 %156 to i32
store i32 %157, i32* %3
br label %238
158: ; preds = %144
%159 = load i8*, i8** %4
%160 = call i64 @strcmp(i8* %159, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%161 = icmp eq i64 %160, 0
br i1 %161, label %162, label %175
162: ; preds = %158
%163 = load i8*, i8** %5
%164 = call i64 @toInteger(i8* %163)
store i64 %164, i64* %7
%165 = load i64, i64* %7
%166 = icmp slt i64 %165, 0
br i1 %166, label %171, label %167
167: ; preds = %162
%168 = load i64, i64* %7
%169 = load i64, i64* @INT_MAX
%170 = icmp sgt i64 %168, %169
br i1 %170, label %171, label %172
171: ; preds = %167, %162
store i32 0, i32* %3
br label %238
172: ; preds = %167
%173 = load i64, i64* %7
%174 = call i32 @isatty(i64 %173)
store i32 %174, i32* %3
br label %238
175: ; preds = %158
%176 = load i8*, i8** %4
%177 = call i64 @strcmp(i8* %176, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%178 = icmp eq i64 %177, 0
br i1 %178, label %179, label %189
179: ; preds = %175
%180 = load i8*, i8** %5
%181 = call i64 @stat(i8* %180, %struct.stat* %6)
%182 = icmp slt i64 %181, 0
br i1 %182, label %183, label %184
183: ; preds = %179
store i32 0, i32* %3
br label %238
184: ; preds = %179
%185 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%186 = load i32, i32* %185
%187 = load i32, i32* @S_ISUID
%188 = and i32 %186, %187
store i32 %188, i32* %3
br label %238
189: ; preds = %175
%190 = load i8*, i8** %4
%191 = call i64 @strcmp(i8* %190, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%192 = icmp eq i64 %191, 0
br i1 %192, label %193, label %199
193: ; preds = %189
%194 = load i8*, i8** %5
%195 = load i32, i32* @W_OK
%196 = call i64 @access(i8* %194, i32 %195)
%197 = icmp eq i64 %196, 0
%198 = zext i1 %197 to i32
store i32 %198, i32* %3
br label %238
199: ; preds = %189
%200 = load i8*, i8** %4
%201 = call i64 @strcmp(i8* %200, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%202 = icmp eq i64 %201, 0
br i1 %202, label %203, label %209
203: ; preds = %199
%204 = load i8*, i8** %5
%205 = load i32, i32* @X_OK
%206 = call i64 @access(i8* %204, i32 %205)
%207 = icmp eq i64 %206, 0
%208 = zext i1 %207 to i32
store i32 %208, i32* %3
br label %238
209: ; preds = %199
%210 = load i8*, i8** %4
%211 = call i64 @strcmp(i8* %210, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%212 = icmp eq i64 %211, 0
br i1 %212, label %213, label %219
213: ; preds = %209
%214 = load i8*, i8** %5
%215 = load i8, i8* %214
%216 = icmp ne i8 %215, 0
%217 = xor i1 %216, true
%218 = zext i1 %217 to i32
store i32 %218, i32* %3
br label %238
219: ; preds = %209
%220 = load i8*, i8** %4
%221 = call i32 @errx(i32 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), i8* %220)
br label %222
222: ; preds = %219
br label %223
223: ; preds = %222
br label %224
224: ; preds = %223
br label %225
225: ; preds = %224
br label %226
226: ; preds = %225
br label %227
227: ; preds = %226
br label %228
228: ; preds = %227
br label %229
229: ; preds = %228
br label %230
230: ; preds = %229
br label %231
231: ; preds = %230
br label %232
232: ; preds = %231
br label %233
233: ; preds = %232
br label %234
234: ; preds = %233
br label %235
235: ; preds = %234
br label %236
236: ; preds = %235
br label %237
237: ; preds = %236
br label %238
238: ; preds = %15, %16, %28, %29, %41, %42, %50, %64, %65, %77, %78, %95, %96, %104, %116, %117, %125, %139, %140, %152, %153, %171, %172, %183, %184, %193, %203, %213, %237
%239 = load i32, i32* %3
ret i32 %239
}

LLVM IR (-O2):
%struct.stat = type { i32, i64 }
@.str = [3 x i8] c"-b\00"
@.str.1 = [3 x i8] c"-c\00"
@.str.2 = [3 x i8] c"-d\00"
@.str.3 = [3 x i8] c"-e\00"
@F_OK = global i32 0
@.str.4 = [3 x i8] c"-f\00"
@.str.5 = [3 x i8] c"-g\00"
@S_ISGID = global i32 0
@.str.6 = [3 x i8] c"-h\00"
@.str.7 = [3 x i8] c"-L\00"
@.str.8 = [3 x i8] c"-n\00"
@.str.9 = [3 x i8] c"-p\00"
@.str.10 = [3 x i8] c"-r\00"
@R_OK = global i32 0
@.str.11 = [3 x i8] c"-S\00"
@.str.12 = [3 x i8] c"-s\00"
@.str.13 = [3 x i8] c"-t\00"
@INT_MAX = global i64 0
@.str.14 = [3 x i8] c"-u\00"
@S_ISUID = global i32 0
@.str.15 = [3 x i8] c"-w\00"
@W_OK = global i32 0
@.str.16 = [3 x i8] c"-x\00"
@X_OK = global i32 0
@.str.17 = [3 x i8] c"-z\00"
@.str.18 = [28 x i8] c"invalid unary operator '%s'\00"
define i32 @unary(i8* %0, i8* %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = call i64 @stat(i8* %1, %struct.stat* %3)
%9 = icmp slt i64 %8, 0
br i1 %9, label %168, label %10
10: ; preds = %7
%11 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%12 = load i32, i32* %11
%13 = call i32 @S_ISBLK(i32 %12)
br label %168
14: ; preds = %2
%15 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %24
17: ; preds = %14
%18 = call i64 @stat(i8* %1, %struct.stat* %3)
%19 = icmp slt i64 %18, 0
br i1 %19, label %168, label %20
20: ; preds = %17
%21 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%22 = load i32, i32* %21
%23 = call i32 @S_ISCHR(i32 %22)
br label %168
24: ; preds = %14
%25 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = call i64 @stat(i8* %1, %struct.stat* %3)
%29 = icmp slt i64 %28, 0
br i1 %29, label %168, label %30
30: ; preds = %27
%31 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%32 = load i32, i32* %31
%33 = call i32 @S_ISDIR(i32 %32)
br label %168
34: ; preds = %24
%35 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load i32, i32* @F_OK
%39 = tail call i64 @access(i8* %1, i32 %38)
%40 = icmp eq i64 %39, 0
%41 = zext i1 %40 to i32
br label %168
42: ; preds = %34
%43 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = call i64 @stat(i8* %1, %struct.stat* %3)
%47 = icmp slt i64 %46, 0
br i1 %47, label %168, label %48
48: ; preds = %45
%49 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%50 = load i32, i32* %49
%51 = call i32 @S_ISREG(i32 %50)
br label %168
52: ; preds = %42
%53 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = call i64 @stat(i8* %1, %struct.stat* %3)
%57 = icmp slt i64 %56, 0
br i1 %57, label %168, label %58
58: ; preds = %55
%59 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%60 = load i32, i32* %59
%61 = load i32, i32* @S_ISGID
%62 = and i32 %61, %60
br label %168
63: ; preds = %52
%64 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %69, label %66
66: ; preds = %63
%67 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %66, %63
%70 = call i64 @lstat(i8* %1, %struct.stat* %3)
%71 = icmp slt i64 %70, 0
br i1 %71, label %168, label %72
72: ; preds = %69
%73 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%74 = load i32, i32* %73
%75 = tail call i32 @S_ISLNK(i32 %74)
br label %168
76: ; preds = %66
%77 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load i8, i8* %1
%81 = sext i8 %80 to i32
br label %168
82: ; preds = %76
%83 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %92
85: ; preds = %82
%86 = call i64 @stat(i8* %1, %struct.stat* %3)
%87 = icmp slt i64 %86, 0
br i1 %87, label %168, label %88
88: ; preds = %85
%89 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%90 = load i32, i32* %89
%91 = call i32 @S_ISFIFO(i32 %90)
br label %168
92: ; preds = %82
%93 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %100
95: ; preds = %92
%96 = load i32, i32* @R_OK
%97 = tail call i64 @access(i8* %1, i32 %96)
%98 = icmp eq i64 %97, 0
%99 = zext i1 %98 to i32
br label %168
100: ; preds = %92
%101 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %110
103: ; preds = %100
%104 = call i64 @stat(i8* %1, %struct.stat* %3)
%105 = icmp slt i64 %104, 0
br i1 %105, label %168, label %106
106: ; preds = %103
%107 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%108 = load i32, i32* %107
%109 = call i32 @S_ISSOCK(i32 %108)
br label %168
110: ; preds = %100
%111 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %121
113: ; preds = %110
%114 = call i64 @stat(i8* %1, %struct.stat* %3)
%115 = icmp slt i64 %114, 0
br i1 %115, label %168, label %116
116: ; preds = %113
%117 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 1
%118 = load i64, i64* %117
%119 = icmp sgt i64 %118, 0
%120 = zext i1 %119 to i32
br label %168
121: ; preds = %110
%122 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %132
124: ; preds = %121
%125 = tail call i64 @toInteger(i8* %1)
%126 = icmp slt i64 %125, 0
%127 = load i64, i64* @INT_MAX
%128 = icmp sgt i64 %125, %127
%129 = select i1 %126, i1 true, i1 %128
br i1 %129, label %168, label %130
130: ; preds = %124
%131 = tail call i32 @isatty(i64 %125)
br label %168
132: ; preds = %121
%133 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%134 = icmp eq i64 %133, 0
br i1 %134, label %135, label %143
135: ; preds = %132
%136 = call i64 @stat(i8* %1, %struct.stat* %3)
%137 = icmp slt i64 %136, 0
br i1 %137, label %168, label %138
138: ; preds = %135
%139 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%140 = load i32, i32* %139
%141 = load i32, i32* @S_ISUID
%142 = and i32 %141, %140
br label %168
143: ; preds = %132
%144 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %151
146: ; preds = %143
%147 = load i32, i32* @W_OK
%148 = tail call i64 @access(i8* %1, i32 %147)
%149 = icmp eq i64 %148, 0
%150 = zext i1 %149 to i32
br label %168
151: ; preds = %143
%152 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%153 = icmp eq i64 %152, 0
br i1 %153, label %154, label %159
154: ; preds = %151
%155 = load i32, i32* @X_OK
%156 = tail call i64 @access(i8* %1, i32 %155)
%157 = icmp eq i64 %156, 0
%158 = zext i1 %157 to i32
br label %168
159: ; preds = %151
%160 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%161 = icmp eq i64 %160, 0
br i1 %161, label %162, label %166
162: ; preds = %159
%163 = load i8, i8* %1
%164 = icmp eq i8 %163, 0
%165 = zext i1 %164 to i32
br label %168
166: ; preds = %159
%167 = tail call i32 @errx(i32 2, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), i8* %0)
br label %168
168: ; preds = %135, %130, %124, %113, %103, %85, %69, %55, %45, %27, %17, %7, %166, %162, %154, %146, %138, %116, %106, %95, %88, %79, %72, %58, %48, %37, %30, %20, %10
%169 = phi i32 [ %13, %10 ], [ %23, %20 ], [ %33, %30 ], [ %41, %37 ], [ %51, %48 ], [ %62, %58 ], [ %75, %72 ], [ %81, %79 ], [ %91, %88 ], [ %99, %95 ], [ %109, %106 ], [ %120, %116 ], [ %142, %138 ], [ %150, %146 ], [ %158, %154 ], [ %165, %162 ], [ undef, %166 ], [ 0, %7 ], [ 0, %17 ], [ 0, %27 ], [ 0, %45 ], [ 0, %55 ], [ 0, %69 ], [ 0, %85 ], [ 0, %103 ], [ 0, %113 ], [ %131, %130 ], [ 0, %124 ], [ 0, %135 ]
ret i32 %169
}