#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 EOF;
int fgetc(int /*<<< orphan*/);
int /*<<< orphan*/ fputc(int, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int main(void) {
  int c;
  while (242) {
    c = fgetc(stdin);
    if (c == EOF)
      break;
    if (c == 0x1a)
      break;
    c = c & 0x7f;
    switch (c) {
    case 0x02:
      continue;
    case 0x05:
      continue;
    case 0x11:
      continue;
    case 0x12:
      continue;
    case 0x19:
      continue;
    case 0x1e:
      continue;
    case 0x0f:
      c = '-';
      break;
    case 0x1f:
      c = '-';
      break;
    case 0x5d:
      c = 0xc4;
      break;
    case 0x5e:
      c = 0xd6;
      break;
    case 0x5f:
      c = 0xdc;
      break;
    case 0x7b:
      c = 0xe4;
      break;
    case 0x7c:
      c = 0xf6;
      break;
    case 0x7d:
      c = 0xfc;
      break;
    case 0x7e:
      c = 0xdf;
      break;
    }
    fputc(c, stdout);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
call   1030 <fgetc@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    0x2e96(%rip),%rcx
cmp    (%rcx),%eax
jne    1157 <main+0x37>
jmp    1233 <main+0x113>
cmpl   $0x1a,-0x8(%rbp)
jne    1166 <main+0x46>
jmp    1233 <main+0x113>
mov    -0x8(%rbp),%eax
and    $0x7f,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x7c,%eax
ja     121d <main+0xfd>
mov    -0x10(%rbp),%rax
lea    0xe71(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    112f <main+0xf>
jmp    112f <main+0xf>
jmp    112f <main+0xf>
jmp    112f <main+0xf>
jmp    112f <main+0xf>
jmp    112f <main+0xf>
movl   $0x2d,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0x2d,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0xc4,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0xd6,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0xdc,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0xe4,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0xf6,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0xfc,-0x8(%rbp)
jmp    121d <main+0xfd>
movl   $0xdf,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2da9(%rip),%rax
mov    (%rax),%esi
call   1040 <fputc@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    0x2eb9(%rip),%r14
mov    (%r14),%edi
call   1030 <fgetc@plt>
cmp    $0x1a,%eax
je     11cd <main+0xad>
mov    0x2e99(%rip),%r12
cmp    (%r12),%eax
je     11cd <main+0xad>
mov    0x2e78(%rip),%r15
lea    0xea1(%rip),%rbx
nop
and    $0x7f,%eax
lea    -0x2(%rax),%ecx
cmp    $0x7c,%ecx
ja     11b0 <main+0x90>
movslq (%rbx,%rcx,4),%rcx
add    %rbx,%rcx
jmp    *%rcx
mov    $0x2d,%eax
jmp    11b0 <main+0x90>
mov    $0xe4,%eax
jmp    11b0 <main+0x90>
mov    $0xf6,%eax
jmp    11b0 <main+0x90>
mov    $0xc4,%eax
jmp    11b0 <main+0x90>
mov    $0xd6,%eax
jmp    11b0 <main+0x90>
mov    $0xdc,%eax
jmp    11b0 <main+0x90>
mov    $0xfc,%eax
jmp    11b0 <main+0x90>
mov    $0xdf,%eax
nopw   0x0(%rax,%rax,1)
mov    (%r15),%esi
mov    %eax,%edi
call   1040 <fputc@plt>
mov    (%r14),%edi
call   1030 <fgetc@plt>
cmp    $0x1a,%eax
je     11cd <main+0xad>
cmp    (%r12),%eax
jne    1160 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdin = global i32 0
@EOF = global i32 0
@stdout = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %0, %18, %19, %20, %21, %22, %23, %33
%4 = load i32, i32* @stdin
%5 = call i32 @fgetc(i32 %4)
store i32 %5, i32* %2
%6 = load i32, i32* %2
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %10
9: ; preds = %3
br label %37
10: ; preds = %3
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 26
br i1 %12, label %13, label %14
13: ; preds = %10
br label %37
14: ; preds = %10
%15 = load i32, i32* %2
%16 = and i32 %15, 127
store i32 %16, i32* %2
%17 = load i32, i32* %2
switch i32 %17, label %33 [
i32 2, label %18
i32 5, label %19
i32 17, label %20
i32 18, label %21
i32 25, label %22
i32 30, label %23
i32 15, label %24
i32 31, label %25
i32 93, label %26
i32 94, label %27
i32 95, label %28
i32 123, label %29
i32 124, label %30
i32 125, label %31
i32 126, label %32
]
18: ; preds = %14
br label %3
19: ; preds = %14
br label %3
20: ; preds = %14
br label %3
21: ; preds = %14
br label %3
22: ; preds = %14
br label %3
23: ; preds = %14
br label %3
24: ; preds = %14
store i32 45, i32* %2
br label %33
25: ; preds = %14
store i32 45, i32* %2
br label %33
26: ; preds = %14
store i32 196, i32* %2
br label %33
27: ; preds = %14
store i32 214, i32* %2
br label %33
28: ; preds = %14
store i32 220, i32* %2
br label %33
29: ; preds = %14
store i32 228, i32* %2
br label %33
30: ; preds = %14
store i32 246, i32* %2
br label %33
31: ; preds = %14
store i32 252, i32* %2
br label %33
32: ; preds = %14
store i32 223, i32* %2
br label %33
33: ; preds = %14, %32, %31, %30, %29, %28, %27, %26, %25, %24
%34 = load i32, i32* %2
%35 = load i32, i32* @stdout
%36 = call i32 @fputc(i32 %34, i32 %35)
br label %3
37: ; preds = %13, %9
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@EOF = global i32 0
@stdout = global i32 0
define i32 @main() {
%1 = load i32, i32* @stdin
%2 = tail call i32 @fgetc(i32 %1)
%3 = load i32, i32* @EOF
%4 = icmp eq i32 %2, %3
%5 = icmp eq i32 %2, 26
%6 = or i1 %5, %4
br i1 %6, label %30, label %7
7: ; preds = %0, %23
%8 = phi i32 [ %25, %23 ], [ %2, %0 ]
%9 = and i32 %8, 127
switch i32 %9, label %19 [
i32 2, label %23
i32 5, label %23
i32 17, label %23
i32 18, label %23
i32 25, label %23
i32 30, label %23
i32 15, label %10
i32 31, label %11
i32 93, label %12
i32 94, label %13
i32 95, label %14
i32 123, label %15
i32 124, label %16
i32 125, label %17
i32 126, label %18
]
10: ; preds = %7
br label %19
11: ; preds = %7
br label %19
12: ; preds = %7
br label %19
13: ; preds = %7
br label %19
14: ; preds = %7
br label %19
15: ; preds = %7
br label %19
16: ; preds = %7
br label %19
17: ; preds = %7
br label %19
18: ; preds = %7
br label %19
19: ; preds = %7, %18, %17, %16, %15, %14, %13, %12, %11, %10
%20 = phi i32 [ %9, %7 ], [ 223, %18 ], [ 252, %17 ], [ 246, %16 ], [ 228, %15 ], [ 220, %14 ], [ 214, %13 ], [ 196, %12 ], [ 45, %11 ], [ 45, %10 ]
%21 = load i32, i32* @stdout
%22 = tail call i32 @fputc(i32 %20, i32 %21)
br label %23
23: ; preds = %19, %7, %7, %7, %7, %7, %7
%24 = load i32, i32* @stdin
%25 = tail call i32 @fgetc(i32 %24)
%26 = load i32, i32* @EOF
%27 = icmp eq i32 %25, %26
%28 = icmp eq i32 %25, 26
%29 = or i1 %28, %27
br i1 %29, label %30, label %7
30: ; preds = %23, %0
ret i32 0
}