#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 */
typedef int /*<<< orphan*/ token_buf;

/* Variables and functions */
int /*<<< orphan*/ strncpy(char *, char *, unsigned int);
char *get_next_token(char *inbuf) {
  unsigned int len;
  int in_quote = 0;
  static int eob = 1;
  char *token_begin;
  static char *t_index = NULL;
  static char *last_inbuf = NULL;
  static char token_buf[256];
  if ((inbuf == NULL) && (last_inbuf == NULL)) {
    return NULL;
  }
  if (eob) {
    eob = 0;
    t_index = inbuf;
  }
  if ((t_index == NULL) || (*t_index == '\0') || (*t_index == '#') ||
      (*t_index == '\n')) {
    eob = 1;
    return NULL;
  }
  while ((*t_index == ' ') || (*t_index == '\t')) {
    t_index++;
  }
  if (*t_index == '"') {
    in_quote = 1;
    t_index++;
  }
  token_begin = t_index;
  if (in_quote) {
    while (*t_index != '"') {
      t_index++;
    }
  } else if ((*t_index == '{') || (*t_index == '}') || (*t_index == ';') ||
             (*t_index == '=') || (*t_index == ',')) {
    t_index++;
  } else {
    while ((*t_index != ' ') && (*t_index != '\t') && (*t_index != '{') &&
           (*t_index != '}') && (*t_index != ';') && (*t_index != '=') &&
           (*t_index != '\0') && (*t_index != '\n') && (*t_index != '#') &&
           (*t_index != ',')) {
      t_index++;
    }
  }
  if ((t_index == token_begin) &&
      ((*t_index == '\0') || (*t_index == '\n') || (*t_index == '#'))) {
    eob = 1;
    return NULL;
  }
  len = (long unsigned int)(t_index - token_begin) % sizeof(token_buf);
  strncpy(token_buf, token_begin, len);
  token_buf[len] = '\0';
  if (in_quote) {
    t_index++;
  }
  while ((*t_index == ' ') || (*t_index == '\t')) {
    t_index++;
  }
  return token_buf;
}


