#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_BG(int region_code) {
  switch (region_code) {
  case 33:
    return "Mikhaylovgrad";
  case 38:
    return "Blagoevgrad";
  case 39:
    return "Burgas";
  case 40:
    return "Dobrich";
  case 41:
    return "Gabrovo";
  case 42:
    return "Grad Sofiya";
  case 43:
    return "Khaskovo";
  case 44:
    return "Kurdzhali";
  case 45:
    return "Kyustendil";
  case 46:
    return "Lovech";
  case 47:
    return "Montana";
  case 48:
    return "Pazardzhik";
  case 49:
    return "Pernik";
  case 50:
    return "Pleven";
  case 51:
    return "Plovdiv";
  case 52:
    return "Razgrad";
  case 53:
    return "Ruse";
  case 54:
    return "Shumen";
  case 55:
    return "Silistra";
  case 56:
    return "Sliven";
  case 57:
    return "Smolyan";
  case 58:
    return "Sofiya";
  case 59:
    return "Stara Zagora";
  case 60:
    return "Turgovishte";
  case 61:
    return "Varna";
  case 62:
    return "Veliko Turnovo";
  case 63:
    return "Vidin";
  case 64:
    return "Vratsa";
  case 65:
    return "Yambol";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<get_region_name_BG>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffdf,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x20,%eax
ja     1300 <get_region_name_BG+0x200>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf4d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf4b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf47(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf3e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf36(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf2e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf2a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf23(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf1d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf18(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf0f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf07(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xf02(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xef9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xef0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xee8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xee0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xed5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xecc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xec5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xebc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xe33(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xea4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xea1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xe9d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xe93(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xe92(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xe88(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
lea    0xe7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1308 <get_region_name_BG+0x208>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_region_name_BG>:
add    $0xffffffdf,%edi
cmp    $0x20,%edi
ja     1117 <get_region_name_BG+0x17>
movslq %edi,%rax
lea    0x2c36(%rip),%rcx
mov    (%rcx,%rax,8),%rax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Mikhaylovgrad\00"
@.str.1 = [12 x i8] c"Blagoevgrad\00"
@.str.2 = [7 x i8] c"Burgas\00"
@.str.3 = [8 x i8] c"Dobrich\00"
@.str.4 = [8 x i8] c"Gabrovo\00"
@.str.5 = [12 x i8] c"Grad Sofiya\00"
@.str.6 = [9 x i8] c"Khaskovo\00"
@.str.7 = [10 x i8] c"Kurdzhali\00"
@.str.8 = [11 x i8] c"Kyustendil\00"
@.str.9 = [7 x i8] c"Lovech\00"
@.str.10 = [8 x i8] c"Montana\00"
@.str.11 = [11 x i8] c"Pazardzhik\00"
@.str.12 = [7 x i8] c"Pernik\00"
@.str.13 = [7 x i8] c"Pleven\00"
@.str.14 = [8 x i8] c"Plovdiv\00"
@.str.15 = [8 x i8] c"Razgrad\00"
@.str.16 = [5 x i8] c"Ruse\00"
@.str.17 = [7 x i8] c"Shumen\00"
@.str.18 = [9 x i8] c"Silistra\00"
@.str.19 = [7 x i8] c"Sliven\00"
@.str.20 = [8 x i8] c"Smolyan\00"
@.str.21 = [7 x i8] c"Sofiya\00"
@.str.22 = [13 x i8] c"Stara Zagora\00"
@.str.23 = [12 x i8] c"Turgovishte\00"
@.str.24 = [6 x i8] c"Varna\00"
@.str.25 = [15 x i8] c"Veliko Turnovo\00"
@.str.26 = [6 x i8] c"Vidin\00"
@.str.27 = [7 x i8] c"Vratsa\00"
@.str.28 = [7 x i8] c"Yambol\00"
define i8* @get_region_name_BG(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %34 [
i32 33, label %5
i32 38, label %6
i32 39, label %7
i32 40, label %8
i32 41, label %9
i32 42, label %10
i32 43, label %11
i32 44, label %12
i32 45, label %13
i32 46, label %14
i32 47, label %15
i32 48, label %16
i32 49, label %17
i32 50, label %18
i32 51, label %19
i32 52, label %20
i32 53, label %21
i32 54, label %22
i32 55, label %23
i32 56, label %24
i32 57, label %25
i32 58, label %26
i32 59, label %27
i32 60, label %28
i32 61, label %29
i32 62, label %30
i32 63, label %31
i32 64, label %32
i32 65, label %33
]
5: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8** %2
br label %35
6: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %35
7: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %35
8: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %35
9: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %35
10: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %35
11: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %35
12: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %35
13: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %35
14: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %35
15: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %35
16: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %35
17: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %35
18: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %35
19: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %35
20: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %35
21: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %35
22: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %35
23: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %35
24: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %35
25: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %35
26: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %35
27: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %35
28: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %35
29: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %35
30: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %35
31: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %35
32: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %35
33: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %35
34: ; preds = %1
store i8* null, i8** %2
br label %35
35: ; preds = %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%36 = load i8*, i8** %2
ret i8* %36
}

LLVM IR (-O2):
@.str = [14 x i8] c"Mikhaylovgrad\00"
@.str.1 = [12 x i8] c"Blagoevgrad\00"
@.str.2 = [7 x i8] c"Burgas\00"
@.str.3 = [8 x i8] c"Dobrich\00"
@.str.4 = [8 x i8] c"Gabrovo\00"
@.str.5 = [12 x i8] c"Grad Sofiya\00"
@.str.6 = [9 x i8] c"Khaskovo\00"
@.str.7 = [10 x i8] c"Kurdzhali\00"
@.str.8 = [11 x i8] c"Kyustendil\00"
@.str.9 = [7 x i8] c"Lovech\00"
@.str.10 = [8 x i8] c"Montana\00"
@.str.11 = [11 x i8] c"Pazardzhik\00"
@.str.12 = [7 x i8] c"Pernik\00"
@.str.13 = [7 x i8] c"Pleven\00"
@.str.14 = [8 x i8] c"Plovdiv\00"
@.str.15 = [8 x i8] c"Razgrad\00"
@.str.16 = [5 x i8] c"Ruse\00"
@.str.17 = [7 x i8] c"Shumen\00"
@.str.18 = [9 x i8] c"Silistra\00"
@.str.19 = [7 x i8] c"Sliven\00"
@.str.20 = [8 x i8] c"Smolyan\00"
@.str.21 = [7 x i8] c"Sofiya\00"
@.str.22 = [13 x i8] c"Stara Zagora\00"
@.str.23 = [12 x i8] c"Turgovishte\00"
@.str.24 = [6 x i8] c"Varna\00"
@.str.25 = [15 x i8] c"Veliko Turnovo\00"
@.str.26 = [6 x i8] c"Vidin\00"
@.str.27 = [7 x i8] c"Vratsa\00"
@.str.28 = [7 x i8] c"Yambol\00"
@switch.table.get_region_name_BG = [33 x i8*] [i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* null, i8* null, i8* null, i8* null, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0)]
define i8* @get_region_name_BG(i32 %0) {
%2 = add i32 %0, -33
%3 = icmp ult i32 %2, 33
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds [33 x i8*], [33 x i8*]* @switch.table.get_region_name_BG, i64 0, i64 %5
%7 = load i8*, i8** %6
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ null, %1 ]
ret i8* %9
}