#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 getchar();
int /*<<< orphan*/ isdigit(int);
int backslash() {
  int c, c1, c2;
  c = getchar();
  switch (c) {
  case 'f':
    c = getchar();
    c = getchar();
    return (c);
  case 's':
    c = getchar();
    c = getchar();
    if (isdigit(c))
      c = getchar();
    return (c);
  case 'n':
    c = getchar();
    if (c == '(') {
      c = getchar();
      c = getchar();
    }
    c = getchar();
    return (c);
  case '*':
    c = getchar();
    if (c == '(') {
      c = getchar();
      c = getchar();
      c = getchar();
      return (c);
    }
  case '(':
    c1 = getchar();
    c2 = getchar();
    if (c1 == 'e' && c2 == 'm')
      return (' ');
    if (c1 == 'e' && c2 == 'n')
      return (' ');
    c = getchar();
    return (c);
  case '%':
    c = getchar();
    return (c);
  default:
    return (c);
  }
}


x86 assembly (clang, -O0):
<backslash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
sub    $0x25,%eax
je     12dc <backslash+0x1bc>
jmp    1146 <backslash+0x26>
mov    -0x14(%rbp),%eax
sub    $0x28,%eax
je     1273 <backslash+0x153>
jmp    1157 <backslash+0x37>
mov    -0x14(%rbp),%eax
sub    $0x2a,%eax
je     1231 <backslash+0x111>
jmp    1168 <backslash+0x48>
mov    -0x14(%rbp),%eax
sub    $0x66,%eax
je     119b <backslash+0x7b>
jmp    1179 <backslash+0x59>
mov    -0x14(%rbp),%eax
sub    $0x6e,%eax
je     11f4 <backslash+0xd4>
jmp    118a <backslash+0x6a>
mov    -0x14(%rbp),%eax
sub    $0x73,%eax
je     11ba <backslash+0x9a>
jmp    12f1 <backslash+0x1d1>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%eax
je     11e9 <backslash+0xc9>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x28,-0x8(%rbp)
jne    121c <backslash+0xfc>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x28,-0x8(%rbp)
jne    126e <backslash+0x14e>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
jmp    1273 <backslash+0x153>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x65,-0xc(%rbp)
jne    12a7 <backslash+0x187>
cmpl   $0x6d,-0x10(%rbp)
jne    12a7 <backslash+0x187>
movl   $0x20,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
cmpl   $0x65,-0xc(%rbp)
jne    12c7 <backslash+0x1a7>
cmpl   $0x6e,-0x10(%rbp)
jne    12c7 <backslash+0x1a7>
movl   $0x20,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    12f7 <backslash+0x1d7>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<backslash>:
push   %rbx
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    $0x65,%eax
jg     115e <backslash+0x4e>
cmp    $0x25,%eax
je     11a1 <backslash+0x91>
cmp    $0x28,%eax
je     1138 <backslash+0x28>
cmp    $0x2a,%eax
jne    1185 <backslash+0x75>
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    $0x28,%eax
je     1193 <backslash+0x83>
xor    %eax,%eax
call   1030 <getchar@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    $0x65,%ebx
jne    11a1 <backslash+0x91>
mov    %eax,%ecx
add    $0xffffff93,%ecx
mov    $0x20,%eax
cmp    $0x2,%ecx
jb     1185 <backslash+0x75>
jmp    11a1 <backslash+0x91>
cmp    $0x66,%eax
je     119a <backslash+0x8a>
cmp    $0x6e,%eax
je     1187 <backslash+0x77>
cmp    $0x73,%eax
jne    1185 <backslash+0x75>
xor    %eax,%eax
call   1030 <getchar@plt>
xor    %eax,%eax
call   1030 <getchar@plt>
mov    %eax,%ecx
add    $0xffffffd0,%ecx
cmp    $0xa,%ecx
jb     11a1 <backslash+0x91>
pop    %rbx
ret
xor    %eax,%eax
call   1030 <getchar@plt>
cmp    $0x28,%eax
jne    11a1 <backslash+0x91>
xor    %eax,%eax
call   1030 <getchar@plt>
xor    %eax,%eax
call   1030 <getchar@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <getchar@plt>

