#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*/ strcpy(char *, char *);
void desconversor(char nome[], int sigla) {
  switch (sigla) {
  case 0:
    strcpy(nome, "SSA_");
    break;
  case 1:
    strcpy(nome, "FSA_");
    break;
  case 2:
    strcpy(nome, "VDC_");
    break;
  case 3:
    strcpy(nome, "CAM_");
    break;
  case 4:
    strcpy(nome, "ITA_");
    break;
  case 5:
    strcpy(nome, "JUA_");
    break;
  case 6:
    strcpy(nome, "LDF_");
    break;
  case 7:
    strcpy(nome, "ILH_");
    break;
  case 8:
    strcpy(nome, "JEQ_");
    break;
  case 9:
    strcpy(nome, "TDF_");
    break;
  }
}


x86 assembly (clang, -O0):
<desconversor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %rax,-0x18(%rbp)
sub    $0x9,%rax
ja     1211 <desconversor+0x101>
mov    -0x18(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xea9(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xe99(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xe89(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xe79(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xe59(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1211 <desconversor+0x101>
mov    -0x8(%rbp),%rdi
lea    0xe49(%rip),%rsi
call   1030 <strcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<desconversor>:
cmp    $0x9,%esi
ja     112b <desconversor+0x1b>
movslq %esi,%rax
lea    0xf15(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
jmp    1030 <strcpy@plt>
ret

LLVM IR (-O0):
@.str = [5 x i8] c"SSA_\00"
@.str.1 = [5 x i8] c"FSA_\00"
@.str.2 = [5 x i8] c"VDC_\00"
@.str.3 = [5 x i8] c"CAM_\00"
@.str.4 = [5 x i8] c"ITA_\00"
@.str.5 = [5 x i8] c"JUA_\00"
@.str.6 = [5 x i8] c"LDF_\00"
@.str.7 = [5 x i8] c"ILH_\00"
@.str.8 = [5 x i8] c"JEQ_\00"
@.str.9 = [5 x i8] c"TDF_\00"
define void @desconversor(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
switch i32 %5, label %36 [
i32 0, label %6
i32 1, label %9
i32 2, label %12
i32 3, label %15
i32 4, label %18
i32 5, label %21
i32 6, label %24
i32 7, label %27
i32 8, label %30
i32 9, label %33
]
6: ; preds = %2
%7 = load i8*, i8** %3
%8 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %36
9: ; preds = %2
%10 = load i8*, i8** %3
%11 = call i32 @strcpy(i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %36
12: ; preds = %2
%13 = load i8*, i8** %3
%14 = call i32 @strcpy(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %36
15: ; preds = %2
%16 = load i8*, i8** %3
%17 = call i32 @strcpy(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %36
18: ; preds = %2
%19 = load i8*, i8** %3
%20 = call i32 @strcpy(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %36
21: ; preds = %2
%22 = load i8*, i8** %3
%23 = call i32 @strcpy(i8* %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %36
24: ; preds = %2
%25 = load i8*, i8** %3
%26 = call i32 @strcpy(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %36
27: ; preds = %2
%28 = load i8*, i8** %3
%29 = call i32 @strcpy(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %36
30: ; preds = %2
%31 = load i8*, i8** %3
%32 = call i32 @strcpy(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %36
33: ; preds = %2
%34 = load i8*, i8** %3
%35 = call i32 @strcpy(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %36
36: ; preds = %2, %33, %30, %27, %24, %21, %18, %15, %12, %9, %6
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"SSA_\00"
@.str.1 = [5 x i8] c"FSA_\00"
@.str.2 = [5 x i8] c"VDC_\00"
@.str.3 = [5 x i8] c"CAM_\00"
@.str.4 = [5 x i8] c"ITA_\00"
@.str.5 = [5 x i8] c"JUA_\00"
@.str.6 = [5 x i8] c"LDF_\00"
@.str.7 = [5 x i8] c"ILH_\00"
@.str.8 = [5 x i8] c"JEQ_\00"
@.str.9 = [5 x i8] c"TDF_\00"
@reltable.desconversor = [10 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.1 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.2 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.3 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.4 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.5 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.6 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.7 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.8 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.9 to i64), i64 ptrtoint ([10 x i32]* @reltable.desconversor to i64)) to i32)]
define void @desconversor(i8* %0, i32 %1) {
%3 = icmp ult i32 %1, 10
br i1 %3, label %4, label %9
4: ; preds = %2
%5 = sext i32 %1 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([10 x i32]* @reltable.desconversor to i8*), i64 %6)
%8 = tail call i32 @strcpy(i8* %0, i8* %7)
br label %9
9: ; preds = %2, %4
ret void
}