#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 *, ...);
printToken(int type, char *value, int charC, int lineC) {
  switch (type) {
  case 31:
    printf("______________________________________________________\n");
    printf("ASIG:  %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 30:
    printf("______________________________________________________\n");
    printf("ARIT:  %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 32:
    printf("______________________________________________________\n");
    printf("REL:   %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 2:
    printf("______________________________________________________\n");
    printf("FLOAT: %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 7:
    printf("______________________________________________________\n");
    printf("INT:   %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 33:
    printf("______________________________________________________\n");
    printf("SIGN:  %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 6:
    printf("______________________________________________________\n");
    printf("ID:     %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 29:
    printf("______________________________________________________\n");
    printf("PR:     %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  case 8:
    printf("______________________________________________________\n");
    printf("LIT:    %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  default:
    printf("______________________________________________________\n");
    printf("ERR:    %s\t\t%d\t\t%d\n", value, charC, lineC);
    printf("______________________________________________________\n");
    break;
  }
}


x86 assembly (clang, -O0):
<printToken>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x1f,%eax
ja     134f <printToken+0x23f>
mov    -0x20(%rbp),%rax
lea    0xebb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xf4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xe1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1383 <printToken+0x273>
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printToken>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %rsi,%r12
add    $0xfffffffe,%edi
cmp    $0x1f,%edi
ja     1159 <printToken+0x39>
lea    0xf40(%rip),%rbp
lea    0xeb9(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0xf62(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xfce(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xf89(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xf5a(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xf9f(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xf82(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xf06(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xf10(%rip),%rbp
jmp    119f <printToken+0x7f>
lea    0xf40(%rip),%rbp
lea    0xf9c(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15d,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [56 x i8] c"______________________________________________________\0A\00"
@.str.1 = [19 x i8] c"ASIG: %s\09\09%d\09\09%d\0A\00"
@.str.2 = [19 x i8] c"ARIT: %s\09\09%d\09\09%d\0A\00"
@.str.3 = [19 x i8] c"REL: %s\09\09%d\09\09%d\0A\00"
@.str.4 = [19 x i8] c"FLOAT: %s\09\09%d\09\09%d\0A\00"
@.str.5 = [19 x i8] c"INT: %s\09\09%d\09\09%d\0A\00"
@.str.6 = [19 x i8] c"SIGN: %s\09\09%d\09\09%d\0A\00"
@.str.7 = [20 x i8] c"ID: %s\09\09%d\09\09%d\0A\00"
@.str.8 = [20 x i8] c"PR: %s\09\09%d\09\09%d\0A\00"
@.str.9 = [20 x i8] c"LIT: %s\09\09%d\09\09%d\0A\00"
@.str.10 = [20 x i8] c"ERR: %s\09\09%d\09\09%d\0A\00"
define i32 @printToken(i32 %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%10 = load i32, i32* %6
switch i32 %10, label %74 [
i32 31, label %11
i32 30, label %18
i32 32, label %25
i32 2, label %32
i32 7, label %39
i32 33, label %46
i32 6, label %53
i32 29, label %60
i32 8, label %67
]
11: ; preds = %4
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%13 = load i8*, i8** %7
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %13, i32 %14, i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
18: ; preds = %4
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%20 = load i8*, i8** %7
%21 = load i32, i32* %8
%22 = load i32, i32* %9
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* %20, i32 %21, i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
25: ; preds = %4
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%27 = load i8*, i8** %7
%28 = load i32, i32* %8
%29 = load i32, i32* %9
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %27, i32 %28, i32 %29)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
32: ; preds = %4
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%34 = load i8*, i8** %7
%35 = load i32, i32* %8
%36 = load i32, i32* %9
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %34, i32 %35, i32 %36)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
39: ; preds = %4
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%41 = load i8*, i8** %7
%42 = load i32, i32* %8
%43 = load i32, i32* %9
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* %41, i32 %42, i32 %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
46: ; preds = %4
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%48 = load i8*, i8** %7
%49 = load i32, i32* %8
%50 = load i32, i32* %9
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %48, i32 %49, i32 %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
53: ; preds = %4
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%55 = load i8*, i8** %7
%56 = load i32, i32* %8
%57 = load i32, i32* %9
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %55, i32 %56, i32 %57)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
60: ; preds = %4
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%62 = load i8*, i8** %7
%63 = load i32, i32* %8
%64 = load i32, i32* %9
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* %62, i32 %63, i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
67: ; preds = %4
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%69 = load i8*, i8** %7
%70 = load i32, i32* %8
%71 = load i32, i32* %9
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i8* %69, i32 %70, i32 %71)
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
74: ; preds = %4
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%76 = load i8*, i8** %7
%77 = load i32, i32* %8
%78 = load i32, i32* %9
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %76, i32 %77, i32 %78)
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
br label %81
81: ; preds = %74, %67, %60, %53, %46, %39, %32, %25, %18, %11
%82 = load i32, i32* %5
ret i32 %82
}

LLVM IR (-O2):
@.str.1 = [19 x i8] c"ASIG: %s\09\09%d\09\09%d\0A\00"
@.str.2 = [19 x i8] c"ARIT: %s\09\09%d\09\09%d\0A\00"
@.str.3 = [19 x i8] c"REL: %s\09\09%d\09\09%d\0A\00"
@.str.4 = [19 x i8] c"FLOAT: %s\09\09%d\09\09%d\0A\00"
@.str.5 = [19 x i8] c"INT: %s\09\09%d\09\09%d\0A\00"
@.str.6 = [19 x i8] c"SIGN: %s\09\09%d\09\09%d\0A\00"
@.str.7 = [20 x i8] c"ID: %s\09\09%d\09\09%d\0A\00"
@.str.8 = [20 x i8] c"PR: %s\09\09%d\09\09%d\0A\00"
@.str.9 = [20 x i8] c"LIT: %s\09\09%d\09\09%d\0A\00"
@.str.10 = [20 x i8] c"ERR: %s\09\09%d\09\09%d\0A\00"
@str.29 = [55 x i8] c"______________________________________________________\00"
define i32 @printToken(i32 %0, i8* %1, i32 %2, i32 %3) {
switch i32 %0, label %13 [
i32 31, label %14
i32 30, label %5
i32 32, label %6
i32 2, label %7
i32 7, label %8
i32 33, label %9
i32 6, label %10
i32 29, label %11
i32 8, label %12
]
5: ; preds = %4
br label %14
6: ; preds = %4
br label %14
7: ; preds = %4
br label %14
8: ; preds = %4
br label %14
9: ; preds = %4
br label %14
10: ; preds = %4
br label %14
11: ; preds = %4
br label %14
12: ; preds = %4
br label %14
13: ; preds = %4
br label %14
14: ; preds = %4, %13, %12, %11, %10, %9, %8, %7, %6, %5
%15 = phi i8* [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %13 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %12 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %11 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %10 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %9 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %8 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %7 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %6 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %5 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %4 ]
%16 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), %13 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), %12 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), %11 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), %10 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), %9 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), %8 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), %7 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), %6 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), %5 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), %4 ]
%17 = phi i8* [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %13 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %12 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %11 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %10 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %9 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %8 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %7 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %6 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %5 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0), %4 ]
%18 = tail call i32 @puts(i8* dereferenceable(1) %15)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %16, i8* %1, i32 %2, i32 %3)
%20 = tail call i32 @puts(i8* dereferenceable(1) %17)
ret i32 undef
}