LLVM IR (-O0):
define i32 @backslash() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 (...) @getchar()
store i32 %5, i32* %2
%6 = load i32, i32* %2
switch i32 %6, label %63 [
i32 102, label %7
i32 115, label %11
i32 110, label %21
i32 42, label %31
i32 40, label %41
i32 37, label %60
]
7: ; preds = %0
%8 = call i32 (...) @getchar()
store i32 %8, i32* %2
%9 = call i32 (...) @getchar()
store i32 %9, i32* %2
%10 = load i32, i32* %2
store i32 %10, i32* %1
br label %65
11: ; preds = %0
%12 = call i32 (...) @getchar()
store i32 %12, i32* %2
%13 = call i32 (...) @getchar()
store i32 %13, i32* %2
%14 = load i32, i32* %2
%15 = call i32 @isdigit(i32 %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = call i32 (...) @getchar()
store i32 %18, i32* %2
br label %19
19: ; preds = %17, %11
%20 = load i32, i32* %2
store i32 %20, i32* %1
br label %65
21: ; preds = %0
%22 = call i32 (...) @getchar()
store i32 %22, i32* %2
%23 = load i32, i32* %2
%24 = icmp eq i32 %23, 40
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = call i32 (...) @getchar()
store i32 %26, i32* %2
%27 = call i32 (...) @getchar()
store i32 %27, i32* %2
br label %28
28: ; preds = %25, %21
%29 = call i32 (...) @getchar()
store i32 %29, i32* %2
%30 = load i32, i32* %2
store i32 %30, i32* %1
br label %65
31: ; preds = %0
%32 = call i32 (...) @getchar()
store i32 %32, i32* %2
%33 = load i32, i32* %2
%34 = icmp eq i32 %33, 40
br i1 %34, label %35, label %40
35: ; preds = %31
%36 = call i32 (...) @getchar()
store i32 %36, i32* %2
%37 = call i32 (...) @getchar()
store i32 %37, i32* %2
%38 = call i32 (...) @getchar()
store i32 %38, i32* %2
%39 = load i32, i32* %2
store i32 %39, i32* %1
br label %65
40: ; preds = %31
br label %41
41: ; preds = %0, %40
%42 = call i32 (...) @getchar()
store i32 %42, i32* %3
%43 = call i32 (...) @getchar()
store i32 %43, i32* %4
%44 = load i32, i32* %3
%45 = icmp eq i32 %44, 101
br i1 %45, label %46, label %50
46: ; preds = %41
%47 = load i32, i32* %4
%48 = icmp eq i32 %47, 109
br i1 %48, label %49, label %50
49: ; preds = %46
store i32 32, i32* %1
br label %65
50: ; preds = %46, %41
%51 = load i32, i32* %3
%52 = icmp eq i32 %51, 101
br i1 %52, label %53, label %57
53: ; preds = %50
%54 = load i32, i32* %4
%55 = icmp eq i32 %54, 110
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 32, i32* %1
br label %65
57: ; preds = %53, %50
%58 = call i32 (...) @getchar()
store i32 %58, i32* %2
%59 = load i32, i32* %2
store i32 %59, i32* %1
br label %65
60: ; preds = %0
%61 = call i32 (...) @getchar()
store i32 %61, i32* %2
%62 = load i32, i32* %2
store i32 %62, i32* %1
br label %65
63: ; preds = %0
%64 = load i32, i32* %2
store i32 %64, i32* %1
br label %65
65: ; preds = %63, %60, %57, %56, %49, %35, %28, %19, %7
%66 = load i32, i32* %1
ret i32 %66
}

LLVM IR (-O2):
define i32 @backslash() {
%1 = tail call i32 (...) @getchar()
switch i32 %1, label %26 [
i32 102, label %22
i32 115, label %2
i32 110, label %7
i32 42, label %10
i32 40, label %13
i32 37, label %24
]
2: ; preds = %0
%3 = tail call i32 (...) @getchar()
%4 = tail call i32 (...) @getchar()
%5 = add i32 %4, -48
%6 = icmp ult i32 %5, 10
br i1 %6, label %24, label %26
7: ; preds = %0
%8 = tail call i32 (...) @getchar()
%9 = icmp eq i32 %8, 40
br i1 %9, label %20, label %24
10: ; preds = %0
%11 = tail call i32 (...) @getchar()
%12 = icmp eq i32 %11, 40
br i1 %12, label %20, label %13
13: ; preds = %10, %0
%14 = tail call i32 (...) @getchar()
%15 = tail call i32 (...) @getchar()
%16 = icmp eq i32 %14, 101
%17 = add i32 %15, -109
%18 = icmp ult i32 %17, 2
%19 = and i1 %16, %18
br i1 %19, label %26, label %24
20: ; preds = %10, %7
%21 = tail call i32 (...) @getchar()
br label %22
22: ; preds = %20, %0
%23 = tail call i32 (...) @getchar()
br label %24
24: ; preds = %22, %0, %13, %7, %2
%25 = tail call i32 (...) @getchar()
br label %26
26: ; preds = %24, %0, %13, %2
%27 = phi i32 [ %4, %2 ], [ 32, %13 ], [ %1, %0 ], [ %25, %24 ]
ret i32 %27
}