#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 EOF;
char gc();
char cCharConst() {
  char c;
  if ((c = gc()) != EOF) {
    switch (c) {
    case '\'':
      break;
    case '\\':
      if ((c = gc()) != EOF)
        c = gc();
      break;
    default:
      c = gc();
    }
  }
  return c;
}


x86 assembly (clang, -O0):
<cCharConst>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <gc@plt>
mov    %al,-0x1(%rbp)
movsbl %al,%eax
mov    0x2ebc(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     119f <cCharConst+0x8f>
movsbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0x27,%eax
je     115d <cCharConst+0x4d>
jmp    114c <cCharConst+0x3c>
mov    -0x8(%rbp),%eax
sub    $0x5c,%eax
je     1162 <cCharConst+0x52>
jmp    1190 <cCharConst+0x80>
jmp    119a <cCharConst+0x8a>
mov    $0x0,%al
call   1030 <gc@plt>
mov    %al,-0x1(%rbp)
movsbl %al,%eax
mov    0x2e72(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     118b <cCharConst+0x7b>
mov    $0x0,%al
call   1030 <gc@plt>
mov    %al,-0x1(%rbp)
jmp    119a <cCharConst+0x8a>
mov    $0x0,%al
call   1030 <gc@plt>
mov    %al,-0x1(%rbp)
jmp    119f <cCharConst+0x8f>
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cCharConst>:
push   %rbx
xor    %eax,%eax
call   1030 <gc@plt>
mov    0x2ec9(%rip),%rbx
cmp    (%rbx),%al
je     113b <cCharConst+0x2b>
movsbl %al,%ecx
cmp    $0x27,%ecx
je     113b <cCharConst+0x2b>
cmp    $0x5c,%ecx
jne    113d <cCharConst+0x2d>
xor    %eax,%eax
call   1030 <gc@plt>
cmp    (%rbx),%al
jne    113d <cCharConst+0x2d>
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
jmp    1030 <gc@plt>

LLVM IR (-O0):
@EOF = global i8 0
define signext i8 @cCharConst() {
%1 = alloca i8
%2 = call signext i8 (...) @gc()
store i8 %2, i8* %1
%3 = sext i8 %2 to i32
%4 = load i8, i8* @EOF
%5 = sext i8 %4 to i32
%6 = icmp ne i32 %3, %5
br i1 %6, label %7, label %23
7: ; preds = %0
%8 = load i8, i8* %1
%9 = sext i8 %8 to i32
switch i32 %9, label %20 [
i32 39, label %10
i32 92, label %11
]
10: ; preds = %7
br label %22
11: ; preds = %7
%12 = call signext i8 (...) @gc()
store i8 %12, i8* %1
%13 = sext i8 %12 to i32
%14 = load i8, i8* @EOF
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %13, %15
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = call signext i8 (...) @gc()
store i8 %18, i8* %1
br label %19
19: ; preds = %17, %11
br label %22
20: ; preds = %7
%21 = call signext i8 (...) @gc()
store i8 %21, i8* %1
br label %22
22: ; preds = %20, %19, %10
br label %23
23: ; preds = %22, %0
%24 = load i8, i8* %1
ret i8 %24
}

LLVM IR (-O2):
@EOF = global i8 0
define signext i8 @cCharConst() {
%1 = tail call signext i8 (...) @gc()
%2 = load i8, i8* @EOF
%3 = icmp eq i8 %1, %2
br i1 %3, label %12, label %4
4: ; preds = %0
%5 = sext i8 %1 to i32
switch i32 %5, label %10 [
i32 39, label %12
i32 92, label %6
]
6: ; preds = %4
%7 = tail call signext i8 (...) @gc()
%8 = load i8, i8* @EOF
%9 = icmp eq i8 %7, %8
br i1 %9, label %12, label %10
10: ; preds = %4, %6
%11 = tail call signext i8 (...) @gc()
br label %12
12: ; preds = %10, %4, %6, %0
%13 = phi i8 [ %7, %6 ], [ %1, %4 ], [ %1, %0 ], [ %11, %10 ]
ret i8 %13
}