#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_FR(int region_code) {
  switch (region_code) {
  case 97:
    return "Aquitaine";
  case 98:
    return "Auvergne";
  case 99:
    return "Basse-Normandie";
  case 832:
    return "Bourgogne";
  case 833:
    return "Bretagne";
  case 834:
    return "Centre";
  case 835:
    return "Champagne-Ardenne";
  case 836:
    return "Corse";
  case 837:
    return "Franche-Comte";
  case 838:
    return "Haute-Normandie";
  case 839:
    return "Ile-de-France";
  case 840:
    return "Languedoc-Roussillon";
  case 875:
    return "Limousin";
  case 876:
    return "Lorraine";
  case 877:
    return "Midi-Pyrenees";
  case 878:
    return "Nord-Pas-de-Calais";
  case 879:
    return "Pays de la Loire";
  case 880:
    return "Picardie";
  case 881:
    return "Poitou-Charentes";
  case 882:
    return "Provence-Alpes-Cote d'Azur";
  case 883:
    return "Rhone-Alpes";
  case 918:
    return "Alsace";
  default:
    return NULL;
  }
}


x86 assembly (clang, -O0):
<get_region_name_FR>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x61,%eax
je     12a6 <get_region_name_FR+0x1a6>
jmp    111b <get_region_name_FR+0x1b>
mov    -0x10(%rbp),%eax
sub    $0x62,%eax
je     12b6 <get_region_name_FR+0x1b6>
jmp    112c <get_region_name_FR+0x2c>
mov    -0x10(%rbp),%eax
sub    $0x63,%eax
je     12c6 <get_region_name_FR+0x1c6>
jmp    113d <get_region_name_FR+0x3d>
mov    -0x10(%rbp),%eax
sub    $0x340,%eax
je     12d6 <get_region_name_FR+0x1d6>
jmp    1150 <get_region_name_FR+0x50>
mov    -0x10(%rbp),%eax
sub    $0x341,%eax
je     12e6 <get_region_name_FR+0x1e6>
jmp    1163 <get_region_name_FR+0x63>
mov    -0x10(%rbp),%eax
sub    $0x342,%eax
je     12f6 <get_region_name_FR+0x1f6>
jmp    1176 <get_region_name_FR+0x76>
mov    -0x10(%rbp),%eax
sub    $0x343,%eax
je     1306 <get_region_name_FR+0x206>
jmp    1189 <get_region_name_FR+0x89>
mov    -0x10(%rbp),%eax
sub    $0x344,%eax
je     1316 <get_region_name_FR+0x216>
jmp    119c <get_region_name_FR+0x9c>
mov    -0x10(%rbp),%eax
sub    $0x345,%eax
je     1326 <get_region_name_FR+0x226>
jmp    11af <get_region_name_FR+0xaf>
mov    -0x10(%rbp),%eax
sub    $0x346,%eax
je     1336 <get_region_name_FR+0x236>
jmp    11c2 <get_region_name_FR+0xc2>
mov    -0x10(%rbp),%eax
sub    $0x347,%eax
je     1346 <get_region_name_FR+0x246>
jmp    11d5 <get_region_name_FR+0xd5>
mov    -0x10(%rbp),%eax
sub    $0x348,%eax
je     1356 <get_region_name_FR+0x256>
jmp    11e8 <get_region_name_FR+0xe8>
mov    -0x10(%rbp),%eax
sub    $0x36b,%eax
je     1366 <get_region_name_FR+0x266>
jmp    11fb <get_region_name_FR+0xfb>
mov    -0x10(%rbp),%eax
sub    $0x36c,%eax
je     1376 <get_region_name_FR+0x276>
jmp    120e <get_region_name_FR+0x10e>
mov    -0x10(%rbp),%eax
sub    $0x36d,%eax
je     1386 <get_region_name_FR+0x286>
jmp    1221 <get_region_name_FR+0x121>
mov    -0x10(%rbp),%eax
sub    $0x36e,%eax
je     1396 <get_region_name_FR+0x296>
jmp    1234 <get_region_name_FR+0x134>
mov    -0x10(%rbp),%eax
sub    $0x36f,%eax
je     13a6 <get_region_name_FR+0x2a6>
jmp    1247 <get_region_name_FR+0x147>
mov    -0x10(%rbp),%eax
sub    $0x370,%eax
je     13b6 <get_region_name_FR+0x2b6>
jmp    125a <get_region_name_FR+0x15a>
mov    -0x10(%rbp),%eax
sub    $0x371,%eax
je     13c6 <get_region_name_FR+0x2c6>
jmp    126d <get_region_name_FR+0x16d>
mov    -0x10(%rbp),%eax
sub    $0x372,%eax
je     13d6 <get_region_name_FR+0x2d6>
jmp    1280 <get_region_name_FR+0x180>
mov    -0x10(%rbp),%eax
sub    $0x373,%eax
je     13e6 <get_region_name_FR+0x2e6>
jmp    1293 <get_region_name_FR+0x193>
mov    -0x10(%rbp),%eax
sub    $0x396,%eax
je     13f6 <get_region_name_FR+0x2f6>
jmp    1406 <get_region_name_FR+0x306>
lea    0xd53(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd4d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd46(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd46(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd40(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd39(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd30(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd32(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd28(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd26(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd26(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd24(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd29(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd22(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd1b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd19(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd1c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd1d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd16(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd17(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd22(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
lea    0xd1e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    140e <get_region_name_FR+0x30e>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_region_name_FR>:
cmp    $0x33f,%edi
jle    112f <get_region_name_FR+0x2f>
add    $0xfffffcc0,%edi
cmp    $0x56,%edi
ja     11f2 <get_region_name_FR+0xf2>
lea    0xee2(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0x1051(%rip),%rax
ret
cmp    $0x61,%edi
je     11e2 <get_region_name_FR+0xe2>
cmp    $0x62,%edi
je     11ea <get_region_name_FR+0xea>
cmp    $0x63,%edi
jne    11f2 <get_region_name_FR+0xf2>
lea    0x101e(%rip),%rax
ret
lea    0x1030(%rip),%rax
ret
lea    0x1031(%rip),%rax
ret
lea    0x1030(%rip),%rax
ret
lea    0x103a(%rip),%rax
ret
lea    0x1038(%rip),%rax
ret
lea    0x103e(%rip),%rax
ret
lea    0x1046(%rip),%rax
ret
lea    0x104c(%rip),%rax
ret
lea    0x1059(%rip),%rax
ret
lea    0x105a(%rip),%rax
ret
lea    0x105b(%rip),%rax
ret
lea    0x1061(%rip),%rax
ret
lea    0x106c(%rip),%rax
ret
lea    0x1075(%rip),%rax
ret
lea    0x1076(%rip),%rax
ret
lea    0x107f(%rip),%rax
ret
lea    0x1092(%rip),%rax
ret
lea    0x1096(%rip),%rax
ret
lea    0xf73(%rip),%rax
ret
lea    0xf75(%rip),%rax
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [10 x i8] c"Aquitaine\00"
@.str.1 = [9 x i8] c"Auvergne\00"
@.str.2 = [16 x i8] c"Basse-Normandie\00"
@.str.3 = [10 x i8] c"Bourgogne\00"
@.str.4 = [9 x i8] c"Bretagne\00"
@.str.5 = [7 x i8] c"Centre\00"
@.str.6 = [18 x i8] c"Champagne-Ardenne\00"
@.str.7 = [6 x i8] c"Corse\00"
@.str.8 = [14 x i8] c"Franche-Comte\00"
@.str.9 = [16 x i8] c"Haute-Normandie\00"
@.str.10 = [14 x i8] c"Ile-de-France\00"
@.str.11 = [21 x i8] c"Languedoc-Roussillon\00"
@.str.12 = [9 x i8] c"Limousin\00"
@.str.13 = [9 x i8] c"Lorraine\00"
@.str.14 = [14 x i8] c"Midi-Pyrenees\00"
@.str.15 = [19 x i8] c"Nord-Pas-de-Calais\00"
@.str.16 = [17 x i8] c"Pays de la Loire\00"
@.str.17 = [9 x i8] c"Picardie\00"
@.str.18 = [17 x i8] c"Poitou-Charentes\00"
@.str.19 = [27 x i8] c"Provence-Alpes-Cote d'Azur\00"
@.str.20 = [12 x i8] c"Rhone-Alpes\00"
@.str.21 = [7 x i8] c"Alsace\00"
define i8* @get_region_name_FR(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %27 [
i32 97, label %5
i32 98, label %6
i32 99, label %7
i32 832, label %8
i32 833, label %9
i32 834, label %10
i32 835, label %11
i32 836, label %12
i32 837, label %13
i32 838, label %14
i32 839, label %15
i32 840, label %16
i32 875, label %17
i32 876, label %18
i32 877, label %19
i32 878, label %20
i32 879, label %21
i32 880, label %22
i32 881, label %23
i32 882, label %24
i32 883, label %25
i32 918, label %26
]
5: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %2
br label %28
6: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %28
7: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %28
8: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %28
9: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %28
10: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %28
11: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %28
12: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %28
13: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %28
14: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %28
15: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %28
16: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %28
17: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %28
18: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %28
19: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %28
20: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %28
21: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %28
22: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %28
23: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %28
24: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %28
25: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %28
26: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %28
27: ; preds = %1
store i8* null, i8** %2
br label %28
28: ; preds = %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%29 = load i8*, i8** %2
ret i8* %29
}

LLVM IR (-O2):
@.str = [10 x i8] c"Aquitaine\00"
@.str.1 = [9 x i8] c"Auvergne\00"
@.str.2 = [16 x i8] c"Basse-Normandie\00"
@.str.3 = [10 x i8] c"Bourgogne\00"
@.str.4 = [9 x i8] c"Bretagne\00"
@.str.5 = [7 x i8] c"Centre\00"
@.str.6 = [18 x i8] c"Champagne-Ardenne\00"
@.str.7 = [6 x i8] c"Corse\00"
@.str.8 = [14 x i8] c"Franche-Comte\00"
@.str.9 = [16 x i8] c"Haute-Normandie\00"
@.str.10 = [14 x i8] c"Ile-de-France\00"
@.str.11 = [21 x i8] c"Languedoc-Roussillon\00"
@.str.12 = [9 x i8] c"Limousin\00"
@.str.13 = [9 x i8] c"Lorraine\00"
@.str.14 = [14 x i8] c"Midi-Pyrenees\00"
@.str.15 = [19 x i8] c"Nord-Pas-de-Calais\00"
@.str.16 = [17 x i8] c"Pays de la Loire\00"
@.str.17 = [9 x i8] c"Picardie\00"
@.str.18 = [17 x i8] c"Poitou-Charentes\00"
@.str.19 = [27 x i8] c"Provence-Alpes-Cote d'Azur\00"
@.str.20 = [12 x i8] c"Rhone-Alpes\00"
@.str.21 = [7 x i8] c"Alsace\00"
define i8* @get_region_name_FR(i32 %0) {
switch i32 %0, label %23 [
i32 97, label %24
i32 98, label %2
i32 99, label %3
i32 832, label %4
i32 833, label %5
i32 834, label %6
i32 835, label %7
i32 836, label %8
i32 837, label %9
i32 838, label %10
i32 839, label %11
i32 840, label %12
i32 875, label %13
i32 876, label %14
i32 877, label %15
i32 878, label %16
i32 879, label %17
i32 880, label %18
i32 881, label %19
i32 882, label %20
i32 883, label %21
i32 918, label %22
]
2: ; preds = %1
br label %24
3: ; preds = %1
br label %24
4: ; preds = %1
br label %24
5: ; preds = %1
br label %24
6: ; preds = %1
br label %24
7: ; preds = %1
br label %24
8: ; preds = %1
br label %24
9: ; preds = %1
br label %24
10: ; preds = %1
br label %24
11: ; preds = %1
br label %24
12: ; preds = %1
br label %24
13: ; preds = %1
br label %24
14: ; preds = %1
br label %24
15: ; preds = %1
br label %24
16: ; preds = %1
br label %24
17: ; preds = %1
br label %24
18: ; preds = %1
br label %24
19: ; preds = %1
br label %24
20: ; preds = %1
br label %24
21: ; preds = %1
br label %24
22: ; preds = %1
br label %24
23: ; preds = %1
br label %24
24: ; preds = %1, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%25 = phi i8* [ null, %23 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), %22 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), %19 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), %18 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([21 x i8], [21 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 ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([16 x i8], [16 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 ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %25
}