#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 /*<<< orphan*/ printf(char *, char *, char *, char *);
int /*<<< orphan*/ scanf(char *, char *, char *);
size_t strlen(char *);
int main() {
  char first[11], second[11];
  scanf("%s %s", first, second);
  size_t f_len = strlen(first);
  switch (first[f_len - 1]) {
  case 'a':
  case 'e':
  case 'i':
  case 'o':
  case 'u':
    first[f_len - 1] = 0;
    break;
  case 'x':
    if (first[f_len - 2] == 'e')
      first[f_len - 2] = 0;
    break;
  }
  printf("%s%s%s\n", first, "ex", second);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0xf(%rbp),%rsi
mov    %rsi,-0x38(%rbp)
lea    -0x1a(%rbp),%rdx
call   1050 <scanf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x38(%rbp),%rcx
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsbl -0x1(%rax,%rcx,1),%eax
mov    %eax,-0x2c(%rbp)
sub    $0x61,%eax
je     11d7 <main+0xa7>
jmp    1182 <main+0x52>
mov    -0x2c(%rbp),%eax
sub    $0x65,%eax
je     11d7 <main+0xa7>
jmp    1193 <main+0x63>
mov    -0x2c(%rbp),%eax
sub    $0x69,%eax
je     11d7 <main+0xa7>
jmp    11a4 <main+0x74>
mov    -0x2c(%rbp),%eax
sub    $0x6f,%eax
je     11d7 <main+0xa7>
jmp    11b5 <main+0x85>
mov    -0x2c(%rbp),%eax
sub    $0x75,%eax
je     11d7 <main+0xa7>
jmp    11c6 <main+0x96>
mov    -0x2c(%rbp),%eax
sub    $0x78,%eax
je     11e9 <main+0xb9>
jmp    1211 <main+0xe1>
mov    -0x28(%rbp),%rax
sub    $0x1,%rax
movb   $0x0,-0xf(%rbp,%rax,1)
jmp    1211 <main+0xe1>
mov    -0x28(%rbp),%rax
sub    $0x2,%rax
movsbl -0xf(%rbp,%rax,1),%eax
cmp    $0x65,%eax
jne    120c <main+0xdc>
mov    -0x28(%rbp),%rax
sub    $0x2,%rax
movb   $0x0,-0xf(%rbp,%rax,1)
jmp    1211 <main+0xe1>
lea    -0xf(%rbp),%rsi
lea    -0x1a(%rbp),%rcx
lea    0xde6(%rip),%rdi
lea    0xde7(%rip),%rdx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xec4(%rip),%rdi
lea    0x15(%rsp),%rbx
lea    0xa(%rsp),%rdx
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
movsbl -0x1(%rax,%rbx,1),%ecx
add    $0xffffff9f,%ecx
cmp    $0x17,%ecx
ja     1177 <main+0x47>
mov    $0x104111,%edx
bt     %ecx,%edx
jae    119c <main+0x6c>
add    %rbx,%rax
add    $0xffffffffffffffff,%rax
movb   $0x0,(%rax)
lea    0xe88(%rip),%rdi
lea    0xe89(%rip),%rdx
lea    0x15(%rsp),%rsi
lea    0xa(%rsp),%rcx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret
cmp    $0x17,%ecx
jne    1177 <main+0x47>
cmpb   $0x65,-0x2(%rax,%rbx,1)
jne    1177 <main+0x47>
add    %rbx,%rax
add    $0xfffffffffffffffe,%rax
jmp    1174 <main+0x44>

LLVM IR (-O0):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [8 x i8] c"%s%s%s\0A\00"
@.str.2 = [3 x i8] c"ex\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
%3 = alloca [11 x i8]
%4 = alloca i64
store i32 0, i32* %1
%5 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%8 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%9 = call i64 @strlen(i8* %8)
store i64 %9, i64* %4
%10 = load i64, i64* %4
%11 = sub i64 %10, 1
%12 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 %11
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
switch i32 %14, label %31 [
i32 97, label %15
i32 101, label %15
i32 105, label %15
i32 111, label %15
i32 117, label %15
i32 120, label %19
]
15: ; preds = %0, %0, %0, %0, %0
%16 = load i64, i64* %4
%17 = sub i64 %16, 1
%18 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 %17
store i8 0, i8* %18
br label %31
19: ; preds = %0
%20 = load i64, i64* %4
%21 = sub i64 %20, 2
%22 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 101
br i1 %25, label %26, label %30
26: ; preds = %19
%27 = load i64, i64* %4
%28 = sub i64 %27, 2
%29 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 %28
store i8 0, i8* %29
br label %30
30: ; preds = %26, %19
br label %31
31: ; preds = %0, %30, %15
%32 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%33 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%34 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %33)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s %s\00"
@.str.1 = [8 x i8] c"%s%s%s\0A\00"
@.str.2 = [3 x i8] c"ex\00"
define i32 @main() {
%1 = alloca [11 x i8]
%2 = alloca [11 x i8]
%3 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4)
%6 = call i64 @strlen(i8* %3)
%7 = add i64 %6, -1
%8 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 %7
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
switch i32 %10, label %18 [
i32 97, label %16
i32 101, label %16
i32 105, label %16
i32 111, label %16
i32 117, label %16
i32 120, label %11
]
11: ; preds = %0
%12 = add i64 %6, -2
%13 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 %12
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 101
br i1 %15, label %16, label %18
16: ; preds = %11, %0, %0, %0, %0, %0
%17 = phi i8* [ %8, %0 ], [ %8, %0 ], [ %8, %0 ], [ %8, %0 ], [ %8, %0 ], [ %13, %11 ]
store i8 0, i8* %17
br label %18
18: ; preds = %16, %11, %0
%19 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %4)
ret i32 0
}