#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 */
int /*<<< orphan*/ IsSeparator(char);
char *NextToken(char *pc) {
  while (!IsSeparator(*pc))
    pc++;
  while (*pc == ' ' || *pc == '\t')
    pc++;
  if (*pc == '\n' || *pc == '\r' || *pc == 0)
    return 0;
  if (*pc == '#' || *pc == ';')
    return 0;
  return pc;
}


x86 assembly (clang, -O0):
<NextToken>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <IsSeparator@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    113d <NextToken+0x2d>
jmp    114e <NextToken+0x3e>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    111c <NextToken+0xc>
jmp    1153 <NextToken+0x43>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x11(%rbp)
je     1178 <NextToken+0x68>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1188 <NextToken+0x78>
jmp    1199 <NextToken+0x89>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1153 <NextToken+0x43>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     11c9 <NextToken+0xb9>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xd,%eax
je     11c9 <NextToken+0xb9>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    11d6 <NextToken+0xc6>
movq   $0x0,-0x8(%rbp)
jmp    120b <NextToken+0xfb>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     11f6 <NextToken+0xe6>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
jne    1203 <NextToken+0xf3>
movq   $0x0,-0x8(%rbp)
jmp    120b <NextToken+0xfb>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<NextToken>:
push   %rbx
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <IsSeparator@plt>
test   %eax,%eax
je     1120 <NextToken+0x10>
movabs $0x100000200,%rax
nopl   0x0(%rax,%rax,1)
movzbl (%rbx),%ecx
cmp    $0x3b,%rcx
ja     1167 <NextToken+0x57>
bt     %rcx,%rax
jae    1155 <NextToken+0x45>
add    $0x1,%rbx
jmp    1140 <NextToken+0x30>
movabs $0x800000800002401,%rax
bt     %rcx,%rax
jae    1167 <NextToken+0x57>
xor    %ebx,%ebx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @NextToken(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
br label %4
4: ; preds = %10, %1
%5 = load i8*, i8** %3
%6 = load i8, i8* %5
%7 = call i32 @IsSeparator(i8 signext %6)
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
br i1 %9, label %10, label %13
10: ; preds = %4
%11 = load i8*, i8** %3
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %3
br label %4
13: ; preds = %4
br label %14
14: ; preds = %26, %13
%15 = load i8*, i8** %3
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 32
br i1 %18, label %24, label %19
19: ; preds = %14
%20 = load i8*, i8** %3
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 9
br label %24
24: ; preds = %19, %14
%25 = phi i1 [ true, %14 ], [ %23, %19 ]
br i1 %25, label %26, label %29
26: ; preds = %24
%27 = load i8*, i8** %3
%28 = getelementptr inbounds i8, i8* %27, i32 1
store i8* %28, i8** %3
br label %14
29: ; preds = %24
%30 = load i8*, i8** %3
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 10
br i1 %33, label %44, label %34
34: ; preds = %29
%35 = load i8*, i8** %3
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 13
br i1 %38, label %44, label %39
39: ; preds = %34
%40 = load i8*, i8** %3
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %39, %34, %29
store i8* null, i8** %2
br label %58
45: ; preds = %39
%46 = load i8*, i8** %3
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 35
br i1 %49, label %55, label %50
50: ; preds = %45
%51 = load i8*, i8** %3
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 59
br i1 %54, label %55, label %56
55: ; preds = %50, %45
store i8* null, i8** %2
br label %58
56: ; preds = %50
%57 = load i8*, i8** %3
store i8* %57, i8** %2
br label %58
58: ; preds = %56, %55, %44
%59 = load i8*, i8** %2
ret i8* %59
}

LLVM IR (-O2):
define i8* @NextToken(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i32 @IsSeparator(i8 signext %4)
%6 = icmp eq i32 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %2, label %8
8: ; preds = %2, %11
%9 = phi i8* [ %12, %11 ], [ %3, %2 ]
%10 = load i8, i8* %9
switch i8 %10, label %14 [
i8 32, label %11
i8 9, label %11
i8 10, label %13
i8 13, label %13
i8 0, label %13
i8 35, label %13
i8 59, label %13
]
11: ; preds = %8, %8
%12 = getelementptr inbounds i8, i8* %9, i64 1
br label %8
13: ; preds = %8, %8, %8, %8, %8
br label %14
14: ; preds = %8, %13
%15 = phi i8* [ null, %13 ], [ %9, %8 ]
ret i8* %15
}