#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 isWhitespace(char const *, char *);
int isDelimiter(const char *c, char *value) {
  char whitespace = '\0';
  const int IS_WHITESPACE = isWhitespace(c, &whitespace);
  if (c == NULL)
    return 0;
  if (IS_WHITESPACE > 0) {
    if (value != NULL)
      *value = whitespace;
    return 1;
  } else {
    switch (*c) {
    case '(':
    case ')':
    case '"':
    case ';':
      if (value != NULL)
        *value = *c;
      return 1;
    default:
      return 0;
    }
  }
}


x86 assembly (clang, -O0):
<isDelimiter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movb   $0x0,-0x19(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x19(%rbp),%rsi
call   1030 <isWhitespace@plt>
mov    %eax,-0x20(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    114b <isDelimiter+0x3b>
movl   $0x0,-0x4(%rbp)
jmp    11dc <isDelimiter+0xcc>
cmpl   $0x0,-0x20(%rbp)
jle    1175 <isDelimiter+0x65>
cmpq   $0x0,-0x18(%rbp)
je     1169 <isDelimiter+0x59>
mov    -0x19(%rbp),%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    11dc <isDelimiter+0xcc>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x24(%rbp)
sub    $0x22,%eax
je     11b2 <isDelimiter+0xa2>
jmp    118d <isDelimiter+0x7d>
mov    -0x24(%rbp),%eax
add    $0xffffffd8,%eax
sub    $0x2,%eax
jb     11b2 <isDelimiter+0xa2>
jmp    11a1 <isDelimiter+0x91>
mov    -0x24(%rbp),%eax
sub    $0x3b,%eax
jne    11d5 <isDelimiter+0xc5>
jmp    11b2 <isDelimiter+0xa2>
cmpq   $0x0,-0x18(%rbp)
je     11c9 <isDelimiter+0xb9>
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    11dc <isDelimiter+0xcc>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isDelimiter>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
movb   $0x0,0x7(%rsp)
lea    0x7(%rsp),%rsi
call   1030 <isWhitespace@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %rbx,%rbx
je     1166 <isDelimiter+0x56>
test   %ecx,%ecx
jle    1141 <isDelimiter+0x31>
test   %r14,%r14
je     1161 <isDelimiter+0x51>
mov    0x7(%rsp),%cl
jmp    115e <isDelimiter+0x4e>
movsbl (%rbx),%ecx
cmp    $0x3b,%ecx
ja     1166 <isDelimiter+0x56>
movabs $0x800030400000000,%rdx
bt     %rcx,%rdx
jae    1166 <isDelimiter+0x56>
test   %r14,%r14
je     1161 <isDelimiter+0x51>
mov    %cl,(%r14)
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @isDelimiter(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8
%7 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8 0, i8* %6
%8 = load i8*, i8** %4
%9 = call i32 @isWhitespace(i8* %8, i8* %6)
store i32 %9, i32* %7
%10 = load i8*, i8** %4
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 0, i32* %3
br label %36
13: ; preds = %2
%14 = load i32, i32* %7
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i8*, i8** %5
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i8, i8* %6
%21 = load i8*, i8** %5
store i8 %20, i8* %21
br label %22
22: ; preds = %19, %16
store i32 1, i32* %3
br label %36
23: ; preds = %13
%24 = load i8*, i8** %4
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
switch i32 %26, label %35 [
i32 40, label %27
i32 41, label %27
i32 34, label %27
i32 59, label %27
]
27: ; preds = %23, %23, %23, %23
%28 = load i8*, i8** %5
%29 = icmp ne i8* %28, null
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = load i8*, i8** %4
%32 = load i8, i8* %31
%33 = load i8*, i8** %5
store i8 %32, i8* %33
br label %34
34: ; preds = %30, %27
store i32 1, i32* %3
br label %36
35: ; preds = %23
store i32 0, i32* %3
br label %36
36: ; preds = %35, %34, %22, %12
%37 = load i32, i32* %3
ret i32 %37
}

LLVM IR (-O2):
define i32 @isDelimiter(i8* %0, i8* writeonly %1) {
%3 = alloca i8
store i8 0, i8* %3
%4 = call i32 @isWhitespace(i8* %0, i8* %3)
%5 = icmp eq i8* %0, null
br i1 %5, label %19, label %6
6: ; preds = %2
%7 = icmp sgt i32 %4, 0
br i1 %7, label %8, label %12
8: ; preds = %6
%9 = icmp eq i8* %1, null
br i1 %9, label %19, label %10
10: ; preds = %8
%11 = load i8, i8* %3
br label %17
12: ; preds = %6
%13 = load i8, i8* %0
%14 = sext i8 %13 to i32
switch i32 %14, label %19 [
i32 40, label %15
i32 41, label %15
i32 34, label %15
i32 59, label %15
]
15: ; preds = %12, %12, %12, %12
%16 = icmp eq i8* %1, null
br i1 %16, label %19, label %17
17: ; preds = %15, %10
%18 = phi i8 [ %11, %10 ], [ %13, %15 ]
store i8 %18, i8* %1
br label %19
19: ; preds = %17, %12, %15, %8, %2
%20 = phi i32 [ 0, %2 ], [ 1, %8 ], [ 1, %15 ], [ 0, %12 ], [ 1, %17 ]
ret i32 %20
}