#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 */
const char *get_region_name_ES(int region_code) {
  switch (region_code) {
  case 7:
    return "Islas Baleares";
  case 27:
    return "La Rioja";
  case 29:
    return "Madrid";
  case 31:
    return "Murcia";
  case 32:
    return "Navarra";
  case 34:
    return "Asturias";
  case 39:
    return "Cantabria";
  case 51:
    return "Andalucia";
  case 52:
    return "Aragon";
  case 53:
    return "Canarias";
  case 54:
    return "Castilla-La Mancha";
  case 55:
    return "Castilla y Leon";
  case 56:
    return "Catalonia";
  case 57:
    return "Extremadura";
  case 58:
    return "Galicia";
  case 59:
    return "Pais Vasco";
  case 60:
    return "Comunidad Valenciana";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<get_region_name_ES>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xfffffff9,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x35,%eax
ja     1240 <get_region_name_ES+0x140>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xfa1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xfa0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf99(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf90(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf87(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf72(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf6c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf63(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf5c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf5f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf5f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf59(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf55(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf4d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
lea    0xf48(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1248 <get_region_name_ES+0x148>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_region_name_ES>:
add    $0xfffffff9,%edi
cmp    $0x35,%edi
ja     1127 <get_region_name_ES+0x27>
lea    0xfc9(%rip),%rax
lea    0xeea(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0xfc1(%rip),%rax
ret
xor    %eax,%eax
ret
lea    0xfbf(%rip),%rax
ret
lea    0xfbe(%rip),%rax
ret
lea    0xfbd(%rip),%rax
ret
lea    0xfbd(%rip),%rax
ret
lea    0xfbe(%rip),%rax
ret
lea    0xfc0(%rip),%rax
ret
lea    0xfc2(%rip),%rax
ret
lea    0xfc1(%rip),%rax
ret
lea    0xfc2(%rip),%rax
ret
lea    0xfcd(%rip),%rax
ret
lea    0xfd5(%rip),%rax
ret
lea    0xfd7(%rip),%rax
ret
lea    0xfdb(%rip),%rax
ret
lea    0xfdb(%rip),%rax
ret
lea    0xfde(%rip),%rax
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Islas Baleares\00"
@.str.1 = [9 x i8] c"La Rioja\00"
@.str.2 = [7 x i8] c"Madrid\00"
@.str.3 = [7 x i8] c"Murcia\00"
@.str.4 = [8 x i8] c"Navarra\00"
@.str.5 = [9 x i8] c"Asturias\00"
@.str.6 = [10 x i8] c"Cantabria\00"
@.str.7 = [10 x i8] c"Andalucia\00"
@.str.8 = [7 x i8] c"Aragon\00"
@.str.9 = [9 x i8] c"Canarias\00"
@.str.10 = [19 x i8] c"Castilla-La Mancha\00"
@.str.11 = [16 x i8] c"Castilla y Leon\00"
@.str.12 = [10 x i8] c"Catalonia\00"
@.str.13 = [12 x i8] c"Extremadura\00"
@.str.14 = [8 x i8] c"Galicia\00"
@.str.15 = [11 x i8] c"Pais Vasco\00"
@.str.16 = [21 x i8] c"Comunidad Valenciana\00"
define i8* @get_region_name_ES(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %22 [
i32 7, label %5
i32 27, label %6
i32 29, label %7
i32 31, label %8
i32 32, label %9
i32 34, label %10
i32 39, label %11
i32 51, label %12
i32 52, label %13
i32 53, label %14
i32 54, label %15
i32 55, label %16
i32 56, label %17
i32 57, label %18
i32 58, label %19
i32 59, label %20
i32 60, label %21
]
5: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8** %2
br label %23
6: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %23
7: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %23
8: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %23
9: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %23
10: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %23
11: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %23
12: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %23
13: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %23
14: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %23
15: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %23
16: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %23
17: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %23
18: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %23
19: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %23
20: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %23
21: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %23
22: ; preds = %1
store i8* null, i8** %2
br label %23
23: ; preds = %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%24 = load i8*, i8** %2
ret i8* %24
}

LLVM IR (-O2):
@.str = [15 x i8] c"Islas Baleares\00"
@.str.1 = [9 x i8] c"La Rioja\00"
@.str.2 = [7 x i8] c"Madrid\00"
@.str.3 = [7 x i8] c"Murcia\00"
@.str.4 = [8 x i8] c"Navarra\00"
@.str.5 = [9 x i8] c"Asturias\00"
@.str.6 = [10 x i8] c"Cantabria\00"
@.str.7 = [10 x i8] c"Andalucia\00"
@.str.8 = [7 x i8] c"Aragon\00"
@.str.9 = [9 x i8] c"Canarias\00"
@.str.10 = [19 x i8] c"Castilla-La Mancha\00"
@.str.11 = [16 x i8] c"Castilla y Leon\00"
@.str.12 = [10 x i8] c"Catalonia\00"
@.str.13 = [12 x i8] c"Extremadura\00"
@.str.14 = [8 x i8] c"Galicia\00"
@.str.15 = [11 x i8] c"Pais Vasco\00"
@.str.16 = [21 x i8] c"Comunidad Valenciana\00"
define i8* @get_region_name_ES(i32 %0) {
switch i32 %0, label %18 [
i32 7, label %19
i32 27, label %2
i32 29, label %3
i32 31, label %4
i32 32, label %5
i32 34, label %6
i32 39, label %7
i32 51, label %8
i32 52, label %9
i32 53, label %10
i32 54, label %11
i32 55, label %12
i32 56, label %13
i32 57, label %14
i32 58, label %15
i32 59, label %16
i32 60, label %17
]
2: ; preds = %1
br label %19
3: ; preds = %1
br label %19
4: ; preds = %1
br label %19
5: ; preds = %1
br label %19
6: ; preds = %1
br label %19
7: ; preds = %1
br label %19
8: ; preds = %1
br label %19
9: ; preds = %1
br label %19
10: ; preds = %1
br label %19
11: ; preds = %1
br label %19
12: ; preds = %1
br label %19
13: ; preds = %1
br label %19
14: ; preds = %1
br label %19
15: ; preds = %1
br label %19
16: ; preds = %1
br label %19
17: ; preds = %1
br label %19
18: ; preds = %1
br label %19
19: ; preds = %1, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%20 = phi i8* [ null, %18 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %20
}