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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
char *Nerror(char *, ...);
int /*<<< orphan*/ assert(int);
char *get_char_literal(char const *, unsigned int *);
scalar_t__ isalnum(char const);
scalar_t__ isalpha(char const);
scalar_t__ isdigit(char const);
scalar_t__ isspace(char const);
scalar_t__ isxdigit(char const);
int /*<<< orphan*/ sscanf(char const *, char *, unsigned int *);
unsigned int true_value(char const *, int);
char *find_token(const char *text, int *len, unsigned int *value) {
  const char *ret;
  const char *ip = text;
  int minus = 0;
  if (value != NULL)
    *value = -1u;
  while (isspace(*ip))
    ++ip;
  if (*ip == '$' || *ip == '#') {
    ++ip;
    if (!isalnum(*ip) && *ip != '_')
      return Nerror("Encountered '%c' alone in an instruction", ip[-1]);
  }
  if (isalpha(*ip) || *ip == '_') {
    ret = ip;
    while (isalnum(*ip) || *ip == '_')
      ++ip;
    if (value != NULL) {
      *value = true_value(ret, ip - ret);
    }
  } else if (*ip == '0' && ip[1] == 'x') {
    ret = ip;
  scan_hex_number:
    ip += 2;
    while (isxdigit(*ip))
      ++ip;
    if (isalpha(*ip) || *ip == '_')
      return Nerror("Hex number contains extra characters");
    if (value != NULL) {
      sscanf(ret + 2, "%x", value);
      if (minus)
        *value = 0777777 - (*value);
    }
  } else if (*ip == '-') {
    ret = ip;
    if (ip[1] == '-')
      ++ip;
    else if (value != NULL && *ip == '0' && ip[1] == 'x') {
      minus = 1;
      goto scan_hex_number;
    } else if (value != NULL && isdigit(*ip)) {
      minus = 1;
      goto scan_number;
    }
    ++ip;
  } else if (isdigit(*ip)) {
    ret = ip;
  scan_number:
    while (isdigit(*ip))
      ++ip;
    if (*ip == 'd' || *ip == 'D') {
      if (value != NULL)
        sscanf(ret, "%u", value);
      ++ip;
    } else {
      if (value != NULL)
        sscanf(ret, "%o", value);
    }
    if (minus && (value != NULL))
      *value = 0777777 - (*value);
    if (isalpha(*ip) || *ip == '_') {
      return Nerror("%s number contains extra characters",
                    isalpha(ip[-1]) ? "Decimal" : "Octal");
    }
  } else {
    switch (*ip) {
    case '\0':
      return NULL;
    case '[':
    case ']':
    case '*':
    case '&':
    case '|':
    case '^':
    case '(':
    case ')':
    case ',':
    case '.':
    case '~':
      ret = ip++;
      break;
    case '+':
      ret = ip++;
      if (*ip == '+')
        ++ip;
      break;
    case '>':
      ret = ip;
      if (ip[1] != '>')
        return Nerror("Unrecognized token beginning with '>'");
      break;
    case '\'': {
      unsigned int dummy;
      ret = ip++;
      ip = get_char_literal(ip, &dummy);
      if (ip == NULL)
        return NULL;
      if (value != NULL)
        *value = dummy;
      if (*ip == '\'') {
        ip += 1;
        break;
      }
      ip = get_char_literal(ip, &dummy);
      if (ip == NULL)
        return NULL;
      if (value != NULL)
        *value = 01000000 | (*value << 9) | dummy;
      if (*ip++ != '\'')
        return Nerror("Unterminated character constant");
      break;
    }
    default:
      return Nerror("Unrecognized token beginning with '%c'", *ip);
    }
  }
  assert(ip > ret);
  assert(ret >= text);
  *len = ip - ret;
  return (char *)ret;
}