x86 assembly (clang, -O0):
<get_next_token>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1149 <get_next_token+0x39>
cmpq   $0x0,0x2f12(%rip)
jne    1149 <get_next_token+0x39>
movq   $0x0,-0x8(%rbp)
jmp    1545 <get_next_token+0x435>
cmpl   $0x0,0x2ed8(%rip)
je     116b <get_next_token+0x5b>
movl   $0x0,0x2ec8(%rip)
mov    -0x10(%rbp),%rax
mov    %rax,0x2ed5(%rip)
cmpq   $0x0,0x2ecd(%rip)
je     11b2 <get_next_token+0xa2>
mov    0x2ec0(%rip),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11b2 <get_next_token+0xa2>
mov    0x2ead(%rip),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     11b2 <get_next_token+0xa2>
mov    0x2e9a(%rip),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    11c9 <get_next_token+0xb9>
movl   $0x1,0x2e6c(%rip)
movq   $0x0,-0x8(%rbp)
jmp    1545 <get_next_token+0x435>
jmp    11ce <get_next_token+0xbe>
mov    0x2e6b(%rip),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x21(%rbp)
je     11f9 <get_next_token+0xe9>
mov    0x2e53(%rip),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1209 <get_next_token+0xf9>
jmp    1220 <get_next_token+0x110>
mov    0x2e30(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2e25(%rip)
jmp    11ce <get_next_token+0xbe>
mov    0x2e19(%rip),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    124c <get_next_token+0x13c>
movl   $0x1,-0x18(%rbp)
mov    0x2dff(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2df4(%rip)
mov    0x2ded(%rip),%rax
mov    %rax,-0x20(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1295 <get_next_token+0x185>
jmp    1266 <get_next_token+0x156>
mov    0x2dd3(%rip),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
je     1290 <get_next_token+0x180>
mov    0x2dc0(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2db5(%rip)
jmp    1266 <get_next_token+0x156>
jmp    142c <get_next_token+0x31c>
mov    0x2da4(%rip),%rax
movsbl (%rax),%eax
cmp    $0x7b,%eax
je     12f4 <get_next_token+0x1e4>
mov    0x2d91(%rip),%rax
movsbl (%rax),%eax
cmp    $0x7d,%eax
je     12f4 <get_next_token+0x1e4>
mov    0x2d7e(%rip),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     12f4 <get_next_token+0x1e4>
mov    0x2d6b(%rip),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
je     12f4 <get_next_token+0x1e4>
mov    0x2d58(%rip),%rax
movsbl (%rax),%eax
cmp    $0x2c,%eax
jne    130b <get_next_token+0x1fb>
mov    0x2d45(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2d3a(%rip)
jmp    1427 <get_next_token+0x317>
jmp    1310 <get_next_token+0x200>
mov    0x2d29(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2d11(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x9,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2cf9(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x7b,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2ce1(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x7d,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2cc9(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x3b,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2cb1(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x3d,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2c99(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2c81(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2c69(%rip),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x23,%ecx
mov    %al,-0x22(%rbp)
je     13fb <get_next_token+0x2eb>
mov    0x2c51(%rip),%rax
movsbl (%rax),%eax
cmp    $0x2c,%eax
setne  %al
mov    %al,-0x22(%rbp)
mov    -0x22(%rbp),%al
test   $0x1,%al
jne    140b <get_next_token+0x2fb>
jmp    1422 <get_next_token+0x312>
mov    0x2c2e(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2c23(%rip)
jmp    1310 <get_next_token+0x200>
jmp    1427 <get_next_token+0x317>
jmp    142c <get_next_token+0x31c>
mov    0x2c0d(%rip),%rax
cmp    -0x20(%rbp),%rax
jne    148d <get_next_token+0x37d>
mov    0x2bfc(%rip),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1476 <get_next_token+0x366>
mov    0x2be9(%rip),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     1476 <get_next_token+0x366>
mov    0x2bd6(%rip),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    148d <get_next_token+0x37d>
movl   $0x1,0x2ba8(%rip)
movq   $0x0,-0x8(%rbp)
jmp    1545 <get_next_token+0x435>
mov    0x2bac(%rip),%rax
mov    -0x20(%rbp),%rcx
sub    %rcx,%rax
and    $0xff,%rax
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0x2b9e(%rip),%rdi
call   1030 <strncpy@plt>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
lea    0x2b8d(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x0,-0x18(%rbp)
je     14e3 <get_next_token+0x3d3>
mov    0x2b68(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2b5d(%rip)
jmp    14e8 <get_next_token+0x3d8>
mov    0x2b51(%rip),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x23(%rbp)
je     1513 <get_next_token+0x403>
mov    0x2b39(%rip),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x23(%rbp)
mov    -0x23(%rbp),%al
test   $0x1,%al
jne    1523 <get_next_token+0x413>
jmp    153a <get_next_token+0x42a>
mov    0x2b16(%rip),%rax
add    $0x1,%rax
mov    %rax,0x2b0b(%rip)
jmp    14e8 <get_next_token+0x3d8>
lea    0x2b0f(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_next_token>:
push   %r15
push   %r14
push   %rbx
xor    %r15d,%r15d
test   %rdi,%rdi
je     1165 <get_next_token+0x55>
cmpb   $0x0,0x2f1c(%rip)
je     1134 <get_next_token+0x24>
mov    0x2f1b(%rip),%rdi
test   %rdi,%rdi
jne    1142 <get_next_token+0x32>
jmp    115b <get_next_token+0x4b>
movb   $0x1,0x2f05(%rip)
mov    %rdi,0x2f06(%rip)
movzbl (%rdi),%ebx
cmp    $0x23,%rbx
ja     117a <get_next_token+0x6a>
movabs $0x800000401,%rax
bt     %rbx,%rax
jae    117a <get_next_token+0x6a>
movb   $0x0,0x2ede(%rip)
xor    %r15d,%r15d
mov    %r15,%rax
pop    %rbx
pop    %r14
pop    %r15
ret
xchg   %ax,%ax
mov    %rdi,0x2ed1(%rip)
movzbl (%rdi),%ebx
add    $0x1,%rdi
cmp    $0x20,%bl
je     1170 <get_next_token+0x60>
cmp    $0x9,%bl
je     1170 <get_next_token+0x60>
lea    -0x1(%rdi),%rsi
cmp    $0x22,%bl
jne    11c5 <get_next_token+0xb5>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmpb   $0x22,0x1(%rsi)
lea    0x1(%rsi),%rsi
jne    11a0 <get_next_token+0x90>
mov    %rsi,0x2e97(%rip)
mov    %rsi,%rax
mov    %rdi,%rsi
cmp    %rsi,%rax
je     125d <get_next_token+0x14d>
mov    %rax,%rdi
jmp    11ee <get_next_token+0xde>
movzbl %bl,%eax
cmp    $0x3d,%bl
ja     11dd <get_next_token+0xcd>
movabs $0x2800100000000000,%rcx
bt     %rax,%rcx
jb     11e7 <get_next_token+0xd7>
cmp    $0x7b,%bl
je     11e7 <get_next_token+0xd7>
cmp    $0x7d,%bl
jne    1219 <get_next_token+0x109>
mov    %rdi,0x2e5a(%rip)
sub    %esi,%edi
movzbl %dil,%r14d
lea    0x2e55(%rip),%r15
mov    %r15,%rdi
mov    %r14d,%edx
call   1030 <strncpy@plt>
movb   $0x0,(%r14,%r15,1)
mov    0x2e36(%rip),%rax
cmp    $0x22,%bl
jne    1291 <get_next_token+0x181>
jmp    1286 <get_next_token+0x176>
movabs $0x2800100900000601,%rax
mov    %ebx,%ecx
movzbl %cl,%edx
cmp    $0x3d,%dl
ja     1233 <get_next_token+0x123>
bt     %rdx,%rax
jb     124d <get_next_token+0x13d>
cmp    $0x7b,%cl
je     124d <get_next_token+0x13d>
cmp    $0x7d,%cl
je     124d <get_next_token+0x13d>
mov    %rdi,0x2e04(%rip)
movzbl (%rdi),%ecx
add    $0x1,%rdi
jmp    1225 <get_next_token+0x115>
add    $0xffffffffffffffff,%rdi
mov    %rdi,%rax
cmp    %rsi,%rax
jne    11c0 <get_next_token+0xb0>
movzbl (%rax),%ecx
cmp    $0x23,%rcx
ja     11c0 <get_next_token+0xb0>
movabs $0x800000401,%rdx
bt     %rcx,%rdx
mov    %rax,%rdi
jb     115b <get_next_token+0x4b>
jmp    11ee <get_next_token+0xde>
add    $0x1,%rax
mov    %rax,0x2db7(%rip)
mov    (%rax),%cl
cmp    $0x9,%cl
je     1286 <get_next_token+0x176>
cmp    $0x20,%cl
je     1286 <get_next_token+0x176>
jmp    1165 <get_next_token+0x55>

LLVM IR (-O0):
@get_next_token.eob = internal global i32 1
@get_next_token.t_index = internal global i8* null
@get_next_token.last_inbuf = internal global i8* null
@get_next_token.token_buf = internal global [256 x i8] zeroinitializer
define i8* @get_next_token(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %3
store i32 0, i32* %5
%7 = load i8*, i8** %3
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i8*, i8** @get_next_token.last_inbuf
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %13
12: ; preds = %9
store i8* null, i8** %2
br label %217
13: ; preds = %9, %1
%14 = load i32, i32* @get_next_token.eob
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
store i32 0, i32* @get_next_token.eob
%17 = load i8*, i8** %3
store i8* %17, i8** @get_next_token.t_index
br label %18
18: ; preds = %16, %13
%19 = load i8*, i8** @get_next_token.t_index
%20 = icmp eq i8* %19, null
br i1 %20, label %36, label %21
21: ; preds = %18
%22 = load i8*, i8** @get_next_token.t_index
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label %36, label %26
26: ; preds = %21
%27 = load i8*, i8** @get_next_token.t_index
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 35
br i1 %30, label %36, label %31
31: ; preds = %26
%32 = load i8*, i8** @get_next_token.t_index
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %37
36: ; preds = %31, %26, %21, %18
store i32 1, i32* @get_next_token.eob
store i8* null, i8** %2
br label %217
37: ; preds = %31
br label %38
38: ; preds = %50, %37
%39 = load i8*, i8** @get_next_token.t_index
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 32
br i1 %42, label %48, label %43
43: ; preds = %38
%44 = load i8*, i8** @get_next_token.t_index
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 9
br label %48
48: ; preds = %43, %38
%49 = phi i1 [ true, %38 ], [ %47, %43 ]
br i1 %49, label %50, label %53
50: ; preds = %48
%51 = load i8*, i8** @get_next_token.t_index
%52 = getelementptr inbounds i8, i8* %51, i32 1
store i8* %52, i8** @get_next_token.t_index
br label %38
53: ; preds = %48
%54 = load i8*, i8** @get_next_token.t_index
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 34
br i1 %57, label %58, label %61
58: ; preds = %53
store i32 1, i32* %5
%59 = load i8*, i8** @get_next_token.t_index
%60 = getelementptr inbounds i8, i8* %59, i32 1
store i8* %60, i8** @get_next_token.t_index
br label %61
61: ; preds = %58, %53
%62 = load i8*, i8** @get_next_token.t_index
store i8* %62, i8** %6
%63 = load i32, i32* %5
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %75
65: ; preds = %61
br label %66
66: ; preds = %71, %65
%67 = load i8*, i8** @get_next_token.t_index
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 34
br i1 %70, label %71, label %74
71: ; preds = %66
%72 = load i8*, i8** @get_next_token.t_index
%73 = getelementptr inbounds i8, i8* %72, i32 1
store i8* %73, i8** @get_next_token.t_index
br label %66
74: ; preds = %66
br label %161
75: ; preds = %61
%76 = load i8*, i8** @get_next_token.t_index
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 123
br i1 %79, label %100, label %80
80: ; preds = %75
%81 = load i8*, i8** @get_next_token.t_index
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 125
br i1 %84, label %100, label %85
85: ; preds = %80
%86 = load i8*, i8** @get_next_token.t_index
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 59
br i1 %89, label %100, label %90
90: ; preds = %85
%91 = load i8*, i8** @get_next_token.t_index
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 61
br i1 %94, label %100, label %95
95: ; preds = %90
%96 = load i8*, i8** @get_next_token.t_index
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 44
br i1 %99, label %100, label %103
100: ; preds = %95, %90, %85, %80, %75
%101 = load i8*, i8** @get_next_token.t_index
%102 = getelementptr inbounds i8, i8* %101, i32 1
store i8* %102, i8** @get_next_token.t_index
br label %160
103: ; preds = %95
br label %104
104: ; preds = %156, %103
%105 = load i8*, i8** @get_next_token.t_index
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = icmp ne i32 %107, 32
br i1 %108, label %109, label %154
109: ; preds = %104
%110 = load i8*, i8** @get_next_token.t_index
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = icmp ne i32 %112, 9
br i1 %113, label %114, label %154
114: ; preds = %109
%115 = load i8*, i8** @get_next_token.t_index
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = icmp ne i32 %117, 123
br i1 %118, label %119, label %154
119: ; preds = %114
%120 = load i8*, i8** @get_next_token.t_index
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 125
br i1 %123, label %124, label %154
124: ; preds = %119
%125 = load i8*, i8** @get_next_token.t_index
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = icmp ne i32 %127, 59
br i1 %128, label %129, label %154
129: ; preds = %124
%130 = load i8*, i8** @get_next_token.t_index
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = icmp ne i32 %132, 61
br i1 %133, label %134, label %154
134: ; preds = %129
%135 = load i8*, i8** @get_next_token.t_index
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %154
139: ; preds = %134
%140 = load i8*, i8** @get_next_token.t_index
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp ne i32 %142, 10
br i1 %143, label %144, label %154
144: ; preds = %139
%145 = load i8*, i8** @get_next_token.t_index
%146 = load i8, i8* %145
%147 = sext i8 %146 to i32
%148 = icmp ne i32 %147, 35
br i1 %148, label %149, label %154
149: ; preds = %144
%150 = load i8*, i8** @get_next_token.t_index
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = icmp ne i32 %152, 44
br label %154
154: ; preds = %149, %144, %139, %134, %129, %124, %119, %114, %109, %104
%155 = phi i1 [ false, %144 ], [ false, %139 ], [ false, %134 ], [ false, %129 ], [ false, %124 ], [ false, %119 ], [ false, %114 ], [ false, %109 ], [ false, %104 ], [ %153, %149 ]
br i1 %155, label %156, label %159
156: ; preds = %154
%157 = load i8*, i8** @get_next_token.t_index
%158 = getelementptr inbounds i8, i8* %157, i32 1
store i8* %158, i8** @get_next_token.t_index
br label %104
159: ; preds = %154
br label %160
160: ; preds = %159, %100
br label %161
161: ; preds = %160, %74
%162 = load i8*, i8** @get_next_token.t_index
%163 = load i8*, i8** %6
%164 = icmp eq i8* %162, %163
br i1 %164, label %165, label %181
165: ; preds = %161
%166 = load i8*, i8** @get_next_token.t_index
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = icmp eq i32 %168, 0
br i1 %169, label %180, label %170
170: ; preds = %165
%171 = load i8*, i8** @get_next_token.t_index
%172 = load i8, i8* %171
%173 = sext i8 %172 to i32
%174 = icmp eq i32 %173, 10
br i1 %174, label %180, label %175
175: ; preds = %170
%176 = load i8*, i8** @get_next_token.t_index
%177 = load i8, i8* %176
%178 = sext i8 %177 to i32
%179 = icmp eq i32 %178, 35
br i1 %179, label %180, label %181
180: ; preds = %175, %170, %165
store i32 1, i32* @get_next_token.eob
store i8* null, i8** %2
br label %217
181: ; preds = %175, %161
%182 = load i8*, i8** @get_next_token.t_index
%183 = load i8*, i8** %6
%184 = ptrtoint i8* %182 to i64
%185 = ptrtoint i8* %183 to i64
%186 = sub i64 %184, %185
%187 = urem i64 %186, 256
%188 = trunc i64 %187 to i32
store i32 %188, i32* %4
%189 = load i8*, i8** %6
%190 = load i32, i32* %4
%191 = call i32 @strncpy(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @get_next_token.token_buf, i64 0, i64 0), i8* %189, i32 %190)
%192 = load i32, i32* %4
%193 = zext i32 %192 to i64
%194 = getelementptr inbounds [256 x i8], [256 x i8]* @get_next_token.token_buf, i64 0, i64 %193
store i8 0, i8* %194
%195 = load i32, i32* %5
%196 = icmp ne i32 %195, 0
br i1 %196, label %197, label %200
197: ; preds = %181
%198 = load i8*, i8** @get_next_token.t_index
%199 = getelementptr inbounds i8, i8* %198, i32 1
store i8* %199, i8** @get_next_token.t_index
br label %200
200: ; preds = %197, %181
br label %201
201: ; preds = %213, %200
%202 = load i8*, i8** @get_next_token.t_index
%203 = load i8, i8* %202
%204 = sext i8 %203 to i32
%205 = icmp eq i32 %204, 32
br i1 %205, label %211, label %206
206: ; preds = %201
%207 = load i8*, i8** @get_next_token.t_index
%208 = load i8, i8* %207
%209 = sext i8 %208 to i32
%210 = icmp eq i32 %209, 9
br label %211
211: ; preds = %206, %201
%212 = phi i1 [ true, %201 ], [ %210, %206 ]
br i1 %212, label %213, label %216
213: ; preds = %211
%214 = load i8*, i8** @get_next_token.t_index
%215 = getelementptr inbounds i8, i8* %214, i32 1
store i8* %215, i8** @get_next_token.t_index
br label %201
216: ; preds = %211
store i8* getelementptr inbounds ([256 x i8], [256 x i8]* @get_next_token.token_buf, i64 0, i64 0), i8** %2
br label %217
217: ; preds = %216, %180, %36, %12
%218 = load i8*, i8** %2
ret i8* %218
}

LLVM IR (-O2):
@get_next_token.eob = internal unnamed_addr global i1 false
@get_next_token.t_index = internal unnamed_addr global i8* null
@get_next_token.token_buf = internal global [256 x i8] zeroinitializer
define i8* @get_next_token(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %62, label %3
3: ; preds = %1
%4 = load i1, i1* @get_next_token.eob
br i1 %4, label %6, label %5
5: ; preds = %3
store i1 true, i1* @get_next_token.eob
store i8* %0, i8** @get_next_token.t_index
br label %9
6: ; preds = %3
%7 = load i8*, i8** @get_next_token.t_index
%8 = icmp eq i8* %7, null
br i1 %8, label %61, label %9
9: ; preds = %5, %6
%10 = phi i8* [ %0, %5 ], [ %7, %6 ]
%11 = load i8, i8* %10
switch i8 %11, label %12 [
i8 0, label %61
i8 35, label %61
i8 10, label %61
]
12: ; preds = %9, %15
%13 = phi i8 [ %17, %15 ], [ %11, %9 ]
%14 = phi i8* [ %16, %15 ], [ %10, %9 ]
switch i8 %13, label %18 [
i8 32, label %15
i8 9, label %15
]
15: ; preds = %12, %12
%16 = getelementptr inbounds i8, i8* %14, i64 1
store i8* %16, i8** @get_next_token.t_index
%17 = load i8, i8* %16
br label %12
18: ; preds = %12
%19 = icmp eq i8 %13, 34
br i1 %19, label %20, label %27
20: ; preds = %18
%21 = getelementptr inbounds i8, i8* %14, i64 1
br label %22
22: ; preds = %22, %20
%23 = phi i8* [ %21, %20 ], [ %26, %22 ]
%24 = load i8, i8* %23
%25 = icmp eq i8 %24, 34
%26 = getelementptr inbounds i8, i8* %23, i64 1
br i1 %25, label %36, label %22
27: ; preds = %18
switch i8 %13, label %30 [
i8 123, label %28
i8 125, label %28
i8 59, label %28
i8 61, label %28
i8 44, label %28
]
28: ; preds = %27, %27, %27, %27, %27
%29 = getelementptr inbounds i8, i8* %14, i64 1
store i8* %29, i8** @get_next_token.t_index
br label %43
30: ; preds = %27, %33
%31 = phi i8 [ %35, %33 ], [ %13, %27 ]
%32 = phi i8* [ %34, %33 ], [ %14, %27 ]
switch i8 %31, label %33 [
i8 32, label %37
i8 9, label %37
i8 123, label %37
i8 125, label %37
i8 59, label %37
i8 61, label %37
i8 0, label %37
i8 10, label %37
i8 35, label %37
i8 44, label %37
]
33: ; preds = %30
%34 = getelementptr inbounds i8, i8* %32, i64 1
store i8* %34, i8** @get_next_token.t_index
%35 = load i8, i8* %34
br label %30
36: ; preds = %22
store i8* %23, i8** @get_next_token.t_index
br label %37
37: ; preds = %30, %30, %30, %30, %30, %30, %30, %30, %30, %30, %36
%38 = phi i8* [ %23, %36 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ], [ %32, %30 ]
%39 = phi i8* [ %21, %36 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ], [ %14, %30 ]
%40 = icmp eq i8* %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load i8, i8* %38
switch i8 %42, label %43 [
i8 0, label %61
i8 10, label %61
i8 35, label %61
]
43: ; preds = %28, %41, %37
%44 = phi i8* [ %14, %28 ], [ %39, %41 ], [ %39, %37 ]
%45 = phi i8* [ %29, %28 ], [ %38, %41 ], [ %38, %37 ]
%46 = ptrtoint i8* %45 to i64
%47 = ptrtoint i8* %44 to i64
%48 = sub i64 %46, %47
%49 = trunc i64 %48 to i32
%50 = and i32 %49, 255
%51 = tail call i32 @strncpy(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @get_next_token.token_buf, i64 0, i64 0), i8* %44, i32 %50)
%52 = zext i32 %50 to i64
%53 = getelementptr inbounds [256 x i8], [256 x i8]* @get_next_token.token_buf, i64 0, i64 %52
store i8 0, i8* %53
%54 = load i8*, i8** @get_next_token.t_index
br i1 %19, label %55, label %58
55: ; preds = %43, %58, %58
%56 = phi i8* [ %59, %58 ], [ %59, %58 ], [ %54, %43 ]
%57 = getelementptr inbounds i8, i8* %56, i64 1
store i8* %57, i8** @get_next_token.t_index
br label %58
58: ; preds = %55, %43
%59 = phi i8* [ %54, %43 ], [ %57, %55 ]
%60 = load i8, i8* %59
switch i8 %60, label %62 [
i8 32, label %55
i8 9, label %55
]
61: ; preds = %41, %41, %41, %6, %9, %9, %9
store i1 false, i1* @get_next_token.eob
br label %62
62: ; preds = %58, %61, %1
%63 = phi i8* [ null, %1 ], [ null, %61 ], [ getelementptr inbounds ([256 x i8], [256 x i8]* @get_next_token.token_buf, i64 0, i64 0), %58 ]
ret i8* %63
}