#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_IS(int region_code) {
  switch (region_code) {
  case 3:
    return "Arnessysla";
  case 5:
    return "Austur-Hunavatnssysla";
  case 6:
    return "Austur-Skaftafellssysla";
  case 7:
    return "Borgarfjardarsysla";
  case 9:
    return "Eyjafjardarsysla";
  case 10:
    return "Gullbringusysla";
  case 15:
    return "Kjosarsysla";
  case 17:
    return "Myrasysla";
  case 20:
    return "Nordur-Mulasysla";
  case 21:
    return "Nordur-Tingeyjarsysla";
  case 23:
    return "Rangarvallasysla";
  case 28:
    return "Skagafjardarsysla";
  case 29:
    return "Snafellsnes- og Hnappadalssysla";
  case 30:
    return "Strandasysla";
  case 31:
    return "Sudur-Mulasysla";
  case 32:
    return "Sudur-Tingeyjarsysla";
  case 34:
    return "Vestur-Bardastrandarsysla";
  case 35:
    return "Vestur-Hunavatnssysla";
  case 36:
    return "Vestur-Isafjardarsysla";
  case 37:
    return "Vestur-Skaftafellssysla";
  case 38:
    return "Austurland";
  case 39:
    return "Hofuoborgarsvaoio";
  case 40:
    return "Norourland Eystra";
  case 41:
    return "Norourland Vestra";
  case 42:
    return "Suourland";
  case 43:
    return "Suournes";
  case 44:
    return "Vestfiroir";
  case 45:
    return "Vesturland";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<get_region_name_IS>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xfffffffd,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x2a,%eax
ja     12f0 <get_region_name_IS+0x1f0>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf75(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf70(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf76(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf7e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf81(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf82(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf82(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf7e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf78(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf79(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf80(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf82(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf92(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf8f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf8f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf94(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xf9e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfa4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfab(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfb3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfae(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfb0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfb2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfb4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfae(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfa7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
lea    0xfa2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12f8 <get_region_name_IS+0x1f8>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_region_name_IS>:
add    $0xfffffffd,%edi
cmp    $0x2a,%edi
ja     1117 <get_region_name_IS+0x17>
movslq %edi,%rax
lea    0x2be6(%rip),%rcx
mov    (%rcx,%rax,8),%rax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Arnessysla\00"
@.str.1 = [22 x i8] c"Austur-Hunavatnssysla\00"
@.str.2 = [24 x i8] c"Austur-Skaftafellssysla\00"
@.str.3 = [19 x i8] c"Borgarfjardarsysla\00"
@.str.4 = [17 x i8] c"Eyjafjardarsysla\00"
@.str.5 = [16 x i8] c"Gullbringusysla\00"
@.str.6 = [12 x i8] c"Kjosarsysla\00"
@.str.7 = [10 x i8] c"Myrasysla\00"
@.str.8 = [17 x i8] c"Nordur-Mulasysla\00"
@.str.9 = [22 x i8] c"Nordur-Tingeyjarsysla\00"
@.str.10 = [17 x i8] c"Rangarvallasysla\00"
@.str.11 = [18 x i8] c"Skagafjardarsysla\00"
@.str.12 = [32 x i8] c"Snafellsnes- og Hnappadalssysla\00"
@.str.13 = [13 x i8] c"Strandasysla\00"
@.str.14 = [16 x i8] c"Sudur-Mulasysla\00"
@.str.15 = [21 x i8] c"Sudur-Tingeyjarsysla\00"
@.str.16 = [26 x i8] c"Vestur-Bardastrandarsysla\00"
@.str.17 = [22 x i8] c"Vestur-Hunavatnssysla\00"
@.str.18 = [23 x i8] c"Vestur-Isafjardarsysla\00"
@.str.19 = [24 x i8] c"Vestur-Skaftafellssysla\00"
@.str.20 = [11 x i8] c"Austurland\00"
@.str.21 = [18 x i8] c"Hofuoborgarsvaoio\00"
@.str.22 = [18 x i8] c"Norourland Eystra\00"
@.str.23 = [18 x i8] c"Norourland Vestra\00"
@.str.24 = [10 x i8] c"Suourland\00"
@.str.25 = [9 x i8] c"Suournes\00"
@.str.26 = [11 x i8] c"Vestfiroir\00"
@.str.27 = [11 x i8] c"Vesturland\00"
define i8* @get_region_name_IS(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %33 [
i32 3, label %5
i32 5, label %6
i32 6, label %7
i32 7, label %8
i32 9, label %9
i32 10, label %10
i32 15, label %11
i32 17, label %12
i32 20, label %13
i32 21, label %14
i32 23, label %15
i32 28, label %16
i32 29, label %17
i32 30, label %18
i32 31, label %19
i32 32, label %20
i32 34, label %21
i32 35, label %22
i32 36, label %23
i32 37, label %24
i32 38, label %25
i32 39, label %26
i32 40, label %27
i32 41, label %28
i32 42, label %29
i32 43, label %30
i32 44, label %31
i32 45, label %32
]
5: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %2
br label %34
6: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %34
7: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %34
8: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %34
9: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %34
10: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %34
11: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %34
12: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %34
13: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %34
14: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %34
15: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %34
16: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %34
17: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %34
18: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %34
19: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %34
20: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %34
21: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %34
22: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %34
23: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %34
24: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %34
25: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %34
26: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %34
27: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %34
28: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %34
29: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %34
30: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %34
31: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %34
32: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %34
33: ; preds = %1
store i8* null, i8** %2
br label %34
34: ; preds = %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
%35 = load i8*, i8** %2
ret i8* %35
}

LLVM IR (-O2):
@.str = [11 x i8] c"Arnessysla\00"
@.str.1 = [22 x i8] c"Austur-Hunavatnssysla\00"
@.str.2 = [24 x i8] c"Austur-Skaftafellssysla\00"
@.str.3 = [19 x i8] c"Borgarfjardarsysla\00"
@.str.4 = [17 x i8] c"Eyjafjardarsysla\00"
@.str.5 = [16 x i8] c"Gullbringusysla\00"
@.str.6 = [12 x i8] c"Kjosarsysla\00"
@.str.7 = [10 x i8] c"Myrasysla\00"
@.str.8 = [17 x i8] c"Nordur-Mulasysla\00"
@.str.9 = [22 x i8] c"Nordur-Tingeyjarsysla\00"
@.str.10 = [17 x i8] c"Rangarvallasysla\00"
@.str.11 = [18 x i8] c"Skagafjardarsysla\00"
@.str.12 = [32 x i8] c"Snafellsnes- og Hnappadalssysla\00"
@.str.13 = [13 x i8] c"Strandasysla\00"
@.str.14 = [16 x i8] c"Sudur-Mulasysla\00"
@.str.15 = [21 x i8] c"Sudur-Tingeyjarsysla\00"
@.str.16 = [26 x i8] c"Vestur-Bardastrandarsysla\00"
@.str.17 = [22 x i8] c"Vestur-Hunavatnssysla\00"
@.str.18 = [23 x i8] c"Vestur-Isafjardarsysla\00"
@.str.19 = [24 x i8] c"Vestur-Skaftafellssysla\00"
@.str.20 = [11 x i8] c"Austurland\00"
@.str.21 = [18 x i8] c"Hofuoborgarsvaoio\00"
@.str.22 = [18 x i8] c"Norourland Eystra\00"
@.str.23 = [18 x i8] c"Norourland Vestra\00"
@.str.24 = [10 x i8] c"Suourland\00"
@.str.25 = [9 x i8] c"Suournes\00"
@.str.26 = [11 x i8] c"Vestfiroir\00"
@.str.27 = [11 x i8] c"Vesturland\00"
@switch.table.get_region_name_IS = [43 x i8*] [i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* null, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* null, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* null, i8* null, i8* null, i8* null, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* null, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* null, i8* null, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* null, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8* null, i8* null, i8* null, i8* null, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i8* null, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0)]
define i8* @get_region_name_IS(i32 %0) {
%2 = add i32 %0, -3
%3 = icmp ult i32 %2, 43
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds [43 x i8*], [43 x i8*]* @switch.table.get_region_name_IS, 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
}