#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*/ farfallino(char, int);
int /*<<< orphan*/ fiorentina(char, char, int);
int /*<<< orphan*/ printf(char *, char);
char toupper(char);
int /*<<< orphan*/ vamavvo(char, int);
void all(char in, char prev, int print) {
  char c = toupper(in);
  if (c == 'A' || c == 'E' || c == 'E' || c == 'O' || c == 'U') {
    farfallino(c, print);
  } else if (c == 'R') {
    vamavvo(c, print);
  } else if (c == 'C') {
    fiorentina(c, prev, print);
  } else {
    printf("%c", c);
  }
}


x86 assembly (clang, -O0):
<all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
mov    %edx,-0x8(%rbp)
movsbl -0x1(%rbp),%edi
call   1040 <toupper@plt>
mov    %al,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x41,%eax
je     11b4 <all+0x64>
movsbl -0x9(%rbp),%eax
cmp    $0x45,%eax
je     11b4 <all+0x64>
movsbl -0x9(%rbp),%eax
cmp    $0x45,%eax
je     11b4 <all+0x64>
movsbl -0x9(%rbp),%eax
cmp    $0x4f,%eax
je     11b4 <all+0x64>
movsbl -0x9(%rbp),%eax
cmp    $0x55,%eax
jne    11c7 <all+0x77>
mov    -0x9(%rbp),%al
mov    -0x8(%rbp),%esi
movsbl %al,%edi
call   1070 <farfallino@plt>
jmp    1227 <all+0xd7>
movsbl -0x9(%rbp),%eax
cmp    $0x52,%eax
jne    11e7 <all+0x97>
mov    -0x9(%rbp),%al
mov    -0x8(%rbp),%esi
movsbl %al,%edi
call   1030 <vamavvo@plt>
jmp    1222 <all+0xd2>
movsbl -0x9(%rbp),%eax
cmp    $0x43,%eax
jne    120d <all+0xbd>
mov    -0x9(%rbp),%cl
mov    -0x2(%rbp),%al
mov    -0x8(%rbp),%edx
movsbl %cl,%edi
movsbl %al,%esi
call   1050 <fiorentina@plt>
jmp    121d <all+0xcd>
lea    0xdec(%rip),%rdi
movsbl -0x9(%rbp),%esi
call   1060 <printf@plt>
jmp    1222 <all+0xd2>
jmp    1227 <all+0xd7>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<all>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%ebp
call   1040 <toupper@plt>
lea    -0x41(%rax),%ecx
cmp    $0x14,%cl
ja     11b6 <all+0x66>
movzbl %cl,%ecx
mov    $0x104011,%edx
bt     %rcx,%rdx
jae    1182 <all+0x32>
movsbl %al,%edi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <farfallino@plt>
cmp    $0x2,%rcx
je     11a0 <all+0x50>
cmp    $0x11,%rcx
jne    11b6 <all+0x66>
mov    $0x52,%edi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <vamavvo@plt>
movsbl %bpl,%esi
mov    $0x43,%edi
mov    %ebx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <fiorentina@plt>
movsbl %al,%esi
lea    0xe40(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define void @all(i8 signext %0, i8 signext %1, i32 %2) {
%4 = alloca i8
%5 = alloca i8
%6 = alloca i32
%7 = alloca i8
store i8 %0, i8* %4
store i8 %1, i8* %5
store i32 %2, i32* %6
%8 = load i8, i8* %4
%9 = call signext i8 @toupper(i8 signext %8)
store i8 %9, i8* %7
%10 = load i8, i8* %7
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 65
br i1 %12, label %29, label %13
13: ; preds = %3
%14 = load i8, i8* %7
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 69
br i1 %16, label %29, label %17
17: ; preds = %13
%18 = load i8, i8* %7
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 69
br i1 %20, label %29, label %21
21: ; preds = %17
%22 = load i8, i8* %7
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 79
br i1 %24, label %29, label %25
25: ; preds = %21
%26 = load i8, i8* %7
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 85
br i1 %28, label %29, label %33
29: ; preds = %25, %21, %17, %13, %3
%30 = load i8, i8* %7
%31 = load i32, i32* %6
%32 = call i32 @farfallino(i8 signext %30, i32 %31)
br label %55
33: ; preds = %25
%34 = load i8, i8* %7
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 82
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load i8, i8* %7
%39 = load i32, i32* %6
%40 = call i32 @vamavvo(i8 signext %38, i32 %39)
br label %54
41: ; preds = %33
%42 = load i8, i8* %7
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 67
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load i8, i8* %7
%47 = load i8, i8* %5
%48 = load i32, i32* %6
%49 = call i32 @fiorentina(i8 signext %46, i8 signext %47, i32 %48)
br label %53
50: ; preds = %41
%51 = load i8, i8* %7
%52 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %51)
br label %53
53: ; preds = %50, %45
br label %54
54: ; preds = %53, %37
br label %55
55: ; preds = %54, %29
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define void @all(i8 signext %0, i8 signext %1, i32 %2) {
%4 = tail call signext i8 @toupper(i8 signext %0)
switch i8 %4, label %11 [
i8 85, label %5
i8 79, label %5
i8 69, label %5
i8 65, label %5
i8 82, label %7
i8 67, label %9
]
5: ; preds = %3, %3, %3, %3
%6 = tail call i32 @farfallino(i8 signext %4, i32 %2)
br label %13
7: ; preds = %3
%8 = tail call i32 @vamavvo(i8 signext 82, i32 %2)
br label %13
9: ; preds = %3
%10 = tail call i32 @fiorentina(i8 signext 67, i8 signext %1, i32 %2)
br label %13
11: ; preds = %3
%12 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %4)
br label %13
13: ; preds = %7, %11, %9, %5
ret void
}