#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 getchar();
int /*<<< orphan*/ putchar(int);
int main() {
  int c;
  while ((c = getchar()) != EOF) {
    switch (c) {
    case 0x84:
      putchar('a');
      putchar('e');
      break;
    case 0x94:
      putchar('o');
      putchar('e');
      break;
    case 0x81:
      putchar('u');
      putchar('e');
      break;
    case 0xE1:
      putchar('s');
      putchar('s');
      break;
    default:
      putchar(c);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2ea8(%rip),%rcx
cmp    (%rcx),%eax
je     1208 <main+0xe8>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x81,%eax
je     11c9 <main+0xa9>
jmp    115e <main+0x3e>
mov    -0xc(%rbp),%eax
sub    $0x84,%eax
je     1197 <main+0x77>
jmp    1171 <main+0x51>
mov    -0xc(%rbp),%eax
sub    $0x94,%eax
je     11b0 <main+0x90>
jmp    1184 <main+0x64>
mov    -0xc(%rbp),%eax
sub    $0xe1,%eax
je     11e2 <main+0xc2>
jmp    11fb <main+0xdb>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
jmp    1203 <main+0xe3>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
jmp    1203 <main+0xe3>
mov    $0x75,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
jmp    1203 <main+0xe3>
mov    $0x73,%edi
call   1030 <putchar@plt>
mov    $0x73,%edi
call   1030 <putchar@plt>
jmp    1203 <main+0xe3>
mov    -0x8(%rbp),%edi
call   1030 <putchar@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <getchar@plt>
mov    0x2eb7(%rip),%rbx
jmp    1152 <main+0x32>
mov    $0x73,%edi
mov    $0x73,%ebp
call   1030 <putchar@plt>
mov    %ebp,%eax
mov    %eax,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    (%rbx),%eax
je     119c <main+0x7c>
mov    $0x65,%ebp
cmp    $0x93,%eax
jg     1180 <main+0x60>
cmp    $0x81,%eax
je     1195 <main+0x75>
mov    $0x61,%edi
cmp    $0x84,%eax
je     113d <main+0x1d>
jmp    1144 <main+0x24>
nopw   0x0(%rax,%rax,1)
cmp    $0xe1,%eax
je     1133 <main+0x13>
cmp    $0x94,%eax
jne    1144 <main+0x24>
mov    $0x6f,%edi
jmp    113d <main+0x1d>
mov    $0x75,%edi
jmp    113d <main+0x1d>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@EOF = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %24, %0
%4 = call i32 (...) @getchar()
store i32 %4, i32* %2
%5 = load i32, i32* @EOF
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %25
7: ; preds = %3
%8 = load i32, i32* %2
switch i32 %8, label %21 [
i32 132, label %9
i32 148, label %12
i32 129, label %15
i32 225, label %18
]
9: ; preds = %7
%10 = call i32 @putchar(i32 97)
%11 = call i32 @putchar(i32 101)
br label %24
12: ; preds = %7
%13 = call i32 @putchar(i32 111)
%14 = call i32 @putchar(i32 101)
br label %24
15: ; preds = %7
%16 = call i32 @putchar(i32 117)
%17 = call i32 @putchar(i32 101)
br label %24
18: ; preds = %7
%19 = call i32 @putchar(i32 115)
%20 = call i32 @putchar(i32 115)
br label %24
21: ; preds = %7
%22 = load i32, i32* %2
%23 = call i32 @putchar(i32 %22)
br label %24
24: ; preds = %21, %18, %15, %12, %9
br label %3
25: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @getchar()
%2 = load i32, i32* @EOF
%3 = icmp eq i32 %1, %2
br i1 %3, label %19, label %4
4: ; preds = %0, %13
%5 = phi i32 [ %16, %13 ], [ %1, %0 ]
switch i32 %5, label %13 [
i32 132, label %9
i32 148, label %6
i32 129, label %7
i32 225, label %8
]
6: ; preds = %4
br label %9
7: ; preds = %4
br label %9
8: ; preds = %4
br label %9
9: ; preds = %4, %6, %7, %8
%10 = phi i32 [ 115, %8 ], [ 117, %7 ], [ 111, %6 ], [ 97, %4 ]
%11 = phi i32 [ 115, %8 ], [ 101, %7 ], [ 101, %6 ], [ 101, %4 ]
%12 = tail call i32 @putchar(i32 %10)
br label %13
13: ; preds = %9, %4
%14 = phi i32 [ %5, %4 ], [ %11, %9 ]
%15 = tail call i32 @putchar(i32 %14)
%16 = tail call i32 (...) @getchar()
%17 = load i32, i32* @EOF
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %4
19: ; preds = %13, %0
ret i32 0
}