#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 */
unsigned char LexUnEscapeCharacterConstant(char const **, char const *,
                                           unsigned char, int);
unsigned char LexUnEscapeCharacter(const char **From, const char *End) {
  unsigned char ThisChar;
  while (*From != End && **From == '\\' && &(*From)[1] != End &&
         (*From)[1] == '\n')
    (*From) += 2;
  if (*From == End)
    return '\\';
  if (**From == '\\') {
    (*From)++;
    if (*From == End)
      return '\\';
    ThisChar = *(*From)++;
    switch (ThisChar) {
    case '\\':
      return '\\';
    case '\'':
      return '\'';
    case '"':
      return '"';
    case 'a':
      return '\a';
    case 'b':
      return '\b';
    case 'f':
      return '\f';
    case 'n':
      return '\n';
    case 'r':
      return '\r';
    case 't':
      return '\t';
    case 'v':
      return '\v';
    case '0':
    case '1':
    case '2':
    case '3':
      return LexUnEscapeCharacterConstant(From, End, ThisChar, 8);
    case 'x':
      return LexUnEscapeCharacterConstant(From, End, '0', 16);
    default:
      return ThisChar;
    }
  } else
    return *(*From)++;
}


x86 assembly (clang, -O0):
<LexUnEscapeCharacter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
xor    %eax,%eax
cmp    -0x18(%rbp),%rcx
mov    %al,-0x1a(%rbp)
je     117c <LexUnEscapeCharacter+0x6c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x5c,%ecx
mov    %al,-0x1a(%rbp)
jne    117c <LexUnEscapeCharacter+0x6c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
xor    %eax,%eax
cmp    -0x18(%rbp),%rcx
mov    %al,-0x1a(%rbp)
je     117c <LexUnEscapeCharacter+0x6c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0xa,%eax
sete   %al
mov    %al,-0x1a(%rbp)
mov    -0x1a(%rbp),%al
test   $0x1,%al
jne    118c <LexUnEscapeCharacter+0x7c>
jmp    119f <LexUnEscapeCharacter+0x8f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x2,%rcx
mov    %rcx,(%rax)
jmp    1120 <LexUnEscapeCharacter+0x10>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
cmp    -0x18(%rbp),%rax
jne    11b9 <LexUnEscapeCharacter+0xa9>
movb   $0x5c,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
jne    12d6 <LexUnEscapeCharacter+0x1c6>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
cmp    -0x18(%rbp),%rax
jne    11f4 <LexUnEscapeCharacter+0xe4>
movb   $0x5c,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%al
mov    %al,-0x19(%rbp)
movzbl -0x19(%rbp),%eax
add    $0xffffffde,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x56,%eax
ja     12cb <LexUnEscapeCharacter+0x1bb>
mov    -0x28(%rbp),%rax
lea    0xdd5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movb   $0x5c,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0x27,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0x22,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0x7,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0x8,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0xc,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0xa,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0xd,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0x9,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
movb   $0xb,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x8,%ecx
movzbl -0x19(%rbp),%edx
call   1030 <LexUnEscapeCharacterConstant@plt>
mov    %al,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x30,%edx
mov    $0x10,%ecx
call   1030 <LexUnEscapeCharacterConstant@plt>
mov    %al,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
mov    -0x19(%rbp),%al
mov    %al,-0x1(%rbp)
jmp    12ec <LexUnEscapeCharacter+0x1dc>
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,(%rcx)
mov    (%rax),%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LexUnEscapeCharacter>:
mov    (%rdi),%rcx
mov    $0x5c,%al
cmp    %rsi,%rcx
je     1140 <LexUnEscapeCharacter+0x30>
add    $0x1,%rcx
xchg   %ax,%ax
cmpb   $0x5c,-0x1(%rcx)
jne    1141 <LexUnEscapeCharacter+0x31>
cmp    %rsi,%rcx
je     1148 <LexUnEscapeCharacter+0x38>
lea    0x1(%rcx),%rdx
cmpb   $0xa,(%rcx)
mov    %rdx,(%rdi)
jne    114c <LexUnEscapeCharacter+0x3c>
add    $0x2,%rcx
cmp    %rsi,%rdx
jne    1120 <LexUnEscapeCharacter+0x10>
ret
mov    %rcx,(%rdi)
mov    -0x1(%rcx),%al
ret
mov    %rcx,(%rdi)
ret
mov    (%rcx),%al
lea    -0x30(%rax),%ecx
cmp    $0x48,%cl
ja     1140 <LexUnEscapeCharacter+0x30>
movzbl %cl,%ecx
lea    0xea0(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
movzbl %al,%edx
mov    $0x8,%ecx
jmp    1030 <LexUnEscapeCharacterConstant@plt>
mov    $0x7,%al
ret
mov    $0x8,%al
ret
mov    $0xc,%al
ret
mov    $0xa,%al
ret
mov    $0xd,%al
ret
mov    $0x9,%al
ret
mov    $0xb,%al
ret
mov    $0x30,%edx
mov    $0x10,%ecx
jmp    1030 <LexUnEscapeCharacterConstant@plt>

LLVM IR (-O0):
define zeroext i8 @LexUnEscapeCharacter(i8** %0, i8* %1) {
%3 = alloca i8
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i8
store i8** %0, i8*** %4
store i8* %1, i8** %5
br label %7
7: ; preds = %33, %2
%8 = load i8**, i8*** %4
%9 = load i8*, i8** %8
%10 = load i8*, i8** %5
%11 = icmp ne i8* %9, %10
br i1 %11, label %12, label %31
12: ; preds = %7
%13 = load i8**, i8*** %4
%14 = load i8*, i8** %13
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 92
br i1 %17, label %18, label %31
18: ; preds = %12
%19 = load i8**, i8*** %4
%20 = load i8*, i8** %19
%21 = getelementptr inbounds i8, i8* %20, i64 1
%22 = load i8*, i8** %5
%23 = icmp ne i8* %21, %22
br i1 %23, label %24, label %31
24: ; preds = %18
%25 = load i8**, i8*** %4
%26 = load i8*, i8** %25
%27 = getelementptr inbounds i8, i8* %26, i64 1
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 10
br label %31
31: ; preds = %24, %18, %12, %7
%32 = phi i1 [ false, %18 ], [ false, %12 ], [ false, %7 ], [ %30, %24 ]
br i1 %32, label %33, label %37
33: ; preds = %31
%34 = load i8**, i8*** %4
%35 = load i8*, i8** %34
%36 = getelementptr inbounds i8, i8* %35, i64 2
store i8* %36, i8** %34
br label %7
37: ; preds = %31
%38 = load i8**, i8*** %4
%39 = load i8*, i8** %38
%40 = load i8*, i8** %5
%41 = icmp eq i8* %39, %40
br i1 %41, label %42, label %43
42: ; preds = %37
store i8 92, i8* %3
br label %91
43: ; preds = %37
%44 = load i8**, i8*** %4
%45 = load i8*, i8** %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 92
br i1 %48, label %49, label %86
49: ; preds = %43
%50 = load i8**, i8*** %4
%51 = load i8*, i8** %50
%52 = getelementptr inbounds i8, i8* %51, i32 1
store i8* %52, i8** %50
%53 = load i8**, i8*** %4
%54 = load i8*, i8** %53
%55 = load i8*, i8** %5
%56 = icmp eq i8* %54, %55
br i1 %56, label %57, label %58
57: ; preds = %49
store i8 92, i8* %3
br label %91
58: ; preds = %49
%59 = load i8**, i8*** %4
%60 = load i8*, i8** %59
%61 = getelementptr inbounds i8, i8* %60, i32 1
store i8* %61, i8** %59
%62 = load i8, i8* %60
store i8 %62, i8* %6
%63 = load i8, i8* %6
%64 = zext i8 %63 to i32
switch i32 %64, label %84 [
i32 92, label %65
i32 39, label %66
i32 34, label %67
i32 97, label %68
i32 98, label %69
i32 102, label %70
i32 110, label %71
i32 114, label %72
i32 116, label %73
i32 118, label %74
i32 48, label %75
i32 49, label %75
i32 50, label %75
i32 51, label %75
i32 120, label %80
]
65: ; preds = %58
store i8 92, i8* %3
br label %91
66: ; preds = %58
store i8 39, i8* %3
br label %91
67: ; preds = %58
store i8 34, i8* %3
br label %91
68: ; preds = %58
store i8 7, i8* %3
br label %91
69: ; preds = %58
store i8 8, i8* %3
br label %91
70: ; preds = %58
store i8 12, i8* %3
br label %91
71: ; preds = %58
store i8 10, i8* %3
br label %91
72: ; preds = %58
store i8 13, i8* %3
br label %91
73: ; preds = %58
store i8 9, i8* %3
br label %91
74: ; preds = %58
store i8 11, i8* %3
br label %91
75: ; preds = %58, %58, %58, %58
%76 = load i8**, i8*** %4
%77 = load i8*, i8** %5
%78 = load i8, i8* %6
%79 = call zeroext i8 @LexUnEscapeCharacterConstant(i8** %76, i8* %77, i8 zeroext %78, i32 8)
store i8 %79, i8* %3
br label %91
80: ; preds = %58
%81 = load i8**, i8*** %4
%82 = load i8*, i8** %5
%83 = call zeroext i8 @LexUnEscapeCharacterConstant(i8** %81, i8* %82, i8 zeroext 48, i32 16)
store i8 %83, i8* %3
br label %91
84: ; preds = %58
%85 = load i8, i8* %6
store i8 %85, i8* %3
br label %91
86: ; preds = %43
%87 = load i8**, i8*** %4
%88 = load i8*, i8** %87
%89 = getelementptr inbounds i8, i8* %88, i32 1
store i8* %89, i8** %87
%90 = load i8, i8* %88
store i8 %90, i8* %3
br label %91
91: ; preds = %86, %84, %80, %75, %74, %73, %72, %71, %70, %69, %68, %67, %66, %65, %57, %42
%92 = load i8, i8* %3
ret i8 %92
}

LLVM IR (-O2):
define zeroext i8 @LexUnEscapeCharacter(i8** %0, i8* %1) {
%3 = load i8*, i8** %0
%4 = icmp eq i8* %3, %1
br i1 %4, label %34, label %5
5: ; preds = %2, %17
%6 = phi i8* [ %16, %17 ], [ %3, %2 ]
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 92
%9 = getelementptr inbounds i8, i8* %6, i64 1
br i1 %8, label %10, label %32
10: ; preds = %5
%11 = icmp eq i8* %9, %1
br i1 %11, label %12, label %13
12: ; preds = %10
store i8* %9, i8** %0
br label %34
13: ; preds = %10
%14 = load i8, i8* %9
%15 = icmp eq i8 %14, 10
%16 = getelementptr inbounds i8, i8* %6, i64 2
store i8* %16, i8** %0
br i1 %15, label %17, label %19
17: ; preds = %13
%18 = icmp eq i8* %16, %1
br i1 %18, label %34, label %5
19: ; preds = %13
%20 = load i8, i8* %9
switch i8 %20, label %34 [
i8 120, label %30
i8 51, label %28
i8 50, label %28
i8 97, label %21
i8 98, label %22
i8 102, label %23
i8 110, label %24
i8 114, label %25
i8 116, label %26
i8 118, label %27
i8 48, label %28
i8 49, label %28
]
21: ; preds = %19
br label %34
22: ; preds = %19
br label %34
23: ; preds = %19
br label %34
24: ; preds = %19
br label %34
25: ; preds = %19
br label %34
26: ; preds = %19
br label %34
27: ; preds = %19
br label %34
28: ; preds = %19, %19, %19, %19
%29 = tail call zeroext i8 @LexUnEscapeCharacterConstant(i8** %0, i8* %1, i8 zeroext %20, i32 8)
br label %34
30: ; preds = %19
%31 = tail call zeroext i8 @LexUnEscapeCharacterConstant(i8** %0, i8* %1, i8 zeroext 48, i32 16)
br label %34
32: ; preds = %5
store i8* %9, i8** %0
%33 = load i8, i8* %6
br label %34
34: ; preds = %17, %19, %12, %2, %32, %30, %28, %27, %26, %25, %24, %23, %22, %21
%35 = phi i8 [ %31, %30 ], [ %29, %28 ], [ 11, %27 ], [ 9, %26 ], [ 13, %25 ], [ 10, %24 ], [ 12, %23 ], [ 8, %22 ], [ 7, %21 ], [ %33, %32 ], [ 92, %2 ], [ 92, %12 ], [ %20, %19 ], [ 92, %17 ]
ret i8 %35
}