#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_NG(int region_code) {
  switch (region_code) {
  case 5:
    return "Lagos";
  case 11:
    return "Federal Capital Territory";
  case 16:
    return "Ogun";
  case 21:
    return "Akwa Ibom";
  case 22:
    return "Cross River";
  case 23:
    return "Kaduna";
  case 24:
    return "Katsina";
  case 25:
    return "Anambra";
  case 26:
    return "Benue";
  case 27:
    return "Borno";
  case 28:
    return "Imo";
  case 29:
    return "Kano";
  case 30:
    return "Kwara";
  case 31:
    return "Niger";
  case 32:
    return "Oyo";
  case 35:
    return "Adamawa";
  case 36:
    return "Delta";
  case 37:
    return "Edo";
  case 39:
    return "Jigawa";
  case 40:
    return "Kebbi";
  case 41:
    return "Kogi";
  case 42:
    return "Osun";
  case 43:
    return "Taraba";
  case 44:
    return "Yobe";
  case 45:
    return "Abia";
  case 46:
    return "Bauchi";
  case 47:
    return "Enugu";
  case 48:
    return "Ondo";
  case 49:
    return "Plateau";
  case 50:
    return "Rivers";
  case 51:
    return "Sokoto";
  case 52:
    return "Bayelsa";
  case 53:
    return "Ebonyi";
  case 54:
    return "Ekiti";
  case 55:
    return "Gombe";
  case 56:
    return "Nassarawa";
  case 57:
    return "Zamfara";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<get_region_name_NG>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xfffffffb,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x34,%eax
ja     1380 <get_region_name_NG+0x280>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf9d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf93(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf9d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf92(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf8c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf88(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf77(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf6f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf65(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf5b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf4f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf44(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf3a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf30(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf24(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf1c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf12(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xf06(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xefd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xef3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xee8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xedd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xed4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xec9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xebe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xeb5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xeab(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xea0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe98(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe8f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe86(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe7e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe75(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe6b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe61(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
lea    0xe5b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1388 <get_region_name_NG+0x288>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_region_name_NG>:
add    $0xfffffffb,%edi
cmp    $0x34,%edi
ja     1117 <get_region_name_NG+0x17>
movslq %edi,%rax
lea    0x2b96(%rip),%rcx
mov    (%rcx,%rax,8),%rax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Lagos\00"
@.str.1 = [26 x i8] c"Federal Capital Territory\00"
@.str.2 = [5 x i8] c"Ogun\00"
@.str.3 = [10 x i8] c"Akwa Ibom\00"
@.str.4 = [12 x i8] c"Cross River\00"
@.str.5 = [7 x i8] c"Kaduna\00"
@.str.6 = [8 x i8] c"Katsina\00"
@.str.7 = [8 x i8] c"Anambra\00"
@.str.8 = [6 x i8] c"Benue\00"
@.str.9 = [6 x i8] c"Borno\00"
@.str.10 = [4 x i8] c"Imo\00"
@.str.11 = [5 x i8] c"Kano\00"
@.str.12 = [6 x i8] c"Kwara\00"
@.str.13 = [6 x i8] c"Niger\00"
@.str.14 = [4 x i8] c"Oyo\00"
@.str.15 = [8 x i8] c"Adamawa\00"
@.str.16 = [6 x i8] c"Delta\00"
@.str.17 = [4 x i8] c"Edo\00"
@.str.18 = [7 x i8] c"Jigawa\00"
@.str.19 = [6 x i8] c"Kebbi\00"
@.str.20 = [5 x i8] c"Kogi\00"
@.str.21 = [5 x i8] c"Osun\00"
@.str.22 = [7 x i8] c"Taraba\00"
@.str.23 = [5 x i8] c"Yobe\00"
@.str.24 = [5 x i8] c"Abia\00"
@.str.25 = [7 x i8] c"Bauchi\00"
@.str.26 = [6 x i8] c"Enugu\00"
@.str.27 = [5 x i8] c"Ondo\00"
@.str.28 = [8 x i8] c"Plateau\00"
@.str.29 = [7 x i8] c"Rivers\00"
@.str.30 = [7 x i8] c"Sokoto\00"
@.str.31 = [8 x i8] c"Bayelsa\00"
@.str.32 = [7 x i8] c"Ebonyi\00"
@.str.33 = [6 x i8] c"Ekiti\00"
@.str.34 = [6 x i8] c"Gombe\00"
@.str.35 = [10 x i8] c"Nassarawa\00"
@.str.36 = [8 x i8] c"Zamfara\00"
define i8* @get_region_name_NG(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %42 [
i32 5, label %5
i32 11, label %6
i32 16, label %7
i32 21, label %8
i32 22, label %9
i32 23, label %10
i32 24, label %11
i32 25, label %12
i32 26, label %13
i32 27, label %14
i32 28, label %15
i32 29, label %16
i32 30, label %17
i32 31, label %18
i32 32, label %19
i32 35, label %20
i32 36, label %21
i32 37, label %22
i32 39, label %23
i32 40, label %24
i32 41, label %25
i32 42, label %26
i32 43, label %27
i32 44, label %28
i32 45, label %29
i32 46, label %30
i32 47, label %31
i32 48, label %32
i32 49, label %33
i32 50, label %34
i32 51, label %35
i32 52, label %36
i32 53, label %37
i32 54, label %38
i32 55, label %39
i32 56, label %40
i32 57, label %41
]
5: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %2
br label %43
6: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %43
7: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %43
8: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %43
9: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %43
10: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %43
11: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %43
12: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %43
13: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %43
14: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %43
15: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %43
16: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %43
17: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %43
18: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %43
19: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %43
20: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %43
21: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %43
22: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %43
23: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %43
24: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %43
25: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %43
26: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %43
27: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %43
28: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %43
29: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %43
30: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %43
31: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %43
32: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %43
33: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %43
34: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %43
35: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %43
36: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %43
37: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %43
38: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %43
39: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %43
40: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %43
41: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %43
42: ; preds = %1
store i8* null, i8** %2
br label %43
43: ; preds = %42, %41, %40, %39, %38, %37, %36, %35, %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
%44 = load i8*, i8** %2
ret i8* %44
}

LLVM IR (-O2):
@.str = [6 x i8] c"Lagos\00"
@.str.1 = [26 x i8] c"Federal Capital Territory\00"
@.str.2 = [5 x i8] c"Ogun\00"
@.str.3 = [10 x i8] c"Akwa Ibom\00"
@.str.4 = [12 x i8] c"Cross River\00"
@.str.5 = [7 x i8] c"Kaduna\00"
@.str.6 = [8 x i8] c"Katsina\00"
@.str.7 = [8 x i8] c"Anambra\00"
@.str.8 = [6 x i8] c"Benue\00"
@.str.9 = [6 x i8] c"Borno\00"
@.str.10 = [4 x i8] c"Imo\00"
@.str.11 = [5 x i8] c"Kano\00"
@.str.12 = [6 x i8] c"Kwara\00"
@.str.13 = [6 x i8] c"Niger\00"
@.str.14 = [4 x i8] c"Oyo\00"
@.str.15 = [8 x i8] c"Adamawa\00"
@.str.16 = [6 x i8] c"Delta\00"
@.str.17 = [4 x i8] c"Edo\00"
@.str.18 = [7 x i8] c"Jigawa\00"
@.str.19 = [6 x i8] c"Kebbi\00"
@.str.20 = [5 x i8] c"Kogi\00"
@.str.21 = [5 x i8] c"Osun\00"
@.str.22 = [7 x i8] c"Taraba\00"
@.str.23 = [5 x i8] c"Yobe\00"
@.str.24 = [5 x i8] c"Abia\00"
@.str.25 = [7 x i8] c"Bauchi\00"
@.str.26 = [6 x i8] c"Enugu\00"
@.str.27 = [5 x i8] c"Ondo\00"
@.str.28 = [8 x i8] c"Plateau\00"
@.str.29 = [7 x i8] c"Rivers\00"
@.str.30 = [7 x i8] c"Sokoto\00"
@.str.31 = [8 x i8] c"Bayelsa\00"
@.str.32 = [7 x i8] c"Ebonyi\00"
@.str.33 = [6 x i8] c"Ekiti\00"
@.str.34 = [6 x i8] c"Gombe\00"
@.str.35 = [10 x i8] c"Nassarawa\00"
@.str.36 = [8 x i8] c"Zamfara\00"
@switch.table.get_region_name_NG = [53 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* null, i8* null, i8* null, i8* null, i8* null, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* null, i8* null, i8* null, i8* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* null, i8* null, i8* null, i8* null, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* null, i8* null, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* null, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 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 ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.35, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.36, i64 0, i64 0)]
define i8* @get_region_name_NG(i32 %0) {
%2 = add i32 %0, -5
%3 = icmp ult i32 %2, 53
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds [53 x i8*], [53 x i8*]* @switch.table.get_region_name_NG, 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
}