#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 *);
void exibeToken(int token) {
  switch (token) {
  case 1:
    printf("<INTEIRO>\n");
    break;
  case 2:
    printf("<VAR>\n");
    break;
  case 3:
    printf("<ATT>\n");
    break;
  case 4:
    printf("<READ>\n");
    break;
  case 5:
    printf("<WRITE>\n");
    break;
  case 6:
    printf("<STRING>\n");
    break;
  case 7:
    printf("<SEP>\n");
    break;
  case 8:
    printf("<SOMA>\n");
    break;
  case 9:
    printf("<SUB>\n");
    break;
  case 10:
    printf("<DIV>\n");
    break;
  case 11:
    printf("<MULT>\n");
    break;
  case 12:
    printf("<RESTO>\n");
    break;
  case 13:
    printf("<NUM>\n");
    break;
  case 14:
    printf("<FINAL>\n");
    break;
  default:
    printf("<ERRO>\n");
    break;
  }
}


x86 assembly (clang, -O0):
<exibeToken>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0xd,%eax
ja     1232 <exibeToken+0x122>
mov    -0x10(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeed(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
jmp    123e <exibeToken+0x12e>
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exibeToken>:
add    $0xffffffff,%edi
cmp    $0xd,%edi
ja     112e <exibeToken+0x1e>
movslq %edi,%rax
lea    0xf4a(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1030 <puts@plt>
lea    0xf2f(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"<INTEIRO>\0A\00"
@.str.1 = [7 x i8] c"<VAR>\0A\00"
@.str.2 = [7 x i8] c"<ATT>\0A\00"
@.str.3 = [8 x i8] c"<READ>\0A\00"
@.str.4 = [9 x i8] c"<WRITE>\0A\00"
@.str.5 = [10 x i8] c"<STRING>\0A\00"
@.str.6 = [7 x i8] c"<SEP>\0A\00"
@.str.7 = [8 x i8] c"<SOMA>\0A\00"
@.str.8 = [7 x i8] c"<SUB>\0A\00"
@.str.9 = [7 x i8] c"<DIV>\0A\00"
@.str.10 = [8 x i8] c"<MULT>\0A\00"
@.str.11 = [9 x i8] c"<RESTO>\0A\00"
@.str.12 = [7 x i8] c"<NUM>\0A\00"
@.str.13 = [9 x i8] c"<FINAL>\0A\00"
@.str.14 = [8 x i8] c"<ERRO>\0A\00"
define void @exibeToken(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %32 [
i32 1, label %4
i32 2, label %6
i32 3, label %8
i32 4, label %10
i32 5, label %12
i32 6, label %14
i32 7, label %16
i32 8, label %18
i32 9, label %20
i32 10, label %22
i32 11, label %24
i32 12, label %26
i32 13, label %28
i32 14, label %30
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %34
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %34
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %34
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %34
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %34
14: ; preds = %1
%15 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %34
16: ; preds = %1
%17 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %34
18: ; preds = %1
%19 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %34
20: ; preds = %1
%21 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %34
22: ; preds = %1
%23 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %34
24: ; preds = %1
%25 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %34
26: ; preds = %1
%27 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
br label %34
28: ; preds = %1
%29 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
br label %34
30: ; preds = %1
%31 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
br label %34
32: ; preds = %1
%33 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %34
34: ; preds = %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@str = [8 x i8] c"<FINAL>\00"
@str.15 = [6 x i8] c"<NUM>\00"
@str.16 = [8 x i8] c"<RESTO>\00"
@str.17 = [7 x i8] c"<MULT>\00"
@str.18 = [6 x i8] c"<DIV>\00"
@str.19 = [6 x i8] c"<SUB>\00"
@str.20 = [7 x i8] c"<SOMA>\00"
@str.21 = [6 x i8] c"<SEP>\00"
@str.22 = [9 x i8] c"<STRING>\00"
@str.23 = [8 x i8] c"<WRITE>\00"
@str.24 = [7 x i8] c"<READ>\00"
@str.25 = [6 x i8] c"<ATT>\00"
@str.26 = [6 x i8] c"<VAR>\00"
@str.27 = [10 x i8] c"<INTEIRO>\00"
@str.28 = [7 x i8] c"<ERRO>\00"
@reltable.exibeToken = [14 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @str.27 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.26 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.25 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.24 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.23 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @str.22 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.21 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.20 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.19 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.18 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @str.17 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str.16 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @str.15 to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @str to i64), i64 ptrtoint ([14 x i32]* @reltable.exibeToken to i64)) to i32)]
define void @exibeToken(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 14
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([14 x i32]* @reltable.exibeToken to i8*), i64 %6)
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.28, i64 0, i64 0), %1 ]
%10 = tail call i32 @puts(i8* dereferenceable(1) %9)
ret void
}