#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_CZ(int region_code) {
  switch (region_code) {
  case 52:
    return "Hlavni mesto Praha";
  case 78:
    return "Jihomoravsky kraj";
  case 79:
    return "Jihocesky kraj";
  case 80:
    return "Vysocina";
  case 81:
    return "Karlovarsky kraj";
  case 82:
    return "Kralovehradecky kraj";
  case 83:
    return "Liberecky kraj";
  case 84:
    return "Olomoucky kraj";
  case 85:
    return "Moravskoslezsky kraj";
  case 86:
    return "Pardubicky kraj";
  case 87:
    return "Plzensky kraj";
  case 88:
    return "Stredocesky kraj";
  case 89:
    return "Ustecky kraj";
  case 90:
    return "Zlinsky kraj";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<get_region_name_CZ>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffcc,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x26,%eax
ja     1210 <get_region_name_CZ+0x110>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf65(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf68(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf6a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf69(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf62(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf63(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf68(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf67(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf66(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf6b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf6b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf69(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf6a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
lea    0xf67(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1218 <get_region_name_CZ+0x118>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_region_name_CZ>:
add    $0xffffffcc,%edi
cmp    $0x26,%edi
ja     1127 <get_region_name_CZ+0x27>
lea    0xf8d(%rip),%rax
lea    0xeea(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0xf89(%rip),%rax
ret
xor    %eax,%eax
ret
lea    0xf90(%rip),%rax
ret
lea    0xf97(%rip),%rax
ret
lea    0xf98(%rip),%rax
ret
lea    0xfa1(%rip),%rax
ret
lea    0xfae(%rip),%rax
ret
lea    0xfb5(%rip),%rax
ret
lea    0xfbc(%rip),%rax
ret
lea    0xfc9(%rip),%rax
ret
lea    0xfd1(%rip),%rax
ret
lea    0xfd7(%rip),%rax
ret
lea    0xfe0(%rip),%rax
ret
lea    0xfe5(%rip),%rax
ret

LLVM IR (-O0):
@.str = [19 x i8] c"Hlavni mesto Praha\00"
@.str.1 = [18 x i8] c"Jihomoravsky kraj\00"
@.str.2 = [15 x i8] c"Jihocesky kraj\00"
@.str.3 = [9 x i8] c"Vysocina\00"
@.str.4 = [17 x i8] c"Karlovarsky kraj\00"
@.str.5 = [21 x i8] c"Kralovehradecky kraj\00"
@.str.6 = [15 x i8] c"Liberecky kraj\00"
@.str.7 = [15 x i8] c"Olomoucky kraj\00"
@.str.8 = [21 x i8] c"Moravskoslezsky kraj\00"
@.str.9 = [16 x i8] c"Pardubicky kraj\00"
@.str.10 = [14 x i8] c"Plzensky kraj\00"
@.str.11 = [17 x i8] c"Stredocesky kraj\00"
@.str.12 = [13 x i8] c"Ustecky kraj\00"
@.str.13 = [13 x i8] c"Zlinsky kraj\00"
define i8* @get_region_name_CZ(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %19 [
i32 52, label %5
i32 78, label %6
i32 79, label %7
i32 80, label %8
i32 81, label %9
i32 82, label %10
i32 83, label %11
i32 84, label %12
i32 85, label %13
i32 86, label %14
i32 87, label %15
i32 88, label %16
i32 89, label %17
i32 90, label %18
]
5: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8** %2
br label %20
6: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %20
7: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %20
8: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %20
9: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %20
10: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %20
11: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %20
12: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %20
13: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %20
14: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %20
15: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %20
16: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %20
17: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %20
18: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %20
19: ; preds = %1
store i8* null, i8** %2
br label %20
20: ; preds = %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%21 = load i8*, i8** %2
ret i8* %21
}

LLVM IR (-O2):
@.str = [19 x i8] c"Hlavni mesto Praha\00"
@.str.1 = [18 x i8] c"Jihomoravsky kraj\00"
@.str.2 = [15 x i8] c"Jihocesky kraj\00"
@.str.3 = [9 x i8] c"Vysocina\00"
@.str.4 = [17 x i8] c"Karlovarsky kraj\00"
@.str.5 = [21 x i8] c"Kralovehradecky kraj\00"
@.str.6 = [15 x i8] c"Liberecky kraj\00"
@.str.7 = [15 x i8] c"Olomoucky kraj\00"
@.str.8 = [21 x i8] c"Moravskoslezsky kraj\00"
@.str.9 = [16 x i8] c"Pardubicky kraj\00"
@.str.10 = [14 x i8] c"Plzensky kraj\00"
@.str.11 = [17 x i8] c"Stredocesky kraj\00"
@.str.12 = [13 x i8] c"Ustecky kraj\00"
@.str.13 = [13 x i8] c"Zlinsky kraj\00"
define i8* @get_region_name_CZ(i32 %0) {
switch i32 %0, label %15 [
i32 52, label %16
i32 78, label %2
i32 79, label %3
i32 80, label %4
i32 81, label %5
i32 82, label %6
i32 83, label %7
i32 84, label %8
i32 85, label %9
i32 86, label %10
i32 87, label %11
i32 88, label %12
i32 89, label %13
i32 90, label %14
]
2: ; preds = %1
br label %16
3: ; preds = %1
br label %16
4: ; preds = %1
br label %16
5: ; preds = %1
br label %16
6: ; preds = %1
br label %16
7: ; preds = %1
br label %16
8: ; preds = %1
br label %16
9: ; preds = %1
br label %16
10: ; preds = %1
br label %16
11: ; preds = %1
br label %16
12: ; preds = %1
br label %16
13: ; preds = %1
br label %16
14: ; preds = %1
br label %16
15: ; preds = %1
br label %16
16: ; preds = %1, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%17 = phi i8* [ null, %15 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %17
}