#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 */
int /*<<< orphan*/ Die(char *);
char *SeqfileFormat2String(int code) {
  switch (code) {
  case 0:
    return "unknown";
  case 7:
    return "FASTA";
  case 18:
    return "Vienna";
  case 2:
    return "Genbank";
  case 4:
    return "EMBL";
  case 5:
    return "GCG";
  case 16:
    return "GCG data library";
  case 13:
    return "raw";
  case 1:
    return "Intelligenetics";
  case 6:
    return "MacStrider";
  case 9:
    return "Idraw Postscript";
  case 8:
    return "Zuker";
  case 12:
    return "PIR";
  case 14:
    return "SQUID";
  case 101:
    return "Stockholm";
  case 102:
    return "SELEX";
  case 103:
    return "MSF";
  case 104:
    return "Clustal";
  case 105:
    return "a2m";
  case 106:
    return "Phylip";
  case 107:
    return "EPS";
  default:
    Die("Bad code passed to MSAFormat2String()");
  }
  return NULL;
}


x86 assembly (clang, -O0):
<SeqfileFormat2String>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %rax,-0x18(%rbp)
sub    $0x6b,%rax
ja     1290 <SeqfileFormat2String+0x180>
mov    -0x18(%rbp),%rax
lea    0xec9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1069(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1061(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1057(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x104e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1046(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x103b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x102f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1030(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1024(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1024(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x101f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1020(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1016(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x100a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0x1000(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0xffa(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0xff0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0xfe4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0xfdc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0xfd0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0xfc7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12a4 <SeqfileFormat2String+0x194>
lea    0xfbb(%rip),%rdi
call   1030 <Die@plt>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SeqfileFormat2String>:
push   %rax
cmp    $0x6b,%edi
ja     1141 <SeqfileFormat2String+0x31>
lea    0x1093(%rip),%rax
mov    %edi,%ecx
lea    0xeda(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0x10b5(%rip),%rax
pop    %rcx
ret
lea    0x1086(%rip),%rax
pop    %rcx
ret
lea    0x110a(%rip),%rdi
call   1030 <Die@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0x1075(%rip),%rax
pop    %rcx
ret
lea    0x1071(%rip),%rax
pop    %rcx
ret
lea    0x1091(%rip),%rax
pop    %rcx
ret
lea    0x1045(%rip),%rax
pop    %rcx
ret
lea    0x109b(%rip),%rax
pop    %rcx
ret
lea    0x1081(%rip),%rax
pop    %rcx
ret
lea    0x108f(%rip),%rax
pop    %rcx
ret
lea    0x1050(%rip),%rax
pop    %rcx
ret
lea    0x1081(%rip),%rax
pop    %rcx
ret
lea    0x102d(%rip),%rax
pop    %rcx
ret
lea    0x100c(%rip),%rax
pop    %rcx
ret
lea    0x106c(%rip),%rax
pop    %rcx
ret
lea    0x106d(%rip),%rax
pop    %rcx
ret
lea    0x106a(%rip),%rax
pop    %rcx
ret
lea    0x1065(%rip),%rax
pop    %rcx
ret
lea    0x1064(%rip),%rax
pop    %rcx
ret
lea    0x105f(%rip),%rax
pop    %rcx
ret
lea    0x105d(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"unknown\00"
@.str.1 = [6 x i8] c"FASTA\00"
@.str.2 = [7 x i8] c"Vienna\00"
@.str.3 = [8 x i8] c"Genbank\00"
@.str.4 = [5 x i8] c"EMBL\00"
@.str.5 = [4 x i8] c"GCG\00"
@.str.6 = [17 x i8] c"GCG data library\00"
@.str.7 = [4 x i8] c"raw\00"
@.str.8 = [16 x i8] c"Intelligenetics\00"
@.str.9 = [11 x i8] c"MacStrider\00"
@.str.10 = [17 x i8] c"Idraw Postscript\00"
@.str.11 = [6 x i8] c"Zuker\00"
@.str.12 = [4 x i8] c"PIR\00"
@.str.13 = [6 x i8] c"SQUID\00"
@.str.14 = [10 x i8] c"Stockholm\00"
@.str.15 = [6 x i8] c"SELEX\00"
@.str.16 = [4 x i8] c"MSF\00"
@.str.17 = [8 x i8] c"Clustal\00"
@.str.18 = [4 x i8] c"a2m\00"
@.str.19 = [7 x i8] c"Phylip\00"
@.str.20 = [4 x i8] c"EPS\00"
@.str.21 = [38 x i8] c"Bad code passed to MSAFormat2String()\00"
define i8* @SeqfileFormat2String(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %26 [
i32 0, label %5
i32 7, label %6
i32 18, label %7
i32 2, label %8
i32 4, label %9
i32 5, label %10
i32 16, label %11
i32 13, label %12
i32 1, label %13
i32 6, label %14
i32 9, label %15
i32 8, label %16
i32 12, label %17
i32 14, label %18
i32 101, label %19
i32 102, label %20
i32 103, label %21
i32 104, label %22
i32 105, label %23
i32 106, label %24
i32 107, label %25
]
5: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %2
br label %29
6: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %29
7: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %29
8: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %29
9: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %29
10: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %29
11: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %29
12: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %29
13: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %29
14: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %29
15: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %29
16: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %29
17: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %29
18: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %29
19: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %29
20: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %29
21: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %29
22: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %29
23: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %29
24: ; preds = %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %29
25: ; preds = %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %29
26: ; preds = %1
%27 = call i32 @Die(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.21, i64 0, i64 0))
br label %28
28: ; preds = %26
store i8* null, i8** %2
br label %29
29: ; preds = %28, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%30 = load i8*, i8** %2
ret i8* %30
}

LLVM IR (-O2):
@.str = [8 x i8] c"unknown\00"
@.str.1 = [6 x i8] c"FASTA\00"
@.str.2 = [7 x i8] c"Vienna\00"
@.str.3 = [8 x i8] c"Genbank\00"
@.str.4 = [5 x i8] c"EMBL\00"
@.str.5 = [4 x i8] c"GCG\00"
@.str.6 = [17 x i8] c"GCG data library\00"
@.str.7 = [4 x i8] c"raw\00"
@.str.8 = [16 x i8] c"Intelligenetics\00"
@.str.9 = [11 x i8] c"MacStrider\00"
@.str.10 = [17 x i8] c"Idraw Postscript\00"
@.str.11 = [6 x i8] c"Zuker\00"
@.str.12 = [4 x i8] c"PIR\00"
@.str.13 = [6 x i8] c"SQUID\00"
@.str.14 = [10 x i8] c"Stockholm\00"
@.str.15 = [6 x i8] c"SELEX\00"
@.str.16 = [4 x i8] c"MSF\00"
@.str.17 = [8 x i8] c"Clustal\00"
@.str.18 = [4 x i8] c"a2m\00"
@.str.19 = [7 x i8] c"Phylip\00"
@.str.20 = [4 x i8] c"EPS\00"
@.str.21 = [38 x i8] c"Bad code passed to MSAFormat2String()\00"
define i8* @SeqfileFormat2String(i32 %0) {
switch i32 %0, label %22 [
i32 0, label %24
i32 7, label %2
i32 18, label %3
i32 2, label %4
i32 4, label %5
i32 5, label %6
i32 16, label %7
i32 13, label %8
i32 1, label %9
i32 6, label %10
i32 9, label %11
i32 8, label %12
i32 12, label %13
i32 14, label %14
i32 101, label %15
i32 102, label %16
i32 103, label %17
i32 104, label %18
i32 105, label %19
i32 106, label %20
i32 107, label %21
]
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
%23 = tail call i32 @Die(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.21, i64 0, i64 0))
br label %24
24: ; preds = %1, %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, %22 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), %19 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), %18 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([8 x i8], [8 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 ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %25
}