#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*/ free(char *);
int /*<<< orphan*/ s2upper(char *);
char *sre_strdup(char *, int);
scalar_t__ strcmp(char *, char *);
int String2SeqfileFormat(char *s) {
  char *s2;
  int code = 0;
  if (s == NULL)
    return 0;
  s2 = sre_strdup(s, -1);
  s2upper(s2);
  if (strcmp(s2, "FASTA") == 0)
    code = 7;
  else if (strcmp(s2, "FA") == 0)
    code = 7;
  else if (strcmp(s2, "VIENNA") == 0)
    code = 18;
  else if (strcmp(s2, "VIE") == 0)
    code = 18;
  else if (strcmp(s2, "GENBANK") == 0)
    code = 2;
  else if (strcmp(s2, "GB") == 0)
    code = 2;
  else if (strcmp(s2, "EMBL") == 0)
    code = 4;
  else if (strcmp(s2, "GCG") == 0)
    code = 5;
  else if (strcmp(s2, "GCGDATA") == 0)
    code = 16;
  else if (strcmp(s2, "RAW") == 0)
    code = 13;
  else if (strcmp(s2, "IG") == 0)
    code = 1;
  else if (strcmp(s2, "STRIDER") == 0)
    code = 6;
  else if (strcmp(s2, "IDRAW") == 0)
    code = 9;
  else if (strcmp(s2, "ZUKER") == 0)
    code = 8;
  else if (strcmp(s2, "PIR") == 0)
    code = 12;
  else if (strcmp(s2, "SQUID") == 0)
    code = 14;
  else if (strcmp(s2, "STOCKHOLM") == 0)
    code = 101;
  else if (strcmp(s2, "ST") == 0)
    code = 101;
  else if (strcmp(s2, "STK") == 0)
    code = 101;
  else if (strcmp(s2, "SELEX") == 0)
    code = 102;
  else if (strcmp(s2, "MSF") == 0)
    code = 103;
  else if (strcmp(s2, "CLUSTAL") == 0)
    code = 104;
  else if (strcmp(s2, "CLU") == 0)
    code = 104;
  else if (strcmp(s2, "A2M") == 0)
    code = 105;
  else if (strcmp(s2, "PHYLIP") == 0)
    code = 106;
  else if (strcmp(s2, "PHY") == 0)
    code = 106;
  else if (strcmp(s2, "EPS") == 0)
    code = 107;
  else
    code = 0;
  free(s2);
  return code;
}


