#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 *);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ system(char *);
main() {
  system("cls");
  system("title 10_Números e letras_Cascallar_Autrán_Manuel");
  system("color 80");
  int a;
  printf("Introduce un n\243mero\n");
  scanf("%i", &a);
  switch (a) {
  case 1:
    printf("Un\n");
    break;
  case 2:
    printf("Dous\n");
    break;
  case 3:
    printf("Tres\n");
    break;
  case 4:
    printf("Catro\n");
    break;
  case 5:
    printf("Cinco\n");
    break;
  case 6:
    printf("Seis\n");
    break;
  case 7:
    printf("Sete\n");
    break;
  case 8:
    printf("Oito\n");
    break;
  case 9:
    printf("Nove\n");
    break;
  case 10:
    printf("Dez\n");
    break;
  default:
    printf("Non sei escribir o nome dese n\243mero\n");
  }
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
call   1030 <system@plt>
lea    0xeda(%rip),%rdi
call   1030 <system@plt>
lea    0xf02(%rip),%rdi
call   1030 <system@plt>
lea    0xeff(%rip),%rdi
call   1040 <printf@plt>
lea    0xf08(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x9,%eax
ja     1252 <main+0x122>
mov    -0x10(%rbp),%rax
lea    0xe61(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xeaf(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xe9b(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xe90(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xe85(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xe7a(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xe6f(%rip),%rdi
call   1040 <printf@plt>
jmp    125e <main+0x12e>
lea    0xe63(%rip),%rdi
call   1040 <printf@plt>
lea    0xe7c(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <system@plt>
lea    0xec0(%rip),%rdi
call   1040 <system@plt>
lea    0xee8(%rip),%rdi
call   1040 <system@plt>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x9,%eax
ja     1190 <main+0x60>
cltq
lea    0xf2d(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1197 <main+0x67>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
lea    0xea1(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"cls\00"
@.str.1 = [52 x i8] c"title 10_N\C3\BAmeros e letras_Cascallar_Autr\C3\A1n_Manuel\00"
@.str.2 = [9 x i8] c"color 80\00"
@.str.3 = [21 x i8] c"Introduce un n\A3mero\0A\00"
@.str.4 = [3 x i8] c"%i\00"
@.str.5 = [4 x i8] c"Un\0A\00"
@.str.6 = [6 x i8] c"Dous\0A\00"
@.str.7 = [6 x i8] c"Tres\0A\00"
@.str.8 = [7 x i8] c"Catro\0A\00"
@.str.9 = [7 x i8] c"Cinco\0A\00"
@.str.10 = [6 x i8] c"Seis\0A\00"
@.str.11 = [6 x i8] c"Sete\0A\00"
@.str.12 = [6 x i8] c"Oito\0A\00"
@.str.13 = [6 x i8] c"Nove\0A\00"
@.str.14 = [5 x i8] c"Dez\0A\00"
@.str.15 = [37 x i8] c"Non sei escribir o nome dese n\A3mero\0A\00"
@.str.16 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @system(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @system(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%8 = load i32, i32* %2
switch i32 %8, label %29 [
i32 1, label %9
i32 2, label %11
i32 3, label %13
i32 4, label %15
i32 5, label %17
i32 6, label %19
i32 7, label %21
i32 8, label %23
i32 9, label %25
i32 10, label %27
]
9: ; preds = %0
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %31
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %31
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %31
15: ; preds = %0
%16 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %31
17: ; preds = %0
%18 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %31
19: ; preds = %0
%20 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %31
21: ; preds = %0
%22 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %31
23: ; preds = %0
%24 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
br label %31
25: ; preds = %0
%26 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
br label %31
27: ; preds = %0
%28 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
br label %31
29: ; preds = %0
%30 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
br label %31
31: ; preds = %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9
%32 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%33 = load i32, i32* %1
ret i32 %33
}

LLVM IR (-O2):
@.str = [4 x i8] c"cls\00"
@.str.1 = [52 x i8] c"title 10_N\C3\BAmeros e letras_Cascallar_Autr\C3\A1n_Manuel\00"
@.str.2 = [9 x i8] c"color 80\00"
@.str.4 = [3 x i8] c"%i\00"
@.str.16 = [6 x i8] c"pause\00"
@str = [20 x i8] c"Introduce un n\A3mero\00"
@str.17 = [4 x i8] c"Dez\00"
@str.18 = [5 x i8] c"Nove\00"
@str.19 = [5 x i8] c"Oito\00"
@str.20 = [5 x i8] c"Sete\00"
@str.21 = [5 x i8] c"Seis\00"
@str.22 = [6 x i8] c"Cinco\00"
@str.23 = [6 x i8] c"Catro\00"
@str.24 = [5 x i8] c"Tres\00"
@str.25 = [5 x i8] c"Dous\00"
@str.26 = [3 x i8] c"Un\00"
@str.27 = [36 x i8] c"Non sei escribir o nome dese n\A3mero\00"
@reltable.main = [10 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @str.26 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.25 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.24 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.23 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.22 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.21 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.20 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.19 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @str.18 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @str.17 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @system(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @system(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%5 = bitcast i32* %1 to i8*
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = add i32 %8, -1
%10 = icmp ult i32 %9, 10
br i1 %10, label %11, label %15
11: ; preds = %0
%12 = sext i32 %9 to i64
%13 = shl i64 %12, 2
%14 = call i8* @llvm.load.relative.i64(i8* bitcast ([10 x i32]* @reltable.main to i8*), i64 %13)
br label %15
15: ; preds = %0, %11
%16 = phi i8* [ %14, %11 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @str.27, i64 0, i64 0), %0 ]
%17 = call i32 @puts(i8* dereferenceable(1) %16)
%18 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}