x86 assembly (clang, -O0):
<find_token>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11d8 <find_token+0x38>
mov    -0x20(%rbp),%rax
movl   $0xffffffff,(%rax)
jmp    11dd <find_token+0x3d>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1070 <isspace@plt>
cmp    $0x0,%rax
je     1204 <find_token+0x64>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    11dd <find_token+0x3d>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x24,%eax
je     1224 <find_token+0x84>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    127a <find_token+0xda>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalnum@plt>
cmp    $0x0,%rax
jne    1275 <find_token+0xd5>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
je     1275 <find_token+0xd5>
mov    -0x30(%rbp),%rax
movsbl -0x1(%rax),%esi
lea    0xf97(%rip),%rdi
mov    $0x0,%al
call   1060 <Nerror@plt>
mov    %rax,-0x8(%rbp)
jmp    182f <find_token+0x68f>
jmp    127a <find_token+0xda>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   10b0 <isalpha@plt>
cmp    $0x0,%rax
jne    12a0 <find_token+0x100>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
jne    1325 <find_token+0x185>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x39(%rbp)
jne    12d6 <find_token+0x136>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
sete   %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    12e6 <find_token+0x146>
jmp    12f7 <find_token+0x157>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    12a8 <find_token+0x108>
cmpq   $0x0,-0x20(%rbp)
je     1320 <find_token+0x180>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%esi
call   1040 <true_value@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    17ea <find_token+0x64a>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jne    1406 <find_token+0x266>
mov    -0x30(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x78,%eax
jne    1406 <find_token+0x266>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   10c0 <isxdigit@plt>
cmp    $0x0,%rax
je     1381 <find_token+0x1e1>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    135a <find_token+0x1ba>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   10b0 <isalpha@plt>
cmp    $0x0,%rax
jne    13a7 <find_token+0x207>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
jne    13be <find_token+0x21e>
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1060 <Nerror@plt>
mov    %rax,-0x8(%rbp)
jmp    182f <find_token+0x68f>
cmpq   $0x0,-0x20(%rbp)
je     1401 <find_token+0x261>
mov    -0x28(%rbp),%rdi
add    $0x2,%rdi
mov    -0x20(%rbp),%rdx
lea    0xe6e(%rip),%rsi
call   1090 <sscanf@plt>
cmpl   $0x0,-0x34(%rbp)
je     13fc <find_token+0x25c>
mov    -0x20(%rbp),%rax
mov    $0x3ffff,%ecx
sub    (%rax),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    1401 <find_token+0x261>
jmp    17e5 <find_token+0x645>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    14c0 <find_token+0x320>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2d,%eax
jne    1440 <find_token+0x2a0>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    14af <find_token+0x30f>
cmpq   $0x0,-0x20(%rbp)
je     1478 <find_token+0x2d8>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jne    1478 <find_token+0x2d8>
mov    -0x30(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x78,%eax
jne    1478 <find_token+0x2d8>
movl   $0x1,-0x34(%rbp)
jmp    134e <find_token+0x1ae>
cmpq   $0x0,-0x20(%rbp)
je     14a5 <find_token+0x305>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     14a5 <find_token+0x305>
movl   $0x1,-0x34(%rbp)
jmp    14de <find_token+0x33e>
jmp    14aa <find_token+0x30a>
jmp    14af <find_token+0x30f>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    17e0 <find_token+0x640>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     160c <find_token+0x46c>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    14e3 <find_token+0x343>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     150a <find_token+0x36a>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    14e3 <find_token+0x343>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x64,%eax
je     152a <find_token+0x38a>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x44,%eax
jne    155a <find_token+0x3ba>
cmpq   $0x0,-0x20(%rbp)
je     1549 <find_token+0x3a9>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xd09(%rip),%rsi
call   1090 <sscanf@plt>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    157e <find_token+0x3de>
cmpq   $0x0,-0x20(%rbp)
je     1579 <find_token+0x3d9>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xcdc(%rip),%rsi
call   1090 <sscanf@plt>
jmp    157e <find_token+0x3de>
cmpl   $0x0,-0x34(%rbp)
je     15a4 <find_token+0x404>
cmpq   $0x0,-0x20(%rbp)
je     15a4 <find_token+0x404>
mov    -0x20(%rbp),%rax
mov    $0x3ffff,%ecx
sub    (%rax),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   10b0 <isalpha@plt>
cmp    $0x0,%rax
jne    15ca <find_token+0x42a>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
jne    1607 <find_token+0x467>
mov    -0x30(%rbp),%rax
movsbl -0x1(%rax),%edi
call   10b0 <isalpha@plt>
mov    %rax,%rcx
lea    0xc9e(%rip),%rsi
lea    0xc8f(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xc5c(%rip),%rdi
mov    $0x0,%al
call   1060 <Nerror@plt>
mov    %rax,-0x8(%rbp)
jmp    182f <find_token+0x68f>
jmp    17db <find_token+0x63b>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x7e,%eax
ja     17b8 <find_token+0x618>
mov    -0x48(%rbp),%rax
lea    0x9d3(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movq   $0x0,-0x8(%rbp)
jmp    182f <find_token+0x68f>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x28(%rbp)
jmp    17d6 <find_token+0x636>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2b,%eax
jne    168a <find_token+0x4ea>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    17d6 <find_token+0x636>
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x3e,%eax
je     16bf <find_token+0x51f>
lea    0xbd6(%rip),%rdi
mov    $0x0,%al
call   1060 <Nerror@plt>
mov    %rax,-0x8(%rbp)
jmp    182f <find_token+0x68f>
jmp    17d6 <find_token+0x636>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x30(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10a0 <get_char_literal@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1700 <find_token+0x560>
movq   $0x0,-0x8(%rbp)
jmp    182f <find_token+0x68f>
cmpq   $0x0,-0x20(%rbp)
je     1714 <find_token+0x574>
mov    -0x38(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    1735 <find_token+0x595>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    17d6 <find_token+0x636>
mov    -0x30(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10a0 <get_char_literal@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    175e <find_token+0x5be>
movq   $0x0,-0x8(%rbp)
jmp    182f <find_token+0x68f>
cmpq   $0x0,-0x20(%rbp)
je     1781 <find_token+0x5e1>
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
shl    $0x9,%ecx
or     $0x40000,%ecx
or     -0x38(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movsbl (%rax),%eax
cmp    $0x27,%eax
je     17b3 <find_token+0x613>
lea    0xb08(%rip),%rdi
mov    $0x0,%al
call   1060 <Nerror@plt>
mov    %rax,-0x8(%rbp)
jmp    182f <find_token+0x68f>
jmp    17d6 <find_token+0x636>
mov    -0x30(%rbp),%rax
movsbl (%rax),%esi
lea    0xb05(%rip),%rdi
mov    $0x0,%al
call   1060 <Nerror@plt>
mov    %rax,-0x8(%rbp)
jmp    182f <find_token+0x68f>
jmp    17db <find_token+0x63b>
jmp    17e0 <find_token+0x640>
jmp    17e5 <find_token+0x645>
jmp    17ea <find_token+0x64a>
mov    -0x30(%rbp),%rax
cmp    -0x28(%rbp),%rax
seta   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x28(%rbp),%rax
cmp    -0x10(%rbp),%rax
setae  %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_token>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r12
mov    %rsi,%r14
mov    %rdi,%r15
test   %rdx,%rdx
je     11c1 <find_token+0x21>
movl   $0xffffffff,(%r12)
ff
mov    %r15,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl (%rbx),%edi
call   1070 <isspace@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    11d0 <find_token+0x30>
lea    -0x1(%rbx),%rbp
mov    -0x1(%rbx),%cl
lea    -0x23(%rcx),%eax
cmp    $0x1,%al
ja     1225 <find_token+0x85>
movsbl (%rbx),%edi
call   1050 <isalnum@plt>
mov    (%rbx),%cl
test   %rax,%rax
jne    1228 <find_token+0x88>
cmp    $0x5f,%cl
mov    $0x5f,%cl
je     1228 <find_token+0x88>
movsbl 0x0(%rbp),%esi
lea    0xfec(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <Nerror@plt>
mov    %rbp,%rbx
movsbl %cl,%edi
call   10b0 <isalpha@plt>
test   %rax,%rax
je     12a3 <find_token+0x103>
xor    %ebp,%ebp
jmp    1244 <find_token+0xa4>
nopl   0x0(%rax)
add    $0x1,%rbp
movsbl (%rbx,%rbp,1),%edi
call   1050 <isalnum@plt>
test   %rax,%rax
jne    1240 <find_token+0xa0>
cmpb   $0x5f,(%rbx,%rbp,1)
je     1240 <find_token+0xa0>
lea    (%rbx,%rbp,1),%r13
test   %r12,%r12
je     126f <find_token+0xcf>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1040 <true_value@plt>
mov    %eax,(%r12)
xor    %edi,%edi
cmp    %rbx,%r13
seta   %dil
call   1080 <assert@plt>
xor    %edi,%edi
cmp    %r15,%rbx
setae  %dil
call   1080 <assert@plt>
sub    %ebx,%r13d
mov    %r13d,(%r14)
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rbx),%al
cmp    $0x2d,%al
je     12b6 <find_token+0x116>
cmp    $0x30,%al
je     12e4 <find_token+0x144>
cmp    $0x5f,%al
je     1235 <find_token+0x95>
jmp    1349 <find_token+0x1a9>
lea    0x1(%rbx),%r13
cmpb   $0x2d,0x1(%rbx)
cmovne %rbx,%r13
je     12de <find_token+0x13e>
test   %r12,%r12
je     12de <find_token+0x13e>
mov    $0x2d,%edi
call   1030 <isdigit@plt>
mov    $0x1,%bpl
mov    %rbx,%r13
test   %rax,%rax
jne    1358 <find_token+0x1b8>
add    $0x1,%r13
jmp    126f <find_token+0xcf>
cmpb   $0x78,0x1(%rbx)
jne    1349 <find_token+0x1a9>
lea    0x2(%rbx),%rbp
lea    0x1(%rbx),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl 0x1(%r13),%edi
add    $0x1,%r13
call   10c0 <isxdigit@plt>
test   %rax,%rax
jne    1300 <find_token+0x160>
movsbl 0x0(%r13),%edi
call   10b0 <isalpha@plt>
test   %rax,%rax
jne    132d <find_token+0x18d>
cmpb   $0x5f,0x0(%r13)
jne    1442 <find_token+0x2a2>
lea    0xef1(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <Nerror@plt>
movsbl %al,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     138b <find_token+0x1eb>
xor    %ebp,%ebp
mov    %rbx,%r13
nopl   0x0(%rax,%rax,1)
movsbl 0x0(%r13),%edi
call   1030 <isdigit@plt>
add    $0x1,%r13
test   %rax,%rax
jne    1360 <find_token+0x1c0>
mov    -0x1(%r13),%al
or     $0x20,%al
cmp    $0x64,%al
jne    13b2 <find_token+0x212>
test   %r12,%r12
je     13ed <find_token+0x24d>
lea    0xec4(%rip),%rsi
jmp    13c2 <find_token+0x222>
movsbl (%rbx),%esi
cmp    $0x7e,%esi
ja     1462 <find_token+0x2c2>
xor    %eax,%eax
lea    0xc60(%rip),%rcx
movslq (%rcx,%rsi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0x1(%rbx),%r13
jmp    126f <find_token+0xcf>
add    $0xffffffffffffffff,%r13
test   %r12,%r12
je     13ed <find_token+0x24d>
lea    0xe8e(%rip),%rsi
test   %r12,%r12
sete   0x3(%rsp)
mov    %rbx,%rdi
mov    %r12,%rdx
call   1090 <sscanf@plt>
xor    $0x1,%bpl
or     0x3(%rsp),%bpl
jne    13ed <find_token+0x24d>
mov    $0x3ffff,%eax
sub    (%r12),%eax
mov    %eax,(%r12)
movsbl 0x0(%r13),%edi
call   10b0 <isalpha@plt>
test   %rax,%rax
jne    1407 <find_token+0x267>
cmpb   $0x5f,0x0(%r13)
jne    126f <find_token+0xcf>
movsbl -0x1(%r13),%edi
call   10b0 <isalpha@plt>
test   %rax,%rax
lea    0xe64(%rip),%rax
lea    0xe55(%rip),%rsi
cmove  %rax,%rsi
lea    0xe26(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <Nerror@plt>
test   %r12,%r12
je     126f <find_token+0xcf>
lea    0xdf8(%rip),%rsi
mov    %rbp,%rdi
mov    %r12,%rdx
call   1090 <sscanf@plt>
jmp    126f <find_token+0xcf>
lea    0xe62(%rip),%rdi
jmp    1210 <find_token+0x70>
lea    0x1(%rbx),%rdi
lea    0x4(%rsp),%rsi
call   10a0 <get_char_literal@plt>
test   %rax,%rax
je     151a <find_token+0x37a>
mov    %rax,%r13
test   %r12,%r12
je     1495 <find_token+0x2f5>
mov    0x4(%rsp),%eax
mov    %eax,(%r12)
cmpb   $0x27,0x0(%r13)
je     12de <find_token+0x13e>
lea    0x4(%rsp),%rsi
mov    %r13,%rdi
call   10a0 <get_char_literal@plt>
test   %rax,%rax
je     151a <find_token+0x37a>
mov    %rax,%r13
test   %r12,%r12
je     14ce <find_token+0x32e>
mov    (%r12),%eax
shl    $0x9,%eax
or     0x4(%rsp),%eax
or     $0x40000,%eax
mov    %eax,(%r12)
cmpb   $0x27,0x0(%r13)
je     12de <find_token+0x13e>
lea    0xdcb(%rip),%rdi
xor    %eax,%eax
call   1060 <Nerror@plt>
jmp    1294 <find_token+0xf4>
lea    0x1(%rbx),%r13
lea    0x2(%rbx),%rax
cmpb   $0x2b,0x1(%rbx)
cmove  %rax,%r13
jmp    126f <find_token+0xcf>
cmpb   $0x3e,0x1(%rbx)
mov    %rbx,%r13
je     126f <find_token+0xcf>
lea    0xd70(%rip),%rdi
jmp    1334 <find_token+0x194>
xor    %eax,%eax
jmp    1294 <find_token+0xf4>

LLVM IR (-O0):
@.str = [41 x i8] c"Encountered '%c' alone in an instruction\00"
@.str.1 = [37 x i8] c"Hex number contains extra characters\00"
@.str.2 = [3 x i8] c"%x\00"
@.str.3 = [3 x i8] c"%u\00"
@.str.4 = [3 x i8] c"%o\00"
@.str.5 = [36 x i8] c"%s number contains extra characters\00"
@.str.6 = [8 x i8] c"Decimal\00"
@.str.7 = [6 x i8] c"Octal\00"
@.str.8 = [38 x i8] c"Unrecognized token beginning with '>'\00"
@.str.9 = [32 x i8] c"Unterminated character constant\00"
@.str.10 = [39 x i8] c"Unrecognized token beginning with '%c'\00"
define i8* @find_token(i8* %0, i32* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
store i8* %0, i8** %5
store i32* %1, i32** %6
store i32* %2, i32** %7
%12 = load i8*, i8** %5
store i8* %12, i8** %9
store i32 0, i32* %10
%13 = load i32*, i32** %7
%14 = icmp ne i32* %13, null
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = load i32*, i32** %7
store i32 -1, i32* %16
br label %17
17: ; preds = %15, %3
br label %18
18: ; preds = %23, %17
%19 = load i8*, i8** %9
%20 = load i8, i8* %19
%21 = call i64 @isspace(i8 signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i8*, i8** %9
%25 = getelementptr inbounds i8, i8* %24, i32 1
store i8* %25, i8** %9
br label %18
26: ; preds = %18
%27 = load i8*, i8** %9
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 36
br i1 %30, label %36, label %31
31: ; preds = %26
%32 = load i8*, i8** %9
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 35
br i1 %35, label %36, label %55
36: ; preds = %31, %26
%37 = load i8*, i8** %9
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %9
%39 = load i8*, i8** %9
%40 = load i8, i8* %39
%41 = call i64 @isalnum(i8 signext %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %54, label %43
43: ; preds = %36
%44 = load i8*, i8** %9
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 95
br i1 %47, label %48, label %54
48: ; preds = %43
%49 = load i8*, i8** %9
%50 = getelementptr inbounds i8, i8* %49, i64 -1
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %52)
store i8* %53, i8** %4
br label %373
54: ; preds = %43, %36
br label %55
55: ; preds = %54, %31
%56 = load i8*, i8** %9
%57 = load i8, i8* %56
%58 = call i64 @isalpha(i8 signext %57)
%59 = icmp ne i64 %58, 0
br i1 %59, label %65, label %60
60: ; preds = %55
%61 = load i8*, i8** %9
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 95
br i1 %64, label %65, label %96
65: ; preds = %60, %55
%66 = load i8*, i8** %9
store i8* %66, i8** %8
br label %67
67: ; preds = %79, %65
%68 = load i8*, i8** %9
%69 = load i8, i8* %68
%70 = call i64 @isalnum(i8 signext %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %77, label %72
72: ; preds = %67
%73 = load i8*, i8** %9
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 95
br label %77
77: ; preds = %72, %67
%78 = phi i1 [ true, %67 ], [ %76, %72 ]
br i1 %78, label %79, label %82
79: ; preds = %77
%80 = load i8*, i8** %9
%81 = getelementptr inbounds i8, i8* %80, i32 1
store i8* %81, i8** %9
br label %67
82: ; preds = %77
%83 = load i32*, i32** %7
%84 = icmp ne i32* %83, null
br i1 %84, label %85, label %95
85: ; preds = %82
%86 = load i8*, i8** %8
%87 = load i8*, i8** %9
%88 = load i8*, i8** %8
%89 = ptrtoint i8* %87 to i64
%90 = ptrtoint i8* %88 to i64
%91 = sub i64 %89, %90
%92 = trunc i64 %91 to i32
%93 = call i32 @true_value(i8* %86, i32 %92)
%94 = load i32*, i32** %7
store i32 %93, i32* %94
br label %95
95: ; preds = %85, %82
br label %354
96: ; preds = %60
%97 = load i8*, i8** %9
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 48
br i1 %100, label %101, label %149
101: ; preds = %96
%102 = load i8*, i8** %9
%103 = getelementptr inbounds i8, i8* %102, i64 1
%104 = load i8, i8* %103
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 120
br i1 %106, label %107, label %149
107: ; preds = %101
%108 = load i8*, i8** %9
store i8* %108, i8** %8
br label %109
109: ; preds = %178, %107
%110 = load i8*, i8** %9
%111 = getelementptr inbounds i8, i8* %110, i64 2
store i8* %111, i8** %9
br label %112
112: ; preds = %117, %109
%113 = load i8*, i8** %9
%114 = load i8, i8* %113
%115 = call i64 @isxdigit(i8 signext %114)
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %120
117: ; preds = %112
%118 = load i8*, i8** %9
%119 = getelementptr inbounds i8, i8* %118, i32 1
store i8* %119, i8** %9
br label %112
120: ; preds = %112
%121 = load i8*, i8** %9
%122 = load i8, i8* %121
%123 = call i64 @isalpha(i8 signext %122)
%124 = icmp ne i64 %123, 0
br i1 %124, label %130, label %125
125: ; preds = %120
%126 = load i8*, i8** %9
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 95
br i1 %129, label %130, label %132
130: ; preds = %125, %120
%131 = call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
store i8* %131, i8** %4
br label %373
132: ; preds = %125
%133 = load i32*, i32** %7
%134 = icmp ne i32* %133, null
br i1 %134, label %135, label %148
135: ; preds = %132
%136 = load i8*, i8** %8
%137 = getelementptr inbounds i8, i8* %136, i64 2
%138 = load i32*, i32** %7
%139 = call i32 @sscanf(i8* %137, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %138)
%140 = load i32, i32* %10
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %147
142: ; preds = %135
%143 = load i32*, i32** %7
%144 = load i32, i32* %143
%145 = sub i32 262143, %144
%146 = load i32*, i32** %7
store i32 %145, i32* %146
br label %147
147: ; preds = %142, %135
br label %148
148: ; preds = %147, %132
br label %353
149: ; preds = %101, %96
%150 = load i8*, i8** %9
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 45
br i1 %153, label %154, label %193
154: ; preds = %149
%155 = load i8*, i8** %9
store i8* %155, i8** %8
%156 = load i8*, i8** %9
%157 = getelementptr inbounds i8, i8* %156, i64 1
%158 = load i8, i8* %157
%159 = sext i8 %158 to i32
%160 = icmp eq i32 %159, 45
br i1 %160, label %161, label %164
161: ; preds = %154
%162 = load i8*, i8** %9
%163 = getelementptr inbounds i8, i8* %162, i32 1
store i8* %163, i8** %9
br label %190
164: ; preds = %154
%165 = load i32*, i32** %7
%166 = icmp ne i32* %165, null
br i1 %166, label %167, label %179
167: ; preds = %164
%168 = load i8*, i8** %9
%169 = load i8, i8* %168
%170 = sext i8 %169 to i32
%171 = icmp eq i32 %170, 48
br i1 %171, label %172, label %179
172: ; preds = %167
%173 = load i8*, i8** %9
%174 = getelementptr inbounds i8, i8* %173, i64 1
%175 = load i8, i8* %174
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 120
br i1 %177, label %178, label %179
178: ; preds = %172
store i32 1, i32* %10
br label %109
179: ; preds = %172, %167, %164
%180 = load i32*, i32** %7
%181 = icmp ne i32* %180, null
br i1 %181, label %182, label %188
182: ; preds = %179
%183 = load i8*, i8** %9
%184 = load i8, i8* %183
%185 = call i64 @isdigit(i8 signext %184)
%186 = icmp ne i64 %185, 0
br i1 %186, label %187, label %188
187: ; preds = %182
store i32 1, i32* %10
br label %200
188: ; preds = %182, %179
br label %189
189: ; preds = %188
br label %190
190: ; preds = %189, %161
%191 = load i8*, i8** %9
%192 = getelementptr inbounds i8, i8* %191, i32 1
store i8* %192, i8** %9
br label %352
193: ; preds = %149
%194 = load i8*, i8** %9
%195 = load i8, i8* %194
%196 = call i64 @isdigit(i8 signext %195)
%197 = icmp ne i64 %196, 0
br i1 %197, label %198, label %268
198: ; preds = %193
%199 = load i8*, i8** %9
store i8* %199, i8** %8
br label %200
200: ; preds = %198, %187
br label %201
201: ; preds = %206, %200
%202 = load i8*, i8** %9
%203 = load i8, i8* %202
%204 = call i64 @isdigit(i8 signext %203)
%205 = icmp ne i64 %204, 0
br i1 %205, label %206, label %209
206: ; preds = %201
%207 = load i8*, i8** %9
%208 = getelementptr inbounds i8, i8* %207, i32 1
store i8* %208, i8** %9
br label %201
209: ; preds = %201
%210 = load i8*, i8** %9
%211 = load i8, i8* %210
%212 = sext i8 %211 to i32
%213 = icmp eq i32 %212, 100
br i1 %213, label %219, label %214
214: ; preds = %209
%215 = load i8*, i8** %9
%216 = load i8, i8* %215
%217 = sext i8 %216 to i32
%218 = icmp eq i32 %217, 68
br i1 %218, label %219, label %229
219: ; preds = %214, %209
%220 = load i32*, i32** %7
%221 = icmp ne i32* %220, null
br i1 %221, label %222, label %226
222: ; preds = %219
%223 = load i8*, i8** %8
%224 = load i32*, i32** %7
%225 = call i32 @sscanf(i8* %223, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %224)
br label %226
226: ; preds = %222, %219
%227 = load i8*, i8** %9
%228 = getelementptr inbounds i8, i8* %227, i32 1
store i8* %228, i8** %9
br label %237
229: ; preds = %214
%230 = load i32*, i32** %7
%231 = icmp ne i32* %230, null
br i1 %231, label %232, label %236
232: ; preds = %229
%233 = load i8*, i8** %8
%234 = load i32*, i32** %7
%235 = call i32 @sscanf(i8* %233, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %234)
br label %236
236: ; preds = %232, %229
br label %237
237: ; preds = %236, %226
%238 = load i32, i32* %10
%239 = icmp ne i32 %238, 0
br i1 %239, label %240, label %248
240: ; preds = %237
%241 = load i32*, i32** %7
%242 = icmp ne i32* %241, null
br i1 %242, label %243, label %248
243: ; preds = %240
%244 = load i32*, i32** %7
%245 = load i32, i32* %244
%246 = sub i32 262143, %245
%247 = load i32*, i32** %7
store i32 %246, i32* %247
br label %248
248: ; preds = %243, %240, %237
%249 = load i8*, i8** %9
%250 = load i8, i8* %249
%251 = call i64 @isalpha(i8 signext %250)
%252 = icmp ne i64 %251, 0
br i1 %252, label %258, label %253
253: ; preds = %248
%254 = load i8*, i8** %9
%255 = load i8, i8* %254
%256 = sext i8 %255 to i32
%257 = icmp eq i32 %256, 95
br i1 %257, label %258, label %267
258: ; preds = %253, %248
%259 = load i8*, i8** %9
%260 = getelementptr inbounds i8, i8* %259, i64 -1
%261 = load i8, i8* %260
%262 = call i64 @isalpha(i8 signext %261)
%263 = icmp ne i64 %262, 0
%264 = zext i1 %263 to i64
%265 = select i1 %263, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0)
%266 = call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* %265)
store i8* %266, i8** %4
br label %373
267: ; preds = %253
br label %351
268: ; preds = %193
%269 = load i8*, i8** %9
%270 = load i8, i8* %269
%271 = sext i8 %270 to i32
switch i32 %271, label %345 [
i32 0, label %272
i32 91, label %273
i32 93, label %273
i32 42, label %273
i32 38, label %273
i32 124, label %273
i32 94, label %273
i32 40, label %273
i32 41, label %273
i32 44, label %273
i32 46, label %273
i32 126, label %273
i32 43, label %276
i32 62, label %287
i32 39, label %297
]
272: ; preds = %268
store i8* null, i8** %4
br label %373
273: ; preds = %268, %268, %268, %268, %268, %268, %268, %268, %268, %268, %268
%274 = load i8*, i8** %9
%275 = getelementptr inbounds i8, i8* %274, i32 1
store i8* %275, i8** %9
store i8* %274, i8** %8
br label %350
276: ; preds = %268
%277 = load i8*, i8** %9
%278 = getelementptr inbounds i8, i8* %277, i32 1
store i8* %278, i8** %9
store i8* %277, i8** %8
%279 = load i8*, i8** %9
%280 = load i8, i8* %279
%281 = sext i8 %280 to i32
%282 = icmp eq i32 %281, 43
br i1 %282, label %283, label %286
283: ; preds = %276
%284 = load i8*, i8** %9
%285 = getelementptr inbounds i8, i8* %284, i32 1
store i8* %285, i8** %9
br label %286
286: ; preds = %283, %276
br label %350
287: ; preds = %268
%288 = load i8*, i8** %9
store i8* %288, i8** %8
%289 = load i8*, i8** %9
%290 = getelementptr inbounds i8, i8* %289, i64 1
%291 = load i8, i8* %290
%292 = sext i8 %291 to i32
%293 = icmp ne i32 %292, 62
br i1 %293, label %294, label %296
294: ; preds = %287
%295 = call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
store i8* %295, i8** %4
br label %373
296: ; preds = %287
br label %350
297: ; preds = %268
%298 = load i8*, i8** %9
%299 = getelementptr inbounds i8, i8* %298, i32 1
store i8* %299, i8** %9
store i8* %298, i8** %8
%300 = load i8*, i8** %9
%301 = call i8* @get_char_literal(i8* %300, i32* %11)
store i8* %301, i8** %9
%302 = load i8*, i8** %9
%303 = icmp eq i8* %302, null
br i1 %303, label %304, label %305
304: ; preds = %297
store i8* null, i8** %4
br label %373
305: ; preds = %297
%306 = load i32*, i32** %7
%307 = icmp ne i32* %306, null
br i1 %307, label %308, label %311
308: ; preds = %305
%309 = load i32, i32* %11
%310 = load i32*, i32** %7
store i32 %309, i32* %310
br label %311
311: ; preds = %308, %305
%312 = load i8*, i8** %9
%313 = load i8, i8* %312
%314 = sext i8 %313 to i32
%315 = icmp eq i32 %314, 39
br i1 %315, label %316, label %319
316: ; preds = %311
%317 = load i8*, i8** %9
%318 = getelementptr inbounds i8, i8* %317, i64 1
store i8* %318, i8** %9
br label %350
319: ; preds = %311
%320 = load i8*, i8** %9
%321 = call i8* @get_char_literal(i8* %320, i32* %11)
store i8* %321, i8** %9
%322 = load i8*, i8** %9
%323 = icmp eq i8* %322, null
br i1 %323, label %324, label %325
324: ; preds = %319
store i8* null, i8** %4
br label %373
325: ; preds = %319
%326 = load i32*, i32** %7
%327 = icmp ne i32* %326, null
br i1 %327, label %328, label %336
328: ; preds = %325
%329 = load i32*, i32** %7
%330 = load i32, i32* %329
%331 = shl i32 %330, 9
%332 = or i32 262144, %331
%333 = load i32, i32* %11
%334 = or i32 %332, %333
%335 = load i32*, i32** %7
store i32 %334, i32* %335
br label %336
336: ; preds = %328, %325
%337 = load i8*, i8** %9
%338 = getelementptr inbounds i8, i8* %337, i32 1
store i8* %338, i8** %9
%339 = load i8, i8* %337
%340 = sext i8 %339 to i32
%341 = icmp ne i32 %340, 39
br i1 %341, label %342, label %344
342: ; preds = %336
%343 = call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
store i8* %343, i8** %4
br label %373
344: ; preds = %336
br label %350
345: ; preds = %268
%346 = load i8*, i8** %9
%347 = load i8, i8* %346
%348 = sext i8 %347 to i32
%349 = call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i32 %348)
store i8* %349, i8** %4
br label %373
350: ; preds = %344, %316, %296, %286, %273
br label %351
351: ; preds = %350, %267
br label %352
352: ; preds = %351, %190
br label %353
353: ; preds = %352, %148
br label %354
354: ; preds = %353, %95
%355 = load i8*, i8** %9
%356 = load i8*, i8** %8
%357 = icmp ugt i8* %355, %356
%358 = zext i1 %357 to i32
%359 = call i32 @assert(i32 %358)
%360 = load i8*, i8** %8
%361 = load i8*, i8** %5
%362 = icmp uge i8* %360, %361
%363 = zext i1 %362 to i32
%364 = call i32 @assert(i32 %363)
%365 = load i8*, i8** %9
%366 = load i8*, i8** %8
%367 = ptrtoint i8* %365 to i64
%368 = ptrtoint i8* %366 to i64
%369 = sub i64 %367, %368
%370 = trunc i64 %369 to i32
%371 = load i32*, i32** %6
store i32 %370, i32* %371
%372 = load i8*, i8** %8
store i8* %372, i8** %4
br label %373
373: ; preds = %354, %345, %342, %324, %304, %294, %272, %258, %130, %48
%374 = load i8*, i8** %4
ret i8* %374
}

LLVM IR (-O2):
@.str = [41 x i8] c"Encountered '%c' alone in an instruction\00"
@.str.1 = [37 x i8] c"Hex number contains extra characters\00"
@.str.2 = [3 x i8] c"%x\00"
@.str.3 = [3 x i8] c"%u\00"
@.str.4 = [3 x i8] c"%o\00"
@.str.5 = [36 x i8] c"%s number contains extra characters\00"
@.str.6 = [8 x i8] c"Decimal\00"
@.str.7 = [6 x i8] c"Octal\00"
@.str.8 = [38 x i8] c"Unrecognized token beginning with '>'\00"
@.str.9 = [32 x i8] c"Unterminated character constant\00"
@.str.10 = [39 x i8] c"Unrecognized token beginning with '%c'\00"
define i8* @find_token(i8* %0, i32* nocapture writeonly %1, i32* %2) {
%4 = alloca i32
%5 = icmp ne i32* %2, null
br i1 %5, label %6, label %7
6: ; preds = %3
store i32 -1, i32* %2
br label %7
7: ; preds = %6, %3
br label %8
8: ; preds = %7, %8
%9 = phi i8* [ %13, %8 ], [ %0, %7 ]
%10 = load i8, i8* %9
%11 = tail call i64 @isspace(i8 signext %10)
%12 = icmp eq i64 %11, 0
%13 = getelementptr inbounds i8, i8* %9, i64 1
br i1 %12, label %14, label %8
14: ; preds = %8
%15 = load i8, i8* %9
%16 = add i8 %15, -35
%17 = icmp ult i8 %16, 2
br i1 %17, label %18, label %29
18: ; preds = %14
%19 = load i8, i8* %13
%20 = tail call i64 @isalnum(i8 signext %19)
%21 = icmp eq i64 %20, 0
%22 = load i8, i8* %13
br i1 %21, label %23, label %29
23: ; preds = %18
%24 = icmp eq i8 %22, 95
br i1 %24, label %29, label %25
25: ; preds = %23
%26 = load i8, i8* %9
%27 = sext i8 %26 to i32
%28 = tail call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %27)
br label %191
29: ; preds = %18, %14, %23
%30 = phi i8 [ 95, %23 ], [ %15, %14 ], [ %22, %18 ]
%31 = phi i8* [ %13, %23 ], [ %9, %14 ], [ %13, %18 ]
%32 = tail call i64 @isalpha(i8 signext %30)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %29
%35 = load i8, i8* %31
switch i8 %35, label %91 [
i8 95, label %36
i8 48, label %54
i8 45, label %78
]
36: ; preds = %34, %29
br label %37
37: ; preds = %36, %45
%38 = phi i8* [ %46, %45 ], [ %31, %36 ]
%39 = load i8, i8* %38
%40 = tail call i64 @isalnum(i8 signext %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %37
%43 = load i8, i8* %38
%44 = icmp eq i8 %43, 95
br i1 %44, label %45, label %47
45: ; preds = %37, %42
%46 = getelementptr inbounds i8, i8* %38, i64 1
br label %37
47: ; preds = %42
br i1 %5, label %48, label %179
48: ; preds = %47
%49 = ptrtoint i8* %38 to i64
%50 = ptrtoint i8* %31 to i64
%51 = sub i64 %49, %50
%52 = trunc i64 %51 to i32
%53 = tail call i32 @true_value(i8* %31, i32 %52)
store i32 %53, i32* %2
br label %179
54: ; preds = %34
%55 = getelementptr inbounds i8, i8* %31, i64 1
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 120
br i1 %57, label %58, label %91
58: ; preds = %54
%59 = getelementptr inbounds i8, i8* %31, i64 2
br label %60
60: ; preds = %60, %58
%61 = phi i8* [ %59, %58 ], [ %65, %60 ]
%62 = load i8, i8* %61
%63 = tail call i64 @isxdigit(i8 signext %62)
%64 = icmp eq i64 %63, 0
%65 = getelementptr inbounds i8, i8* %61, i64 1
br i1 %64, label %66, label %60
66: ; preds = %60
%67 = load i8, i8* %61
%68 = tail call i64 @isalpha(i8 signext %67)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = load i8, i8* %61
%72 = icmp eq i8 %71, 95
br i1 %72, label %73, label %75
73: ; preds = %70, %66
%74 = tail call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
br label %191
75: ; preds = %70
br i1 %5, label %76, label %179
76: ; preds = %75
%77 = tail call i32 @sscanf(i8* %59, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
br label %179
78: ; preds = %34
%79 = getelementptr inbounds i8, i8* %31, i64 1
%80 = load i8, i8* %79
%81 = icmp eq i8 %80, 45
%82 = xor i1 %5, true
%83 = or i1 %81, %82
%84 = select i1 %81, i8* %79, i8* %31
br i1 %83, label %88, label %85
85: ; preds = %78
%86 = tail call i64 @isdigit(i8 signext 45)
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %94
88: ; preds = %78, %85
%89 = phi i8* [ %31, %85 ], [ %84, %78 ]
%90 = getelementptr inbounds i8, i8* %89, i64 1
br label %179
91: ; preds = %34, %54
%92 = tail call i64 @isdigit(i8 signext %35)
%93 = icmp eq i64 %92, 0
br i1 %93, label %129, label %94
94: ; preds = %91, %85
%95 = phi i1 [ false, %91 ], [ true, %85 ]
br label %96
96: ; preds = %96, %94
%97 = phi i8* [ %31, %94 ], [ %101, %96 ]
%98 = load i8, i8* %97
%99 = tail call i64 @isdigit(i8 signext %98)
%100 = icmp eq i64 %99, 0
%101 = getelementptr inbounds i8, i8* %97, i64 1
br i1 %100, label %102, label %96
102: ; preds = %96
%103 = load i8, i8* %97
switch i8 %103, label %105 [
i8 100, label %104
i8 68, label %104
]
104: ; preds = %102, %102
br i1 %5, label %106, label %114
105: ; preds = %102
br i1 %5, label %106, label %114
106: ; preds = %105, %104
%107 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), %104 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), %105 ]
%108 = phi i8* [ %101, %104 ], [ %97, %105 ]
%109 = tail call i32 @sscanf(i8* %31, i8* %107, i32* %2)
%110 = and i1 %5, %95
br i1 %110, label %111, label %114
111: ; preds = %106
%112 = load i32, i32* %2
%113 = sub i32 262143, %112
store i32 %113, i32* %2
br label %114
114: ; preds = %104, %105, %111, %106
%115 = phi i8* [ %108, %111 ], [ %108, %106 ], [ %97, %105 ], [ %101, %104 ]
%116 = load i8, i8* %115
%117 = tail call i64 @isalpha(i8 signext %116)
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %114
%120 = load i8, i8* %115
%121 = icmp eq i8 %120, 95
br i1 %121, label %122, label %179
122: ; preds = %119, %114
%123 = getelementptr inbounds i8, i8* %115, i64 -1
%124 = load i8, i8* %123
%125 = tail call i64 @isalpha(i8 signext %124)
%126 = icmp eq i64 %125, 0
%127 = select i1 %126, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0)
%128 = tail call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* %127)
br label %191
129: ; preds = %91
%130 = load i8, i8* %31
%131 = sext i8 %130 to i32
switch i32 %131, label %177 [
i32 0, label %191
i32 91, label %132
i32 93, label %132
i32 42, label %132
i32 38, label %132
i32 124, label %132
i32 94, label %132
i32 40, label %132
i32 41, label %132
i32 44, label %132
i32 46, label %132
i32 126, label %132
i32 43, label %134
i32 62, label %140
i32 39, label %146
]
132: ; preds = %129, %129, %129, %129, %129, %129, %129, %129, %129, %129, %129
%133 = getelementptr inbounds i8, i8* %31, i64 1
br label %179
134: ; preds = %129
%135 = getelementptr inbounds i8, i8* %31, i64 1
%136 = load i8, i8* %135
%137 = icmp eq i8 %136, 43
%138 = getelementptr inbounds i8, i8* %31, i64 2
%139 = select i1 %137, i8* %138, i8* %135
br label %179
140: ; preds = %129
%141 = getelementptr inbounds i8, i8* %31, i64 1
%142 = load i8, i8* %141
%143 = icmp eq i8 %142, 62
br i1 %143, label %179, label %144
144: ; preds = %140
%145 = tail call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
br label %191
146: ; preds = %129
%147 = bitcast i32* %4 to i8*
%148 = getelementptr inbounds i8, i8* %31, i64 1
%149 = call i8* @get_char_literal(i8* %148, i32* %4)
%150 = icmp eq i8* %149, null
br i1 %150, label %172, label %151
151: ; preds = %146
br i1 %5, label %152, label %154
152: ; preds = %151
%153 = load i32, i32* %4
store i32 %153, i32* %2
br label %154
154: ; preds = %152, %151
%155 = load i8, i8* %149
%156 = icmp eq i8 %155, 39
br i1 %156, label %174, label %157
157: ; preds = %154
%158 = call i8* @get_char_literal(i8* %149, i32* %4)
%159 = icmp eq i8* %158, null
br i1 %159, label %172, label %160
160: ; preds = %157
br i1 %5, label %161, label %167
161: ; preds = %160
%162 = load i32, i32* %2
%163 = shl i32 %162, 9
%164 = load i32, i32* %4
%165 = or i32 %164, %163
%166 = or i32 %165, 262144
store i32 %166, i32* %2
br label %167
167: ; preds = %161, %160
%168 = load i8, i8* %158
%169 = icmp eq i8 %168, 39
br i1 %169, label %174, label %170
170: ; preds = %167
%171 = call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
br label %172
172: ; preds = %170, %146, %157
%173 = phi i8* [ null, %157 ], [ null, %146 ], [ %171, %170 ]
br label %191
174: ; preds = %154, %167
%175 = phi i8* [ %158, %167 ], [ %149, %154 ]
%176 = getelementptr inbounds i8, i8* %175, i64 1
br label %179
177: ; preds = %129
%178 = tail call i8* (i8*, ...) @Nerror(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.10, i64 0, i64 0), i32 %131)
br label %191
179: ; preds = %174, %134, %76, %75, %119, %140, %132, %88, %47, %48
%180 = phi i8* [ %38, %48 ], [ %38, %47 ], [ %61, %76 ], [ %61, %75 ], [ %90, %88 ], [ %115, %119 ], [ %176, %174 ], [ %31, %140 ], [ %133, %132 ], [ %139, %134 ]
%181 = icmp ugt i8* %180, %31
%182 = zext i1 %181 to i32
%183 = call i32 @assert(i32 %182)
%184 = icmp uge i8* %31, %0
%185 = zext i1 %184 to i32
%186 = call i32 @assert(i32 %185)
%187 = ptrtoint i8* %180 to i64
%188 = ptrtoint i8* %31 to i64
%189 = sub i64 %187, %188
%190 = trunc i64 %189 to i32
store i32 %190, i32* %1
br label %191
191: ; preds = %172, %129, %179, %177, %144, %122, %73, %25
%192 = phi i8* [ %31, %179 ], [ %74, %73 ], [ %128, %122 ], [ %178, %177 ], [ %145, %144 ], [ %28, %25 ], [ null, %129 ], [ %173, %172 ]
ret i8* %192
}