#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 */
scalar_t__ is_backslash_hex(char *, int *);
scalar_t__ is_backslash_octal(char *, int *);
char *strdup(char *);
scalar_t__ streqn(char *, char *, int);
char *mlr_unbackslash(char *input) {
  char *output = strdup(input);
  char *pi = input;
  char *po = output;
  int code = 0;
  while (*pi) {
    if (streqn(pi, "\\a", 2)) {
      pi += 2;
      *(po++) = '\a';
    } else if (streqn(pi, "\\b", 2)) {
      pi += 2;
      *(po++) = '\b';
    } else if (streqn(pi, "\\f", 2)) {
      pi += 2;
      *(po++) = '\f';
    } else if (streqn(pi, "\\n", 2)) {
      pi += 2;
      *(po++) = '\n';
    } else if (streqn(pi, "\\r", 2)) {
      pi += 2;
      *(po++) = '\r';
    } else if (streqn(pi, "\\t", 2)) {
      pi += 2;
      *(po++) = '\t';
    } else if (streqn(pi, "\\v", 2)) {
      pi += 2;
      *(po++) = '\v';
    } else if (streqn(pi, "\\\\", 2)) {
      pi += 2;
      *(po++) = '\\';
    } else if (streqn(pi, "\\'", 2)) {
      pi += 2;
      *(po++) = '\'';
    } else if (streqn(pi, "\\\"", 2)) {
      pi += 2;
      *(po++) = '"';
    } else if (streqn(pi, "\\?", 2)) {
      pi += 2;
      *(po++) = '?';
    } else if (is_backslash_octal(pi, &code)) {
      pi += 4;
      *(po++) = code;
    } else if (is_backslash_hex(pi, &code)) {
      pi += 4;
      *(po++) = code;
    } else {
      *po = *pi;
      pi++;
      po++;
    }
  }
  *po = 0;
  return output;
}


