const char *c_textlabel(int t) {
  switch (t) {
  case 88:
  case 89:
  case 95:
  case 96:
    return "match string";
  case 15:
    return "string";
  case 13:
    return "header";
  case 16:
    return "getenv";
  case 17:
    return "profile entry";
  default:
    return "text";
  }
}


x86 assembly (clang, -O0):
<c_textlabel>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0xd,%eax
je     1196 <c_textlabel+0x96>
jmp    111b <c_textlabel+0x1b>
mov    -0x10(%rbp),%eax
sub    $0xf,%eax
je     1186 <c_textlabel+0x86>
jmp    112c <c_textlabel+0x2c>
mov    -0x10(%rbp),%eax
sub    $0x10,%eax
je     11a6 <c_textlabel+0xa6>
jmp    113d <c_textlabel+0x3d>
mov    -0x10(%rbp),%eax
sub    $0x11,%eax
je     11b6 <c_textlabel+0xb6>
jmp    114e <c_textlabel+0x4e>
mov    -0x10(%rbp),%eax
add    $0xffffffa8,%eax
sub    $0x2,%eax
jb     1176 <c_textlabel+0x76>
jmp    1162 <c_textlabel+0x62>
mov    -0x10(%rbp),%eax
add    $0xffffffa1,%eax
sub    $0x1,%eax
ja     11c6 <c_textlabel+0xc6>
jmp    1176 <c_textlabel+0x76>
lea    0xe83(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d1 <c_textlabel+0xd1>
lea    0xe79(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d1 <c_textlabel+0xd1>
lea    0xe70(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d1 <c_textlabel+0xd1>
lea    0xe67(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d1 <c_textlabel+0xd1>
lea    0xe5e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    11d1 <c_textlabel+0xd1>
lea    0xe5c(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_textlabel>:
lea    -0xd(%rdi),%eax
cmp    $0x4,%eax
jbe    1122 <c_textlabel+0x22>
add    $0xffffffa8,%edi
cmp    $0x8,%edi
ja     113a <c_textlabel+0x3a>
mov    $0x183,%eax
bt     %edi,%eax
jae    113a <c_textlabel+0x3a>
lea    0xef3(%rip),%rax
ret
lea    0xed7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee8(%rip),%rax
ret
lea    0xefc(%rip),%rax
ret
lea    0xed1(%rip),%rax
ret
lea    0xed7(%rip),%rax
ret
lea    0xed6(%rip),%rax
ret

LLVM IR (-O0):
@.str = [13 x i8] c"match string\00"
@.str.1 = [7 x i8] c"string\00"
@.str.2 = [7 x i8] c"header\00"
@.str.3 = [7 x i8] c"getenv\00"
@.str.4 = [14 x i8] c"profile entry\00"
@.str.5 = [5 x i8] c"text\00"
define i8* @c_textlabel(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %10 [
i32 88, label %5
i32 89, label %5
i32 95, label %5
i32 96, label %5
i32 15, label %6
i32 13, label %7
i32 16, label %8
i32 17, label %9
]
5: ; preds = %1, %1, %1, %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8** %2
br label %11
6: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %11
7: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %11
8: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %11
9: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %11
10: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %11
11: ; preds = %10, %9, %8, %7, %6, %5
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
@.str = [13 x i8] c"match string\00"
@.str.1 = [7 x i8] c"string\00"
@.str.2 = [7 x i8] c"header\00"
@.str.3 = [7 x i8] c"getenv\00"
@.str.4 = [14 x i8] c"profile entry\00"
@.str.5 = [5 x i8] c"text\00"
define i8* @c_textlabel(i32 %0) {
switch i32 %0, label %6 [
i32 88, label %7
i32 89, label %7
i32 95, label %7
i32 96, label %7
i32 15, label %2
i32 13, label %3
i32 16, label %4
i32 17, label %5
]
2: ; preds = %1
br label %7
3: ; preds = %1
br label %7
4: ; preds = %1
br label %7
5: ; preds = %1
br label %7
6: ; preds = %1
br label %7
7: ; preds = %1, %1, %1, %1, %6, %5, %4, %3, %2
%8 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %8
}