#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 */
scalar_t__ is_consonant(char);
scalar_t__ is_letter(char);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char l;
  printf("Ingrese una letra: ");
  scanf("%c", &l);
  if (is_letter(l)) {
    if (is_consonant(l))
      printf("Es consonante\n");
    else
      printf("Es vocal\n");
  } else
    printf("No es letra\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1060 <scanf@plt>
movsbl -0x5(%rbp),%edi
call   1040 <is_letter@plt>
cmp    $0x0,%rax
je     11b3 <main+0x73>
movsbl -0x5(%rbp),%edi
call   1050 <is_consonant@plt>
cmp    $0x0,%rax
je     11a2 <main+0x62>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
jmp    11ae <main+0x6e>
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
jmp    11bf <main+0x7f>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1070 <scanf@plt>
movsbl 0x7(%rsp),%edi
call   1050 <is_letter@plt>
test   %rax,%rax
je     119e <main+0x4e>
movsbl 0x7(%rsp),%edi
call   1060 <is_consonant@plt>
test   %rax,%rax
lea    0xe92(%rip),%rax
lea    0xe94(%rip),%rdi
cmove  %rax,%rdi
jmp    11a5 <main+0x55>
lea    0xe72(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Ingrese una letra: \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [15 x i8] c"Es consonante\0A\00"
@.str.3 = [10 x i8] c"Es vocal\0A\00"
@.str.4 = [13 x i8] c"No es letra\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
%5 = load i8, i8* %2
%6 = call i64 @is_letter(i8 signext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %17
8: ; preds = %0
%9 = load i8, i8* %2
%10 = call i64 @is_consonant(i8 signext %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %16
14: ; preds = %8
%15 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %16
16: ; preds = %14, %12
br label %19
17: ; preds = %0
%18 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %19
19: ; preds = %17, %16
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Ingrese una letra: \00"
@.str.1 = [3 x i8] c"%c\00"
@str = [12 x i8] c"No es letra\00"
@str.5 = [9 x i8] c"Es vocal\00"
@str.6 = [14 x i8] c"Es consonante\00"
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%4 = load i8, i8* %1
%5 = call i64 @is_letter(i8 signext %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %0
%8 = load i8, i8* %1
%9 = call i64 @is_consonant(i8 signext %8)
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @str.6, i64 0, i64 0)
br label %12
12: ; preds = %0, %7
%13 = phi i8* [ %11, %7 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0), %0 ]
%14 = call i32 @puts(i8* dereferenceable(1) %13)
ret i32 0
}