x86 assembly (clang, -O0):
<String2SeqfileFormat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    116a <String2SeqfileFormat+0x2a>
movl   $0x0,-0x4(%rbp)
jmp    161f <String2SeqfileFormat+0x4df>
mov    -0x10(%rbp),%rdi
mov    $0xffffffff,%esi
call   1060 <sre_strdup@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <s2upper@plt>
mov    -0x18(%rbp),%rdi
lea    0xe70(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11ab <String2SeqfileFormat+0x6b>
movl   $0x7,-0x1c(%rbp)
jmp    1610 <String2SeqfileFormat+0x4d0>
mov    -0x18(%rbp),%rdi
lea    0xe50(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11d1 <String2SeqfileFormat+0x91>
movl   $0x7,-0x1c(%rbp)
jmp    160b <String2SeqfileFormat+0x4cb>
mov    -0x18(%rbp),%rdi
lea    0xe2d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11f7 <String2SeqfileFormat+0xb7>
movl   $0x12,-0x1c(%rbp)
jmp    1606 <String2SeqfileFormat+0x4c6>
mov    -0x18(%rbp),%rdi
lea    0xe0e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    121d <String2SeqfileFormat+0xdd>
movl   $0x12,-0x1c(%rbp)
jmp    1601 <String2SeqfileFormat+0x4c1>
mov    -0x18(%rbp),%rdi
lea    0xdec(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1243 <String2SeqfileFormat+0x103>
movl   $0x2,-0x1c(%rbp)
jmp    15fc <String2SeqfileFormat+0x4bc>
mov    -0x18(%rbp),%rdi
lea    0xdce(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1269 <String2SeqfileFormat+0x129>
movl   $0x2,-0x1c(%rbp)
jmp    15f7 <String2SeqfileFormat+0x4b7>
mov    -0x18(%rbp),%rdi
lea    0xdab(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    128f <String2SeqfileFormat+0x14f>
movl   $0x4,-0x1c(%rbp)
jmp    15f2 <String2SeqfileFormat+0x4b2>
mov    -0x18(%rbp),%rdi
lea    0xd8a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12b5 <String2SeqfileFormat+0x175>
movl   $0x5,-0x1c(%rbp)
jmp    15ed <String2SeqfileFormat+0x4ad>
mov    -0x18(%rbp),%rdi
lea    0xd68(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12db <String2SeqfileFormat+0x19b>
movl   $0x10,-0x1c(%rbp)
jmp    15e8 <String2SeqfileFormat+0x4a8>
mov    -0x18(%rbp),%rdi
lea    0xd57(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1301 <String2SeqfileFormat+0x1c1>
movl   $0xd,-0x1c(%rbp)
jmp    15e3 <String2SeqfileFormat+0x4a3>
mov    -0x18(%rbp),%rdi
lea    0xd24(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1327 <String2SeqfileFormat+0x1e7>
movl   $0x1,-0x1c(%rbp)
jmp    15de <String2SeqfileFormat+0x49e>
mov    -0x18(%rbp),%rdi
lea    0xd01(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    134d <String2SeqfileFormat+0x20d>
movl   $0x6,-0x1c(%rbp)
jmp    15d9 <String2SeqfileFormat+0x499>
mov    -0x18(%rbp),%rdi
lea    0xce3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1373 <String2SeqfileFormat+0x233>
movl   $0x9,-0x1c(%rbp)
jmp    15d4 <String2SeqfileFormat+0x494>
mov    -0x18(%rbp),%rdi
lea    0xcc3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1399 <String2SeqfileFormat+0x259>
movl   $0x8,-0x1c(%rbp)
jmp    15cf <String2SeqfileFormat+0x48f>
mov    -0x18(%rbp),%rdi
lea    0xca3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13bf <String2SeqfileFormat+0x27f>
movl   $0xc,-0x1c(%rbp)
jmp    15ca <String2SeqfileFormat+0x48a>
mov    -0x18(%rbp),%rdi
lea    0xc81(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13e5 <String2SeqfileFormat+0x2a5>
movl   $0xe,-0x1c(%rbp)
jmp    15c5 <String2SeqfileFormat+0x485>
mov    -0x18(%rbp),%rdi
lea    0xc61(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    140b <String2SeqfileFormat+0x2cb>
movl   $0x65,-0x1c(%rbp)
jmp    15c0 <String2SeqfileFormat+0x480>
mov    -0x18(%rbp),%rdi
lea    0xc45(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1431 <String2SeqfileFormat+0x2f1>
movl   $0x65,-0x1c(%rbp)
jmp    15bb <String2SeqfileFormat+0x47b>
mov    -0x18(%rbp),%rdi
lea    0xc22(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1457 <String2SeqfileFormat+0x317>
movl   $0x65,-0x1c(%rbp)
jmp    15b6 <String2SeqfileFormat+0x476>
mov    -0x18(%rbp),%rdi
lea    0xc00(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    147d <String2SeqfileFormat+0x33d>
movl   $0x66,-0x1c(%rbp)
jmp    15b1 <String2SeqfileFormat+0x471>
mov    -0x18(%rbp),%rdi
lea    0xbe0(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14a3 <String2SeqfileFormat+0x363>
movl   $0x67,-0x1c(%rbp)
jmp    15ac <String2SeqfileFormat+0x46c>
mov    -0x18(%rbp),%rdi
lea    0xbbe(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14c9 <String2SeqfileFormat+0x389>
movl   $0x68,-0x1c(%rbp)
jmp    15a7 <String2SeqfileFormat+0x467>
mov    -0x18(%rbp),%rdi
lea    0xba0(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14ef <String2SeqfileFormat+0x3af>
movl   $0x68,-0x1c(%rbp)
jmp    15a2 <String2SeqfileFormat+0x462>
mov    -0x18(%rbp),%rdi
lea    0xb7e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1515 <String2SeqfileFormat+0x3d5>
movl   $0x69,-0x1c(%rbp)
jmp    159d <String2SeqfileFormat+0x45d>
mov    -0x18(%rbp),%rdi
lea    0xb5c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    153b <String2SeqfileFormat+0x3fb>
movl   $0x6a,-0x1c(%rbp)
jmp    1598 <String2SeqfileFormat+0x458>
mov    -0x18(%rbp),%rdi
lea    0xb3d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1561 <String2SeqfileFormat+0x421>
movl   $0x6a,-0x1c(%rbp)
jmp    1593 <String2SeqfileFormat+0x453>
mov    -0x18(%rbp),%rdi
lea    0xb1b(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1587 <String2SeqfileFormat+0x447>
movl   $0x6b,-0x1c(%rbp)
jmp    158e <String2SeqfileFormat+0x44e>
movl   $0x0,-0x1c(%rbp)
jmp    1593 <String2SeqfileFormat+0x453>
jmp    1598 <String2SeqfileFormat+0x458>
jmp    159d <String2SeqfileFormat+0x45d>
jmp    15a2 <String2SeqfileFormat+0x462>
jmp    15a7 <String2SeqfileFormat+0x467>
jmp    15ac <String2SeqfileFormat+0x46c>
jmp    15b1 <String2SeqfileFormat+0x471>
jmp    15b6 <String2SeqfileFormat+0x476>
jmp    15bb <String2SeqfileFormat+0x47b>
jmp    15c0 <String2SeqfileFormat+0x480>
jmp    15c5 <String2SeqfileFormat+0x485>
jmp    15ca <String2SeqfileFormat+0x48a>
jmp    15cf <String2SeqfileFormat+0x48f>
jmp    15d4 <String2SeqfileFormat+0x494>
jmp    15d9 <String2SeqfileFormat+0x499>
jmp    15de <String2SeqfileFormat+0x49e>
jmp    15e3 <String2SeqfileFormat+0x4a3>
jmp    15e8 <String2SeqfileFormat+0x4a8>
jmp    15ed <String2SeqfileFormat+0x4ad>
jmp    15f2 <String2SeqfileFormat+0x4b2>
jmp    15f7 <String2SeqfileFormat+0x4b7>
jmp    15fc <String2SeqfileFormat+0x4bc>
jmp    1601 <String2SeqfileFormat+0x4c1>
jmp    1606 <String2SeqfileFormat+0x4c6>
jmp    160b <String2SeqfileFormat+0x4cb>
jmp    1610 <String2SeqfileFormat+0x4d0>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<String2SeqfileFormat>:
push   %rbp
push   %rbx
push   %rax
test   %rdi,%rdi
je     1405 <String2SeqfileFormat+0x2c5>
mov    $0xffffffff,%esi
call   1060 <sre_strdup@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <s2upper@plt>
lea    0xe98(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    $0x7,%ebp
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xe81(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xe6c(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    $0x12,%ebp
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xe56(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xe42(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    $0x2,%ebp
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xe2d(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xe18(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1409 <String2SeqfileFormat+0x2c9>
lea    0xe05(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1410 <String2SeqfileFormat+0x2d0>
lea    0xdf1(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1417 <String2SeqfileFormat+0x2d7>
lea    0xdee(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     141e <String2SeqfileFormat+0x2de>
lea    0xdc9(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1425 <String2SeqfileFormat+0x2e5>
lea    0xdb4(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     142c <String2SeqfileFormat+0x2ec>
lea    0xda4(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1433 <String2SeqfileFormat+0x2f3>
lea    0xd92(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     143a <String2SeqfileFormat+0x2fa>
lea    0xd80(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1441 <String2SeqfileFormat+0x301>
lea    0xd6c(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1448 <String2SeqfileFormat+0x308>
lea    0xd5a(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    $0x65,%ebp
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xd47(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xd32(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xd1e(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     145e <String2SeqfileFormat+0x31e>
lea    0xd0c(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1465 <String2SeqfileFormat+0x325>
lea    0xcf8(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    $0x68,%ebp
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xce3(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xccf(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     146c <String2SeqfileFormat+0x32c>
lea    0xcbb(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
mov    $0x6a,%ebp
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xca9(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144d <String2SeqfileFormat+0x30d>
lea    0xc99(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
mov    $0x6b,%ebp
cmovne %ecx,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
xor    %ebp,%ebp
jmp    1455 <String2SeqfileFormat+0x315>
mov    $0x4,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x5,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x10,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0xd,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x1,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x6,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x9,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x8,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0xc,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0xe,%ebp
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    $0x66,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x67,%ebp
jmp    144d <String2SeqfileFormat+0x30d>
mov    $0x69,%ebp
jmp    144d <String2SeqfileFormat+0x30d>

LLVM IR (-O0):
@.str = [6 x i8] c"FASTA\00"
@.str.1 = [3 x i8] c"FA\00"
@.str.2 = [7 x i8] c"VIENNA\00"
@.str.3 = [4 x i8] c"VIE\00"
@.str.4 = [8 x i8] c"GENBANK\00"
@.str.5 = [3 x i8] c"GB\00"
@.str.6 = [5 x i8] c"EMBL\00"
@.str.7 = [4 x i8] c"GCG\00"
@.str.8 = [8 x i8] c"GCGDATA\00"
@.str.9 = [4 x i8] c"RAW\00"
@.str.10 = [3 x i8] c"IG\00"
@.str.11 = [8 x i8] c"STRIDER\00"
@.str.12 = [6 x i8] c"IDRAW\00"
@.str.13 = [6 x i8] c"ZUKER\00"
@.str.14 = [4 x i8] c"PIR\00"
@.str.15 = [6 x i8] c"SQUID\00"
@.str.16 = [10 x i8] c"STOCKHOLM\00"
@.str.17 = [3 x i8] c"ST\00"
@.str.18 = [4 x i8] c"STK\00"
@.str.19 = [6 x i8] c"SELEX\00"
@.str.20 = [4 x i8] c"MSF\00"
@.str.21 = [8 x i8] c"CLUSTAL\00"
@.str.22 = [4 x i8] c"CLU\00"
@.str.23 = [4 x i8] c"A2M\00"
@.str.24 = [7 x i8] c"PHYLIP\00"
@.str.25 = [4 x i8] c"PHY\00"
@.str.26 = [4 x i8] c"EPS\00"
define i32 @String2SeqfileFormat(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %5
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, i32* %2
br label %179
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i8* @sre_strdup(i8* %10, i32 -1)
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = call i32 @s2upper(i8* %12)
%14 = load i8*, i8** %4
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %9
store i32 7, i32* %5
br label %175
18: ; preds = %9
%19 = load i8*, i8** %4
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 7, i32* %5
br label %174
23: ; preds = %18
%24 = load i8*, i8** %4
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 18, i32* %5
br label %173
28: ; preds = %23
%29 = load i8*, i8** %4
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 18, i32* %5
br label %172
33: ; preds = %28
%34 = load i8*, i8** %4
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 2, i32* %5
br label %171
38: ; preds = %33
%39 = load i8*, i8** %4
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 2, i32* %5
br label %170
43: ; preds = %38
%44 = load i8*, i8** %4
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 4, i32* %5
br label %169
48: ; preds = %43
%49 = load i8*, i8** %4
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 5, i32* %5
br label %168
53: ; preds = %48
%54 = load i8*, i8** %4
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 16, i32* %5
br label %167
58: ; preds = %53
%59 = load i8*, i8** %4
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %58
store i32 13, i32* %5
br label %166
63: ; preds = %58
%64 = load i8*, i8** %4
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %63
store i32 1, i32* %5
br label %165
68: ; preds = %63
%69 = load i8*, i8** %4
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 6, i32* %5
br label %164
73: ; preds = %68
%74 = load i8*, i8** %4
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %73
store i32 9, i32* %5
br label %163
78: ; preds = %73
%79 = load i8*, i8** %4
%80 = call i64 @strcmp(i8* %79, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %78
store i32 8, i32* %5
br label %162
83: ; preds = %78
%84 = load i8*, i8** %4
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %83
store i32 12, i32* %5
br label %161
88: ; preds = %83
%89 = load i8*, i8** %4
%90 = call i64 @strcmp(i8* %89, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
store i32 14, i32* %5
br label %160
93: ; preds = %88
%94 = load i8*, i8** %4
%95 = call i64 @strcmp(i8* %94, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %93
store i32 101, i32* %5
br label %159
98: ; preds = %93
%99 = load i8*, i8** %4
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %98
store i32 101, i32* %5
br label %158
103: ; preds = %98
%104 = load i8*, i8** %4
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %103
store i32 101, i32* %5
br label %157
108: ; preds = %103
%109 = load i8*, i8** %4
%110 = call i64 @strcmp(i8* %109, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %108
store i32 102, i32* %5
br label %156
113: ; preds = %108
%114 = load i8*, i8** %4
%115 = call i64 @strcmp(i8* %114, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %118
117: ; preds = %113
store i32 103, i32* %5
br label %155
118: ; preds = %113
%119 = load i8*, i8** %4
%120 = call i64 @strcmp(i8* %119, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %118
store i32 104, i32* %5
br label %154
123: ; preds = %118
%124 = load i8*, i8** %4
%125 = call i64 @strcmp(i8* %124, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %123
store i32 104, i32* %5
br label %153
128: ; preds = %123
%129 = load i8*, i8** %4
%130 = call i64 @strcmp(i8* %129, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %133
132: ; preds = %128
store i32 105, i32* %5
br label %152
133: ; preds = %128
%134 = load i8*, i8** %4
%135 = call i64 @strcmp(i8* %134, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %138
137: ; preds = %133
store i32 106, i32* %5
br label %151
138: ; preds = %133
%139 = load i8*, i8** %4
%140 = call i64 @strcmp(i8* %139, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
%141 = icmp eq i64 %140, 0
br i1 %141, label %142, label %143
142: ; preds = %138
store i32 106, i32* %5
br label %150
143: ; preds = %138
%144 = load i8*, i8** %4
%145 = call i64 @strcmp(i8* %144, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%146 = icmp eq i64 %145, 0
br i1 %146, label %147, label %148
147: ; preds = %143
store i32 107, i32* %5
br label %149
148: ; preds = %143
store i32 0, i32* %5
br label %149
149: ; preds = %148, %147
br label %150
150: ; preds = %149, %142
br label %151
151: ; preds = %150, %137
br label %152
152: ; preds = %151, %132
br label %153
153: ; preds = %152, %127
br label %154
154: ; preds = %153, %122
br label %155
155: ; preds = %154, %117
br label %156
156: ; preds = %155, %112
br label %157
157: ; preds = %156, %107
br label %158
158: ; preds = %157, %102
br label %159
159: ; preds = %158, %97
br label %160
160: ; preds = %159, %92
br label %161
161: ; preds = %160, %87
br label %162
162: ; preds = %161, %82
br label %163
163: ; preds = %162, %77
br label %164
164: ; preds = %163, %72
br label %165
165: ; preds = %164, %67
br label %166
166: ; preds = %165, %62
br label %167
167: ; preds = %166, %57
br label %168
168: ; preds = %167, %52
br label %169
169: ; preds = %168, %47
br label %170
170: ; preds = %169, %42
br label %171
171: ; preds = %170, %37
br label %172
172: ; preds = %171, %32
br label %173
173: ; preds = %172, %27
br label %174
174: ; preds = %173, %22
br label %175
175: ; preds = %174, %17
%176 = load i8*, i8** %4
%177 = call i32 @free(i8* %176)
%178 = load i32, i32* %5
store i32 %178, i32* %2
br label %179
179: ; preds = %175, %8
%180 = load i32, i32* %2
ret i32 %180
}

LLVM IR (-O2):
@.str = [6 x i8] c"FASTA\00"
@.str.1 = [3 x i8] c"FA\00"
@.str.2 = [7 x i8] c"VIENNA\00"
@.str.3 = [4 x i8] c"VIE\00"
@.str.4 = [8 x i8] c"GENBANK\00"
@.str.5 = [3 x i8] c"GB\00"
@.str.6 = [5 x i8] c"EMBL\00"
@.str.7 = [4 x i8] c"GCG\00"
@.str.8 = [8 x i8] c"GCGDATA\00"
@.str.9 = [4 x i8] c"RAW\00"
@.str.10 = [3 x i8] c"IG\00"
@.str.11 = [8 x i8] c"STRIDER\00"
@.str.12 = [6 x i8] c"IDRAW\00"
@.str.13 = [6 x i8] c"ZUKER\00"
@.str.14 = [4 x i8] c"PIR\00"
@.str.15 = [6 x i8] c"SQUID\00"
@.str.16 = [10 x i8] c"STOCKHOLM\00"
@.str.17 = [3 x i8] c"ST\00"
@.str.18 = [4 x i8] c"STK\00"
@.str.19 = [6 x i8] c"SELEX\00"
@.str.20 = [4 x i8] c"MSF\00"
@.str.21 = [8 x i8] c"CLUSTAL\00"
@.str.22 = [4 x i8] c"CLU\00"
@.str.23 = [4 x i8] c"A2M\00"
@.str.24 = [7 x i8] c"PHYLIP\00"
@.str.25 = [4 x i8] c"PHY\00"
@.str.26 = [4 x i8] c"EPS\00"
define i32 @String2SeqfileFormat(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %90, label %3
3: ; preds = %1
%4 = tail call i8* @sre_strdup(i8* %0, i32 -1)
%5 = tail call i32 @s2upper(i8* %4)
%6 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %87, label %8
8: ; preds = %3
%9 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %87, label %11
11: ; preds = %8
%12 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %87, label %14
14: ; preds = %11
%15 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %87, label %17
17: ; preds = %14
%18 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %87, label %20
20: ; preds = %17
%21 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %87, label %23
23: ; preds = %20
%24 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %87, label %26
26: ; preds = %23
%27 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %87, label %29
29: ; preds = %26
%30 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %87, label %32
32: ; preds = %29
%33 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %87, label %35
35: ; preds = %32
%36 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %87, label %38
38: ; preds = %35
%39 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %87, label %41
41: ; preds = %38
%42 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %87, label %44
44: ; preds = %41
%45 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %87, label %47
47: ; preds = %44
%48 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %87, label %50
50: ; preds = %47
%51 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %87, label %53
53: ; preds = %50
%54 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %87, label %56
56: ; preds = %53
%57 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %87, label %59
59: ; preds = %56
%60 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %87, label %62
62: ; preds = %59
%63 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %87, label %65
65: ; preds = %62
%66 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %87, label %68
68: ; preds = %65
%69 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %87, label %71
71: ; preds = %68
%72 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %87, label %74
74: ; preds = %71
%75 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %87, label %77
77: ; preds = %74
%78 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %87, label %80
80: ; preds = %77
%81 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %87, label %83
83: ; preds = %80
%84 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
%86 = select i1 %85, i32 107, i32 0
br label %87
87: ; preds = %83, %80, %77, %74, %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17, %14, %11, %8, %3
%88 = phi i32 [ 7, %3 ], [ 7, %8 ], [ 18, %11 ], [ 18, %14 ], [ 2, %17 ], [ 2, %20 ], [ 4, %23 ], [ 5, %26 ], [ 16, %29 ], [ 13, %32 ], [ 1, %35 ], [ 6, %38 ], [ 9, %41 ], [ 8, %44 ], [ 12, %47 ], [ 14, %50 ], [ 101, %53 ], [ 101, %56 ], [ 101, %59 ], [ 102, %62 ], [ 103, %65 ], [ 104, %68 ], [ 104, %71 ], [ 105, %74 ], [ 106, %77 ], [ 106, %80 ], [ %86, %83 ]
%89 = tail call i32 @free(i8* %4)
br label %90
90: ; preds = %1, %87
%91 = phi i32 [ %88, %87 ], [ 0, %1 ]
ret i32 %91
}