x86 assembly (clang, -O0):
<mlr_unbackslash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <strdup@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     1534 <mlr_unbackslash+0x3f4>
mov    -0x18(%rbp),%rdi
lea    0xe78(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     11bf <mlr_unbackslash+0x7f>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x7,(%rax)
jmp    152f <mlr_unbackslash+0x3ef>
mov    -0x18(%rbp),%rdi
lea    0xe39(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     1201 <mlr_unbackslash+0xc1>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x8,(%rax)
jmp    152a <mlr_unbackslash+0x3ea>
mov    -0x18(%rbp),%rdi
lea    0xdfa(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     1243 <mlr_unbackslash+0x103>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0xc,(%rax)
jmp    1525 <mlr_unbackslash+0x3e5>
mov    -0x18(%rbp),%rdi
lea    0xdbb(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     1285 <mlr_unbackslash+0x145>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0xa,(%rax)
jmp    1520 <mlr_unbackslash+0x3e0>
mov    -0x18(%rbp),%rdi
lea    0xd7c(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     12c7 <mlr_unbackslash+0x187>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0xd,(%rax)
jmp    151b <mlr_unbackslash+0x3db>
mov    -0x18(%rbp),%rdi
lea    0xd3d(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     1309 <mlr_unbackslash+0x1c9>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x9,(%rax)
jmp    1516 <mlr_unbackslash+0x3d6>
mov    -0x18(%rbp),%rdi
lea    0xcfe(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     134b <mlr_unbackslash+0x20b>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0xb,(%rax)
jmp    1511 <mlr_unbackslash+0x3d1>
mov    -0x18(%rbp),%rdi
lea    0xcbf(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     138d <mlr_unbackslash+0x24d>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x5c,(%rax)
jmp    150c <mlr_unbackslash+0x3cc>
mov    -0x18(%rbp),%rdi
lea    0xc80(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     13cf <mlr_unbackslash+0x28f>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x27,(%rax)
jmp    1507 <mlr_unbackslash+0x3c7>
mov    -0x18(%rbp),%rdi
lea    0xc41(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     1411 <mlr_unbackslash+0x2d1>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x22,(%rax)
jmp    1502 <mlr_unbackslash+0x3c2>
mov    -0x18(%rbp),%rdi
lea    0xc02(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
cmp    $0x0,%rax
je     1453 <mlr_unbackslash+0x313>
mov    -0x18(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movb   $0x3f,(%rax)
jmp    14fd <mlr_unbackslash+0x3bd>
mov    -0x18(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1030 <is_backslash_octal@plt>
cmp    $0x0,%rax
je     1491 <mlr_unbackslash+0x351>
mov    -0x18(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
jmp    14f8 <mlr_unbackslash+0x3b8>
mov    -0x18(%rbp),%rdi
lea    -0x24(%rbp),%rsi
call   1040 <is_backslash_hex@plt>
cmp    $0x0,%rax
je     14cf <mlr_unbackslash+0x38f>
mov    -0x18(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x18(%rbp)
mov    -0x24(%rbp),%eax
mov    %al,%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
jmp    14f3 <mlr_unbackslash+0x3b3>
mov    -0x18(%rbp),%rax
mov    (%rax),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    14f8 <mlr_unbackslash+0x3b8>
jmp    14fd <mlr_unbackslash+0x3bd>
jmp    1502 <mlr_unbackslash+0x3c2>
jmp    1507 <mlr_unbackslash+0x3c7>
jmp    150c <mlr_unbackslash+0x3cc>
jmp    1511 <mlr_unbackslash+0x3d1>
jmp    1516 <mlr_unbackslash+0x3d6>
jmp    151b <mlr_unbackslash+0x3db>
jmp    1520 <mlr_unbackslash+0x3e0>
jmp    1525 <mlr_unbackslash+0x3e5>
jmp    152a <mlr_unbackslash+0x3ea>
jmp    152f <mlr_unbackslash+0x3ef>
jmp    1170 <mlr_unbackslash+0x30>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mlr_unbackslash>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1060 <strdup@plt>
mov    %rax,%rbp
movl   $0x0,0x4(%rsp)
cmpb   $0x0,(%rbx)
mov    %rax,%r14
je     136c <mlr_unbackslash+0x22c>
lea    0xe8f(%rip),%r15
lea    0xe8b(%rip),%r12
lea    0xe87(%rip),%r13
mov    %rbp,%r14
jmp    11a5 <mlr_unbackslash+0x65>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x2,%rbx
movb   $0x7,(%r14)
add    $0x1,%r14
cmpb   $0x0,(%rbx)
je     136c <mlr_unbackslash+0x22c>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
jne    1190 <mlr_unbackslash+0x50>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     11d9 <mlr_unbackslash+0x99>
add    $0x2,%rbx
movb   $0x8,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     11f8 <mlr_unbackslash+0xb8>
add    $0x2,%rbx
movb   $0xc,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xe07(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     121e <mlr_unbackslash+0xde>
add    $0x2,%rbx
movb   $0xa,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xde4(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     1244 <mlr_unbackslash+0x104>
add    $0x2,%rbx
movb   $0xd,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xdc1(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     126a <mlr_unbackslash+0x12a>
add    $0x2,%rbx
movb   $0x9,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xd9e(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     1290 <mlr_unbackslash+0x150>
add    $0x2,%rbx
movb   $0xb,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xd7b(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     12b6 <mlr_unbackslash+0x176>
add    $0x2,%rbx
movb   $0x5c,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xd58(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     12dc <mlr_unbackslash+0x19c>
add    $0x2,%rbx
movb   $0x27,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xd35(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     1302 <mlr_unbackslash+0x1c2>
add    $0x2,%rbx
movb   $0x22,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0xd12(%rip),%rsi
mov    $0x2,%edx
call   1050 <streqn@plt>
test   %rax,%rax
je     1328 <mlr_unbackslash+0x1e8>
add    $0x2,%rbx
movb   $0x3f,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
call   1030 <is_backslash_octal@plt>
test   %rax,%rax
jne    134c <mlr_unbackslash+0x20c>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
call   1040 <is_backslash_hex@plt>
test   %rax,%rax
je     135d <mlr_unbackslash+0x21d>
add    $0x4,%rbx
movzbl 0x4(%rsp),%eax
mov    %al,(%r14)
jmp    1198 <mlr_unbackslash+0x58>
movzbl (%rbx),%eax
mov    %al,(%r14)
add    $0x1,%rbx
jmp    1198 <mlr_unbackslash+0x58>
movb   $0x0,(%r14)
mov    %rbp,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"\\a\00"
@.str.1 = [3 x i8] c"\\b\00"
@.str.2 = [3 x i8] c"\\f\00"
@.str.3 = [3 x i8] c"\\n\00"
@.str.4 = [3 x i8] c"\\r\00"
@.str.5 = [3 x i8] c"\\t\00"
@.str.6 = [3 x i8] c"\\v\00"
@.str.7 = [3 x i8] c"\\\\\00"
@.str.8 = [3 x i8] c"\\'\00"
@.str.9 = [3 x i8] c"\\\22\00"
@.str.10 = [3 x i8] c"\\?\00"
define i8* @mlr_unbackslash(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %2
%7 = load i8*, i8** %2
%8 = call i8* @strdup(i8* %7)
store i8* %8, i8** %3
%9 = load i8*, i8** %2
store i8* %9, i8** %4
%10 = load i8*, i8** %3
store i8* %10, i8** %5
store i32 0, i32* %6
br label %11
11: ; preds = %156, %1
%12 = load i8*, i8** %4
%13 = load i8, i8* %12
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %157
15: ; preds = %11
%16 = load i8*, i8** %4
%17 = call i64 @streqn(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load i8*, i8** %4
%21 = getelementptr inbounds i8, i8* %20, i64 2
store i8* %21, i8** %4
%22 = load i8*, i8** %5
%23 = getelementptr inbounds i8, i8* %22, i32 1
store i8* %23, i8** %5
store i8 7, i8* %22
br label %156
24: ; preds = %15
%25 = load i8*, i8** %4
%26 = call i64 @streqn(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = load i8*, i8** %4
%30 = getelementptr inbounds i8, i8* %29, i64 2
store i8* %30, i8** %4
%31 = load i8*, i8** %5
%32 = getelementptr inbounds i8, i8* %31, i32 1
store i8* %32, i8** %5
store i8 8, i8* %31
br label %155
33: ; preds = %24
%34 = load i8*, i8** %4
%35 = call i64 @streqn(i8* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 2)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %33
%38 = load i8*, i8** %4
%39 = getelementptr inbounds i8, i8* %38, i64 2
store i8* %39, i8** %4
%40 = load i8*, i8** %5
%41 = getelementptr inbounds i8, i8* %40, i32 1
store i8* %41, i8** %5
store i8 12, i8* %40
br label %154
42: ; preds = %33
%43 = load i8*, i8** %4
%44 = call i64 @streqn(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = load i8*, i8** %4
%48 = getelementptr inbounds i8, i8* %47, i64 2
store i8* %48, i8** %4
%49 = load i8*, i8** %5
%50 = getelementptr inbounds i8, i8* %49, i32 1
store i8* %50, i8** %5
store i8 10, i8* %49
br label %153
51: ; preds = %42
%52 = load i8*, i8** %4
%53 = call i64 @streqn(i8* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 2)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %51
%56 = load i8*, i8** %4
%57 = getelementptr inbounds i8, i8* %56, i64 2
store i8* %57, i8** %4
%58 = load i8*, i8** %5
%59 = getelementptr inbounds i8, i8* %58, i32 1
store i8* %59, i8** %5
store i8 13, i8* %58
br label %152
60: ; preds = %51
%61 = load i8*, i8** %4
%62 = call i64 @streqn(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 2)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = load i8*, i8** %4
%66 = getelementptr inbounds i8, i8* %65, i64 2
store i8* %66, i8** %4
%67 = load i8*, i8** %5
%68 = getelementptr inbounds i8, i8* %67, i32 1
store i8* %68, i8** %5
store i8 9, i8* %67
br label %151
69: ; preds = %60
%70 = load i8*, i8** %4
%71 = call i64 @streqn(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %69
%74 = load i8*, i8** %4
%75 = getelementptr inbounds i8, i8* %74, i64 2
store i8* %75, i8** %4
%76 = load i8*, i8** %5
%77 = getelementptr inbounds i8, i8* %76, i32 1
store i8* %77, i8** %5
store i8 11, i8* %76
br label %150
78: ; preds = %69
%79 = load i8*, i8** %4
%80 = call i64 @streqn(i8* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load i8*, i8** %4
%84 = getelementptr inbounds i8, i8* %83, i64 2
store i8* %84, i8** %4
%85 = load i8*, i8** %5
%86 = getelementptr inbounds i8, i8* %85, i32 1
store i8* %86, i8** %5
store i8 92, i8* %85
br label %149
87: ; preds = %78
%88 = load i8*, i8** %4
%89 = call i64 @streqn(i8* %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %96
91: ; preds = %87
%92 = load i8*, i8** %4
%93 = getelementptr inbounds i8, i8* %92, i64 2
store i8* %93, i8** %4
%94 = load i8*, i8** %5
%95 = getelementptr inbounds i8, i8* %94, i32 1
store i8* %95, i8** %5
store i8 39, i8* %94
br label %148
96: ; preds = %87
%97 = load i8*, i8** %4
%98 = call i64 @streqn(i8* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %105
100: ; preds = %96
%101 = load i8*, i8** %4
%102 = getelementptr inbounds i8, i8* %101, i64 2
store i8* %102, i8** %4
%103 = load i8*, i8** %5
%104 = getelementptr inbounds i8, i8* %103, i32 1
store i8* %104, i8** %5
store i8 34, i8* %103
br label %147
105: ; preds = %96
%106 = load i8*, i8** %4
%107 = call i64 @streqn(i8* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 2)
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %114
109: ; preds = %105
%110 = load i8*, i8** %4
%111 = getelementptr inbounds i8, i8* %110, i64 2
store i8* %111, i8** %4
%112 = load i8*, i8** %5
%113 = getelementptr inbounds i8, i8* %112, i32 1
store i8* %113, i8** %5
store i8 63, i8* %112
br label %146
114: ; preds = %105
%115 = load i8*, i8** %4
%116 = call i64 @is_backslash_octal(i8* %115, i32* %6)
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %125
118: ; preds = %114
%119 = load i8*, i8** %4
%120 = getelementptr inbounds i8, i8* %119, i64 4
store i8* %120, i8** %4
%121 = load i32, i32* %6
%122 = trunc i32 %121 to i8
%123 = load i8*, i8** %5
%124 = getelementptr inbounds i8, i8* %123, i32 1
store i8* %124, i8** %5
store i8 %122, i8* %123
br label %145
125: ; preds = %114
%126 = load i8*, i8** %4
%127 = call i64 @is_backslash_hex(i8* %126, i32* %6)
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %136
129: ; preds = %125
%130 = load i8*, i8** %4
%131 = getelementptr inbounds i8, i8* %130, i64 4
store i8* %131, i8** %4
%132 = load i32, i32* %6
%133 = trunc i32 %132 to i8
%134 = load i8*, i8** %5
%135 = getelementptr inbounds i8, i8* %134, i32 1
store i8* %135, i8** %5
store i8 %133, i8* %134
br label %144
136: ; preds = %125
%137 = load i8*, i8** %4
%138 = load i8, i8* %137
%139 = load i8*, i8** %5
store i8 %138, i8* %139
%140 = load i8*, i8** %4
%141 = getelementptr inbounds i8, i8* %140, i32 1
store i8* %141, i8** %4
%142 = load i8*, i8** %5
%143 = getelementptr inbounds i8, i8* %142, i32 1
store i8* %143, i8** %5
br label %144
144: ; preds = %136, %129
br label %145
145: ; preds = %144, %118
br label %146
146: ; preds = %145, %109
br label %147
147: ; preds = %146, %100
br label %148
148: ; preds = %147, %91
br label %149
149: ; preds = %148, %82
br label %150
150: ; preds = %149, %73
br label %151
151: ; preds = %150, %64
br label %152
152: ; preds = %151, %55
br label %153
153: ; preds = %152, %46
br label %154
154: ; preds = %153, %37
br label %155
155: ; preds = %154, %28
br label %156
156: ; preds = %155, %19
br label %11
157: ; preds = %11
%158 = load i8*, i8** %5
store i8 0, i8* %158
%159 = load i8*, i8** %3
ret i8* %159
}

LLVM IR (-O2):
@.str = [3 x i8] c"\\a\00"
@.str.1 = [3 x i8] c"\\b\00"
@.str.2 = [3 x i8] c"\\f\00"
@.str.3 = [3 x i8] c"\\n\00"
@.str.4 = [3 x i8] c"\\r\00"
@.str.5 = [3 x i8] c"\\t\00"
@.str.6 = [3 x i8] c"\\v\00"
@.str.7 = [3 x i8] c"\\\\\00"
@.str.8 = [3 x i8] c"\\'\00"
@.str.9 = [3 x i8] c"\\\22\00"
@.str.10 = [3 x i8] c"\\?\00"
define noalias i8* @mlr_unbackslash(i8* %0) {
%2 = alloca i32
%3 = tail call i8* @strdup(i8* %0)
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = load i8, i8* %0
%6 = icmp eq i8 %5, 0
br i1 %6, label %86, label %7
7: ; preds = %1, %81
%8 = phi i8* [ %83, %81 ], [ %3, %1 ]
%9 = phi i8* [ %82, %81 ], [ %0, %1 ]
%10 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %7
%13 = getelementptr inbounds i8, i8* %9, i64 2
store i8 7, i8* %8
br label %81
14: ; preds = %7
%15 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %14
%18 = getelementptr inbounds i8, i8* %9, i64 2
store i8 8, i8* %8
br label %81
19: ; preds = %14
%20 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 2)
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %19
%23 = getelementptr inbounds i8, i8* %9, i64 2
store i8 12, i8* %8
br label %81
24: ; preds = %19
%25 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%26 = icmp eq i64 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %24
%28 = getelementptr inbounds i8, i8* %9, i64 2
store i8 10, i8* %8
br label %81
29: ; preds = %24
%30 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 2)
%31 = icmp eq i64 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %29
%33 = getelementptr inbounds i8, i8* %9, i64 2
store i8 13, i8* %8
br label %81
34: ; preds = %29
%35 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 2)
%36 = icmp eq i64 %35, 0
br i1 %36, label %39, label %37
37: ; preds = %34
%38 = getelementptr inbounds i8, i8* %9, i64 2
store i8 9, i8* %8
br label %81
39: ; preds = %34
%40 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 2)
%41 = icmp eq i64 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %39
%43 = getelementptr inbounds i8, i8* %9, i64 2
store i8 11, i8* %8
br label %81
44: ; preds = %39
%45 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 2)
%46 = icmp eq i64 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %44
%48 = getelementptr inbounds i8, i8* %9, i64 2
store i8 92, i8* %8
br label %81
49: ; preds = %44
%50 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%51 = icmp eq i64 %50, 0
br i1 %51, label %54, label %52
52: ; preds = %49
%53 = getelementptr inbounds i8, i8* %9, i64 2
store i8 39, i8* %8
br label %81
54: ; preds = %49
%55 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 2)
%56 = icmp eq i64 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %54
%58 = getelementptr inbounds i8, i8* %9, i64 2
store i8 34, i8* %8
br label %81
59: ; preds = %54
%60 = call i64 @streqn(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 2)
%61 = icmp eq i64 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %59
%63 = getelementptr inbounds i8, i8* %9, i64 2
store i8 63, i8* %8
br label %81
64: ; preds = %59
%65 = call i64 @is_backslash_octal(i8* %9, i32* %2)
%66 = icmp eq i64 %65, 0
br i1 %66, label %71, label %67
67: ; preds = %64
%68 = getelementptr inbounds i8, i8* %9, i64 4
%69 = load i32, i32* %2
%70 = trunc i32 %69 to i8
store i8 %70, i8* %8
br label %81
71: ; preds = %64
%72 = call i64 @is_backslash_hex(i8* %9, i32* %2)
%73 = icmp eq i64 %72, 0
br i1 %73, label %78, label %74
74: ; preds = %71
%75 = getelementptr inbounds i8, i8* %9, i64 4
%76 = load i32, i32* %2
%77 = trunc i32 %76 to i8
store i8 %77, i8* %8
br label %81
78: ; preds = %71
%79 = load i8, i8* %9
store i8 %79, i8* %8
%80 = getelementptr inbounds i8, i8* %9, i64 1
br label %81
81: ; preds = %17, %27, %37, %47, %57, %67, %78, %74, %62, %52, %42, %32, %22, %12
%82 = phi i8* [ %13, %12 ], [ %18, %17 ], [ %23, %22 ], [ %28, %27 ], [ %33, %32 ], [ %38, %37 ], [ %43, %42 ], [ %48, %47 ], [ %53, %52 ], [ %58, %57 ], [ %63, %62 ], [ %68, %67 ], [ %75, %74 ], [ %80, %78 ]
%83 = getelementptr inbounds i8, i8* %8, i64 1
%84 = load i8, i8* %82
%85 = icmp eq i8 %84, 0
br i1 %85, label %86, label %7
86: ; preds = %81, %1
%87 = phi i8* [ %3, %1 ], [ %83, %81 ]
store i8 0, i8* %87
ret i8* %3
}