#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 */
const char *mpc_re_range_escape_char(char c) {
  switch (c) {
  case '-':
    return "-";
  case 'a':
    return "\a";
  case 'f':
    return "\f";
  case 'n':
    return "\n";
  case 'r':
    return "\r";
  case 't':
    return "\t";
  case 'v':
    return "\v";
  case 'b':
    return "\b";
  case 'd':
    return "0123456789";
  case 's':
    return " \f\n\r\t\v";
  case 'w':
    return "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<mpc_re_range_escape_char>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
add    $0xffffffd3,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x4a,%eax
ja     11e4 <mpc_re_range_escape_char+0xe4>
mov    -0x18(%rbp),%rax
lea    0xed5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xff1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xfe3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xfd5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xfc7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xfb9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xfab(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xfaf(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xf8d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xf7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xf7a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
lea    0xf71(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11ec <mpc_re_range_escape_char+0xec>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mpc_re_range_escape_char>:
add    $0xffffffd3,%edi
cmp    $0x4a,%edi
ja     1127 <mpc_re_range_escape_char+0x27>
lea    0x101d(%rip),%rax
lea    0xeea(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0x1008(%rip),%rax
ret
xor    %eax,%eax
ret
lea    0x1007(%rip),%rax
ret
lea    0x1001(%rip),%rax
ret
lea    0xfef(%rip),%rax
ret
lea    0xfe9(%rip),%rax
ret
lea    0xfe3(%rip),%rax
ret
lea    0xfec(%rip),%rax
ret
lea    0xfd5(%rip),%rax
ret
lea    0xfe1(%rip),%rax
ret
lea    0xfdb(%rip),%rax
ret

LLVM IR (-O0):
@.str = [2 x i8] c"-\00"
@.str.1 = [2 x i8] c"\07\00"
@.str.2 = [2 x i8] c"\0C\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [2 x i8] c"\0D\00"
@.str.5 = [2 x i8] c"\09\00"
@.str.6 = [2 x i8] c"\0B\00"
@.str.7 = [2 x i8] c"\08\00"
@.str.8 = [11 x i8] c"0123456789\00"
@.str.9 = [7 x i8] c" \0C\0A\0D\09\0B\00"
@.str.10 = [64 x i8] c"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\00"
define i8* @mpc_re_range_escape_char(i8 signext %0) {
%2 = alloca i8*
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %17 [
i32 45, label %6
i32 97, label %7
i32 102, label %8
i32 110, label %9
i32 114, label %10
i32 116, label %11
i32 118, label %12
i32 98, label %13
i32 100, label %14
i32 115, label %15
i32 119, label %16
]
6: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %2
br label %18
7: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %18
8: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %18
9: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %18
10: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %18
11: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %18
12: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %18
13: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %18
14: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %18
15: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %18
16: ; preds = %1
store i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %18
17: ; preds = %1
store i8* null, i8** %2
br label %18
18: ; preds = %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6
%19 = load i8*, i8** %2
ret i8* %19
}

LLVM IR (-O2):
@.str = [2 x i8] c"-\00"
@.str.1 = [2 x i8] c"\07\00"
@.str.2 = [2 x i8] c"\0C\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [2 x i8] c"\0D\00"
@.str.5 = [2 x i8] c"\09\00"
@.str.6 = [2 x i8] c"\0B\00"
@.str.7 = [2 x i8] c"\08\00"
@.str.8 = [11 x i8] c"0123456789\00"
@.str.9 = [7 x i8] c" \0C\0A\0D\09\0B\00"
@.str.10 = [64 x i8] c"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\00"
define i8* @mpc_re_range_escape_char(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %13 [
i32 45, label %14
i32 97, label %3
i32 102, label %4
i32 110, label %5
i32 114, label %6
i32 116, label %7
i32 118, label %8
i32 98, label %9
i32 100, label %10
i32 115, label %11
i32 119, label %12
]
3: ; preds = %1
br label %14
4: ; preds = %1
br label %14
5: ; preds = %1
br label %14
6: ; preds = %1
br label %14
7: ; preds = %1
br label %14
8: ; preds = %1
br label %14
9: ; preds = %1
br label %14
10: ; preds = %1
br label %14
11: ; preds = %1
br label %14
12: ; preds = %1
br label %14
13: ; preds = %1
br label %14
14: ; preds = %1, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3
%15 = phi i8* [ null, %13 ], [ getelementptr inbounds ([64 x i8], [64 x i8]* @.str.10, i64 0, i64 0), %12 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), %11 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), %10 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), %9 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), %8 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), %6 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %5 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %4 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %15
}