#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 */
scalar_t__ strchr(char *, char);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strncmp(char const *, char *, int);
int spctyp(const char ctype[9], char cname[], char units[], char *ptype,
           char *xtype, int *restreq) {
  *restreq = 0;
  if (strncmp(ctype, "FREQ", 4) == 0) {
    if (cname)
      strcpy(cname, "Frequency");
    if (units)
      strcpy(units, "(Hz)");
    *ptype = 'F';
  } else if (strncmp(ctype, "AFRQ", 4) == 0) {
    if (cname)
      strcpy(cname, "Angular frequency");
    if (units)
      strcpy(units, "(deg/s)");
    *ptype = 'F';
  } else if (strncmp(ctype, "ENER", 4) == 0) {
    if (cname)
      strcpy(cname, "Photon energy");
    if (units)
      strcpy(units, "(J)");
    *ptype = 'F';
  } else if (strncmp(ctype, "WAVN", 4) == 0) {
    if (cname)
      strcpy(cname, "Wavenumber");
    if (units)
      strcpy(units, "(1/m)");
    *ptype = 'F';
  } else if (strncmp(ctype, "VRAD", 4) == 0) {
    if (cname)
      strcpy(cname, "Radio velocity");
    if (units)
      strcpy(units, "(m/s)");
    *ptype = 'F';
    *restreq = 1;
  } else if (strncmp(ctype, "WAVE", 4) == 0) {
    if (cname)
      strcpy(cname, "Vacuum wavelength");
    if (units)
      strcpy(units, "(m)");
    *ptype = 'W';
  } else if (strncmp(ctype, "VOPT", 4) == 0) {
    if (cname)
      strcpy(cname, "Optical velocity");
    if (units)
      strcpy(units, "(m/s)");
    *ptype = 'W';
    *restreq = 1;
  } else if (strncmp(ctype, "ZOPT", 4) == 0) {
    if (cname)
      strcpy(cname, "Redshift");
    if (units)
      strcpy(units, "");
    *ptype = 'W';
    *restreq = 1;
  } else if (strncmp(ctype, "AWAV", 4) == 0) {
    if (cname)
      strcpy(cname, "Air wavelength");
    if (units)
      strcpy(units, "(m)");
    *ptype = 'A';
  } else if (strncmp(ctype, "VELO", 4) == 0) {
    if (cname)
      strcpy(cname, "Relativistic velocity");
    if (units)
      strcpy(units, "(m/s)");
    *ptype = 'V';
  } else if (strncmp(ctype, "BETA", 4) == 0) {
    if (cname)
      strcpy(cname, "Velocity ratio (v/c)");
    if (units)
      strcpy(units, "");
    *ptype = 'V';
  } else {
    return 2;
  }
  if ((*xtype = ctype[5]) == ' ') {
    if (strncmp(ctype + 4, "    ", 4) != 0) {
      return 2;
    }
    *xtype = *ptype;
  } else if (ctype[4] != '-') {
    return 2;
  } else if (*xtype == 'G') {
    if (ctype[6] != 'R') {
      return 2;
    }
    if (ctype[7] == 'I') {
      *xtype = 'w';
    } else if (ctype[7] == 'A') {
      *xtype = 'a';
    } else {
      return 2;
    }
  } else if (ctype[6] != '2') {
    return 2;
  } else if (ctype[7] != *ptype && ctype[7] != '?') {
    return 2;
  } else if (ctype[7] == ctype[5]) {
    return 2;
  }
  if (strchr("FWAwa", *xtype)) {
    if (*ptype == 'V') {
      *restreq += 2;
    }
  } else if (*xtype == 'V') {
    if (strchr("FWAwa", *ptype)) {
      *restreq += 2;
    }
  } else {
    return 2;
  }
  return 0;
}


x86 assembly (clang, -O0):
<spctyp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    0xe9b(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    11bb <spctyp+0x8b>
cmpq   $0x0,-0x18(%rbp)
je     1194 <spctyp+0x64>
mov    -0x18(%rbp),%rdi
lea    0xe76(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     11af <spctyp+0x7f>
mov    -0x20(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x46,(%rax)
jmp    15e1 <spctyp+0x4b1>
mov    -0x10(%rbp),%rdi
lea    0xe4e(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    121c <spctyp+0xec>
cmpq   $0x0,-0x18(%rbp)
je     11f5 <spctyp+0xc5>
mov    -0x18(%rbp),%rdi
lea    0xe29(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     1210 <spctyp+0xe0>
mov    -0x20(%rbp),%rdi
lea    0xe20(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x46,(%rax)
jmp    15dc <spctyp+0x4ac>
mov    -0x10(%rbp),%rdi
lea    0xe0c(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    127d <spctyp+0x14d>
cmpq   $0x0,-0x18(%rbp)
je     1256 <spctyp+0x126>
mov    -0x18(%rbp),%rdi
lea    0xde7(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     1271 <spctyp+0x141>
mov    -0x20(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x46,(%rax)
jmp    15d7 <spctyp+0x4a7>
mov    -0x10(%rbp),%rdi
lea    0xdc2(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    12de <spctyp+0x1ae>
cmpq   $0x0,-0x18(%rbp)
je     12b7 <spctyp+0x187>
mov    -0x18(%rbp),%rdi
lea    0xd9d(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     12d2 <spctyp+0x1a2>
mov    -0x20(%rbp),%rdi
lea    0xd8d(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x46,(%rax)
jmp    15d2 <spctyp+0x4a2>
mov    -0x10(%rbp),%rdi
lea    0xd77(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1349 <spctyp+0x219>
cmpq   $0x0,-0x18(%rbp)
je     1318 <spctyp+0x1e8>
mov    -0x18(%rbp),%rdi
lea    0xd52(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     1333 <spctyp+0x203>
mov    -0x20(%rbp),%rdi
lea    0xd46(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x46,(%rax)
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
jmp    15cd <spctyp+0x49d>
mov    -0x10(%rbp),%rdi
lea    0xd26(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13aa <spctyp+0x27a>
cmpq   $0x0,-0x18(%rbp)
je     1383 <spctyp+0x253>
mov    -0x18(%rbp),%rdi
lea    0xd01(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     139e <spctyp+0x26e>
mov    -0x20(%rbp),%rdi
lea    0xcf8(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x57,(%rax)
jmp    15c8 <spctyp+0x498>
mov    -0x10(%rbp),%rdi
lea    0xce0(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1415 <spctyp+0x2e5>
cmpq   $0x0,-0x18(%rbp)
je     13e4 <spctyp+0x2b4>
mov    -0x18(%rbp),%rdi
lea    0xcbb(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     13ff <spctyp+0x2cf>
mov    -0x20(%rbp),%rdi
lea    0xc7a(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x57,(%rax)
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
jmp    15c3 <spctyp+0x493>
mov    -0x10(%rbp),%rdi
lea    0xc8b(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1480 <spctyp+0x350>
cmpq   $0x0,-0x18(%rbp)
je     144f <spctyp+0x31f>
mov    -0x18(%rbp),%rdi
lea    0xc66(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     146a <spctyp+0x33a>
mov    -0x20(%rbp),%rdi
lea    0xca1(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x57,(%rax)
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
jmp    15be <spctyp+0x48e>
mov    -0x10(%rbp),%rdi
lea    0xc2e(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    14e1 <spctyp+0x3b1>
cmpq   $0x0,-0x18(%rbp)
je     14ba <spctyp+0x38a>
mov    -0x18(%rbp),%rdi
lea    0xc09(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     14d5 <spctyp+0x3a5>
mov    -0x20(%rbp),%rdi
lea    0xbc1(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x41,(%rax)
jmp    15b9 <spctyp+0x489>
mov    -0x10(%rbp),%rdi
lea    0xbe1(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1542 <spctyp+0x412>
cmpq   $0x0,-0x18(%rbp)
je     151b <spctyp+0x3eb>
mov    -0x18(%rbp),%rdi
lea    0xbbc(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     1536 <spctyp+0x406>
mov    -0x20(%rbp),%rdi
lea    0xb43(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x56,(%rax)
jmp    15b4 <spctyp+0x484>
mov    -0x10(%rbp),%rdi
lea    0xb9b(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    15a3 <spctyp+0x473>
cmpq   $0x0,-0x18(%rbp)
je     157c <spctyp+0x44c>
mov    -0x18(%rbp),%rdi
lea    0xb76(%rip),%rsi
call   1040 <strcpy@plt>
cmpq   $0x0,-0x20(%rbp)
je     1597 <spctyp+0x467>
mov    -0x20(%rbp),%rdi
lea    0xb74(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
movb   $0x56,(%rax)
jmp    15af <spctyp+0x47f>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
jmp    15b4 <spctyp+0x484>
jmp    15b9 <spctyp+0x489>
jmp    15be <spctyp+0x48e>
jmp    15c3 <spctyp+0x493>
jmp    15c8 <spctyp+0x498>
jmp    15cd <spctyp+0x49d>
jmp    15d2 <spctyp+0x4a2>
jmp    15d7 <spctyp+0x4a7>
jmp    15dc <spctyp+0x4ac>
jmp    15e1 <spctyp+0x4b1>
mov    -0x10(%rbp),%rax
mov    0x5(%rax),%al
mov    -0x30(%rbp),%rcx
mov    %al,(%rcx)
movsbl %al,%eax
cmp    $0x20,%eax
jne    163a <spctyp+0x50a>
mov    -0x10(%rbp),%rdi
add    $0x4,%rdi
lea    0xaf9(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     1629 <spctyp+0x4f9>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
mov    -0x28(%rbp),%rax
mov    (%rax),%cl
mov    -0x30(%rbp),%rax
mov    %cl,(%rax)
jmp    1762 <spctyp+0x632>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%eax
cmp    $0x2d,%eax
je     1657 <spctyp+0x527>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x47,%eax
jne    16d4 <spctyp+0x5a4>
mov    -0x10(%rbp),%rax
movsbl 0x6(%rax),%eax
cmp    $0x52,%eax
je     1684 <spctyp+0x554>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%eax
cmp    $0x49,%eax
jne    16a1 <spctyp+0x571>
mov    -0x30(%rbp),%rax
movb   $0x77,(%rax)
jmp    16cf <spctyp+0x59f>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%eax
cmp    $0x41,%eax
jne    16be <spctyp+0x58e>
mov    -0x30(%rbp),%rax
movb   $0x61,(%rax)
jmp    16ca <spctyp+0x59a>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
jmp    16cf <spctyp+0x59f>
jmp    1758 <spctyp+0x628>
mov    -0x10(%rbp),%rax
movsbl 0x6(%rax),%eax
cmp    $0x32,%eax
je     16f1 <spctyp+0x5c1>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%eax
mov    -0x28(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     1725 <spctyp+0x5f5>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%eax
cmp    $0x3f,%eax
je     1725 <spctyp+0x5f5>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
mov    -0x10(%rbp),%rax
movsbl 0x7(%rax),%eax
mov    -0x10(%rbp),%rcx
movsbl 0x5(%rcx),%ecx
cmp    %ecx,%eax
jne    1749 <spctyp+0x619>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
jmp    174e <spctyp+0x61e>
jmp    1753 <spctyp+0x623>
jmp    1758 <spctyp+0x628>
jmp    175d <spctyp+0x62d>
jmp    1762 <spctyp+0x632>
mov    -0x30(%rbp),%rax
lea    0x99a(%rip),%rdi
movsbl (%rax),%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     179f <spctyp+0x66f>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x56,%eax
jne    179a <spctyp+0x66a>
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
add    $0x2,%ecx
mov    %ecx,(%rax)
jmp    17ed <spctyp+0x6bd>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x56,%eax
jne    17dc <spctyp+0x6ac>
mov    -0x28(%rbp),%rax
lea    0x94d(%rip),%rdi
movsbl (%rax),%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     17d7 <spctyp+0x6a7>
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
add    $0x2,%ecx
mov    %ecx,(%rax)
jmp    17e8 <spctyp+0x6b8>
movl   $0x2,-0x4(%rbp)
jmp    17f4 <spctyp+0x6c4>
jmp    17ed <spctyp+0x6bd>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spctyp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbp
mov    %rdi,%rbx
movl   $0x0,(%r9)
lea    0xea5(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12c1 <spctyp+0x191>
lea    0xe9f(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     12e3 <spctyp+0x1b3>
lea    0xea1(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1305 <spctyp+0x1d5>
lea    0xe9b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1327 <spctyp+0x1f7>
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1427 <spctyp+0x2f7>
lea    0xe91(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1459 <spctyp+0x329>
lea    0xe8f(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     148b <spctyp+0x35b>
lea    0xe88(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     14b4 <spctyp+0x384>
lea    0xe79(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     14ed <spctyp+0x3bd>
lea    0xe70(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     151f <spctyp+0x3ef>
lea    0xe6e(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
mov    %rax,%rcx
mov    $0x2,%eax
test   %rcx,%rcx
jne    1418 <spctyp+0x2e8>
test   %rbp,%rbp
je     12ac <spctyp+0x17c>
lea    0xe49(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     1547 <spctyp+0x417>
lea    0xe4a(%rip),%rsi
jmp    153f <spctyp+0x40f>
test   %rbp,%rbp
je     12d5 <spctyp+0x1a5>
lea    0xd38(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     134f <spctyp+0x21f>
lea    0xd2e(%rip),%rsi
jmp    1347 <spctyp+0x217>
test   %rbp,%rbp
je     12f7 <spctyp+0x1c7>
lea    0xd2a(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     134f <spctyp+0x21f>
lea    0xd28(%rip),%rsi
jmp    1347 <spctyp+0x217>
test   %rbp,%rbp
je     1319 <spctyp+0x1e9>
lea    0xd27(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     134f <spctyp+0x21f>
lea    0xd21(%rip),%rsi
jmp    1347 <spctyp+0x217>
test   %rbp,%rbp
je     133b <spctyp+0x20b>
lea    0xd1c(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     134f <spctyp+0x21f>
lea    0xd13(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcpy@plt>
movb   $0x46,(%r12)
mov    0x5(%rbx),%cl
mov    %cl,(%r15)
lea    0x4(%rbx),%rdi
cmp    $0x20,%cl
jne    13ab <spctyp+0x27b>
lea    0xd98(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
mov    %rax,%rcx
mov    $0x2,%eax
test   %rcx,%rcx
jne    1418 <spctyp+0x2e8>
mov    (%r12),%cl
mov    %cl,(%r15)
movsbl %cl,%esi
lea    0xd71(%rip),%rdi
call   1050 <strchr@plt>
test   %rax,%rax
je     13f1 <spctyp+0x2c1>
xor    %eax,%eax
cmpb   $0x56,(%r12)
je     1412 <spctyp+0x2e2>
jmp    1418 <spctyp+0x2e8>
mov    $0x2,%eax
cmpb   $0x2d,(%rdi)
jne    1418 <spctyp+0x2e8>
mov    0x6(%rbx),%dl
cmp    $0x47,%cl
jne    13d7 <spctyp+0x2a7>
cmp    $0x52,%dl
jne    1418 <spctyp+0x2e8>
mov    0x7(%rbx),%cl
cmp    $0x49,%cl
je     14ad <spctyp+0x37d>
cmp    $0x41,%cl
jne    1418 <spctyp+0x2e8>
mov    $0x61,%cl
jmp    1389 <spctyp+0x259>
cmp    $0x32,%dl
jne    1418 <spctyp+0x2e8>
mov    0x7(%rbx),%dl
cmp    $0x3f,%dl
je     13ea <spctyp+0x2ba>
cmp    (%r12),%dl
jne    1418 <spctyp+0x2e8>
cmp    0x5(%rbx),%dl
jne    138c <spctyp+0x25c>
jmp    1418 <spctyp+0x2e8>
mov    $0x2,%eax
cmpb   $0x56,(%r15)
jne    1418 <spctyp+0x2e8>
movsbl (%r12),%esi
lea    0xcff(%rip),%rdi
call   1050 <strchr@plt>
test   %rax,%rax
je     1416 <spctyp+0x2e6>
addl   $0x2,(%r14)
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %rbp,%rbp
je     143b <spctyp+0x30b>
lea    0xc32(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     144f <spctyp+0x31f>
lea    0xc2d(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcpy@plt>
movb   $0x46,(%r12)
jmp    14e1 <spctyp+0x3b1>
test   %rbp,%rbp
je     146d <spctyp+0x33d>
lea    0xc1a(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     1481 <spctyp+0x351>
lea    0xc18(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcpy@plt>
movb   $0x57,(%r12)
jmp    1354 <spctyp+0x224>
test   %rbp,%rbp
je     149f <spctyp+0x36f>
lea    0xc03(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     14dc <spctyp+0x3ac>
lea    0xbc9(%rip),%rsi
jmp    14d4 <spctyp+0x3a4>
mov    $0x77,%cl
jmp    1389 <spctyp+0x259>
test   %rbp,%rbp
je     14c8 <spctyp+0x398>
lea    0xbf0(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     14dc <spctyp+0x3ac>
lea    0xc32(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcpy@plt>
movb   $0x57,(%r12)
movl   $0x1,(%r14)
jmp    1354 <spctyp+0x224>
test   %rbp,%rbp
je     1501 <spctyp+0x3d1>
lea    0xbc5(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     1515 <spctyp+0x3e5>
lea    0xb84(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcpy@plt>
movb   $0x41,(%r12)
jmp    1354 <spctyp+0x224>
test   %rbp,%rbp
je     1533 <spctyp+0x403>
lea    0xba7(%rip),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
test   %r13,%r13
je     1547 <spctyp+0x417>
lea    0xb35(%rip),%rsi
mov    %r13,%rdi
call   1040 <strcpy@plt>
movb   $0x56,(%r12)
jmp    1354 <spctyp+0x224>

LLVM IR (-O0):
@.str = [5 x i8] c"FREQ\00"
@.str.1 = [10 x i8] c"Frequency\00"
@.str.2 = [5 x i8] c"(Hz)\00"
@.str.3 = [5 x i8] c"AFRQ\00"
@.str.4 = [18 x i8] c"Angular frequency\00"
@.str.5 = [8 x i8] c"(deg/s)\00"
@.str.6 = [5 x i8] c"ENER\00"
@.str.7 = [14 x i8] c"Photon energy\00"
@.str.8 = [4 x i8] c"(J)\00"
@.str.9 = [5 x i8] c"WAVN\00"
@.str.10 = [11 x i8] c"Wavenumber\00"
@.str.11 = [6 x i8] c"(1/m)\00"
@.str.12 = [5 x i8] c"VRAD\00"
@.str.13 = [15 x i8] c"Radio velocity\00"
@.str.14 = [6 x i8] c"(m/s)\00"
@.str.15 = [5 x i8] c"WAVE\00"
@.str.16 = [18 x i8] c"Vacuum wavelength\00"
@.str.17 = [4 x i8] c"(m)\00"
@.str.18 = [5 x i8] c"VOPT\00"
@.str.19 = [17 x i8] c"Optical velocity\00"
@.str.20 = [5 x i8] c"ZOPT\00"
@.str.21 = [9 x i8] c"Redshift\00"
@.str.22 = [1 x i8] zeroinitializer
@.str.23 = [5 x i8] c"AWAV\00"
@.str.24 = [15 x i8] c"Air wavelength\00"
@.str.25 = [5 x i8] c"VELO\00"
@.str.26 = [22 x i8] c"Relativistic velocity\00"
@.str.27 = [5 x i8] c"BETA\00"
@.str.28 = [21 x i8] c"Velocity ratio (v/c)\00"
@.str.29 = [5 x i8] c" \00"
@.str.30 = [6 x i8] c"FWAwa\00"
define i32 @spctyp(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i32* %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32*
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i32* %5, i32** %13
%14 = load i32*, i32** %13
store i32 0, i32* %14
%15 = load i8*, i8** %8
%16 = call i64 @strncmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %32
18: ; preds = %6
%19 = load i8*, i8** %9
%20 = icmp ne i8* %19, null
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i8*, i8** %9
%23 = call i32 @strcpy(i8* %22, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %24
24: ; preds = %21, %18
%25 = load i8*, i8** %10
%26 = icmp ne i8* %25, null
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i8*, i8** %10
%29 = call i32 @strcpy(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %30
30: ; preds = %27, %24
%31 = load i8*, i8** %11
store i8 70, i8* %31
br label %226
32: ; preds = %6
%33 = load i8*, i8** %8
%34 = call i64 @strncmp(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %50
36: ; preds = %32
%37 = load i8*, i8** %9
%38 = icmp ne i8* %37, null
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i8*, i8** %9
%41 = call i32 @strcpy(i8* %40, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %39, %36
%43 = load i8*, i8** %10
%44 = icmp ne i8* %43, null
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i8*, i8** %10
%47 = call i32 @strcpy(i8* %46, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %48
48: ; preds = %45, %42
%49 = load i8*, i8** %11
store i8 70, i8* %49
br label %225
50: ; preds = %32
%51 = load i8*, i8** %8
%52 = call i64 @strncmp(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %68
54: ; preds = %50
%55 = load i8*, i8** %9
%56 = icmp ne i8* %55, null
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = load i8*, i8** %9
%59 = call i32 @strcpy(i8* %58, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %60
60: ; preds = %57, %54
%61 = load i8*, i8** %10
%62 = icmp ne i8* %61, null
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = load i8*, i8** %10
%65 = call i32 @strcpy(i8* %64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %66
66: ; preds = %63, %60
%67 = load i8*, i8** %11
store i8 70, i8* %67
br label %224
68: ; preds = %50
%69 = load i8*, i8** %8
%70 = call i64 @strncmp(i8* %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %86
72: ; preds = %68
%73 = load i8*, i8** %9
%74 = icmp ne i8* %73, null
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = load i8*, i8** %9
%77 = call i32 @strcpy(i8* %76, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
br label %78
78: ; preds = %75, %72
%79 = load i8*, i8** %10
%80 = icmp ne i8* %79, null
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load i8*, i8** %10
%83 = call i32 @strcpy(i8* %82, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %84
84: ; preds = %81, %78
%85 = load i8*, i8** %11
store i8 70, i8* %85
br label %223
86: ; preds = %68
%87 = load i8*, i8** %8
%88 = call i64 @strncmp(i8* %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 4)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %105
90: ; preds = %86
%91 = load i8*, i8** %9
%92 = icmp ne i8* %91, null
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load i8*, i8** %9
%95 = call i32 @strcpy(i8* %94, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
br label %96
96: ; preds = %93, %90
%97 = load i8*, i8** %10
%98 = icmp ne i8* %97, null
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load i8*, i8** %10
%101 = call i32 @strcpy(i8* %100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %102
102: ; preds = %99, %96
%103 = load i8*, i8** %11
store i8 70, i8* %103
%104 = load i32*, i32** %13
store i32 1, i32* %104
br label %222
105: ; preds = %86
%106 = load i8*, i8** %8
%107 = call i64 @strncmp(i8* %106, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 4)
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %123
109: ; preds = %105
%110 = load i8*, i8** %9
%111 = icmp ne i8* %110, null
br i1 %111, label %112, label %115
112: ; preds = %109
%113 = load i8*, i8** %9
%114 = call i32 @strcpy(i8* %113, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
br label %115
115: ; preds = %112, %109
%116 = load i8*, i8** %10
%117 = icmp ne i8* %116, null
br i1 %117, label %118, label %121
118: ; preds = %115
%119 = load i8*, i8** %10
%120 = call i32 @strcpy(i8* %119, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
br label %121
121: ; preds = %118, %115
%122 = load i8*, i8** %11
store i8 87, i8* %122
br label %221
123: ; preds = %105
%124 = load i8*, i8** %8
%125 = call i64 @strncmp(i8* %124, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 4)
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %142
127: ; preds = %123
%128 = load i8*, i8** %9
%129 = icmp ne i8* %128, null
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = load i8*, i8** %9
%132 = call i32 @strcpy(i8* %131, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0))
br label %133
133: ; preds = %130, %127
%134 = load i8*, i8** %10
%135 = icmp ne i8* %134, null
br i1 %135, label %136, label %139
136: ; preds = %133
%137 = load i8*, i8** %10
%138 = call i32 @strcpy(i8* %137, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %139
139: ; preds = %136, %133
%140 = load i8*, i8** %11
store i8 87, i8* %140
%141 = load i32*, i32** %13
store i32 1, i32* %141
br label %220
142: ; preds = %123
%143 = load i8*, i8** %8
%144 = call i64 @strncmp(i8* %143, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %161
146: ; preds = %142
%147 = load i8*, i8** %9
%148 = icmp ne i8* %147, null
br i1 %148, label %149, label %152
149: ; preds = %146
%150 = load i8*, i8** %9
%151 = call i32 @strcpy(i8* %150, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %152
152: ; preds = %149, %146
%153 = load i8*, i8** %10
%154 = icmp ne i8* %153, null
br i1 %154, label %155, label %158
155: ; preds = %152
%156 = load i8*, i8** %10
%157 = call i32 @strcpy(i8* %156, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.22, i64 0, i64 0))
br label %158
158: ; preds = %155, %152
%159 = load i8*, i8** %11
store i8 87, i8* %159
%160 = load i32*, i32** %13
store i32 1, i32* %160
br label %219
161: ; preds = %142
%162 = load i8*, i8** %8
%163 = call i64 @strncmp(i8* %162, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i32 4)
%164 = icmp eq i64 %163, 0
br i1 %164, label %165, label %179
165: ; preds = %161
%166 = load i8*, i8** %9
%167 = icmp ne i8* %166, null
br i1 %167, label %168, label %171
168: ; preds = %165
%169 = load i8*, i8** %9
%170 = call i32 @strcpy(i8* %169, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
br label %171
171: ; preds = %168, %165
%172 = load i8*, i8** %10
%173 = icmp ne i8* %172, null
br i1 %173, label %174, label %177
174: ; preds = %171
%175 = load i8*, i8** %10
%176 = call i32 @strcpy(i8* %175, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
br label %177
177: ; preds = %174, %171
%178 = load i8*, i8** %11
store i8 65, i8* %178
br label %218
179: ; preds = %161
%180 = load i8*, i8** %8
%181 = call i64 @strncmp(i8* %180, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i32 4)
%182 = icmp eq i64 %181, 0
br i1 %182, label %183, label %197
183: ; preds = %179
%184 = load i8*, i8** %9
%185 = icmp ne i8* %184, null
br i1 %185, label %186, label %189
186: ; preds = %183
%187 = load i8*, i8** %9
%188 = call i32 @strcpy(i8* %187, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.26, i64 0, i64 0))
br label %189
189: ; preds = %186, %183
%190 = load i8*, i8** %10
%191 = icmp ne i8* %190, null
br i1 %191, label %192, label %195
192: ; preds = %189
%193 = load i8*, i8** %10
%194 = call i32 @strcpy(i8* %193, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %195
195: ; preds = %192, %189
%196 = load i8*, i8** %11
store i8 86, i8* %196
br label %217
197: ; preds = %179
%198 = load i8*, i8** %8
%199 = call i64 @strncmp(i8* %198, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 4)
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %215
201: ; preds = %197
%202 = load i8*, i8** %9
%203 = icmp ne i8* %202, null
br i1 %203, label %204, label %207
204: ; preds = %201
%205 = load i8*, i8** %9
%206 = call i32 @strcpy(i8* %205, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.28, i64 0, i64 0))
br label %207
207: ; preds = %204, %201
%208 = load i8*, i8** %10
%209 = icmp ne i8* %208, null
br i1 %209, label %210, label %213
210: ; preds = %207
%211 = load i8*, i8** %10
%212 = call i32 @strcpy(i8* %211, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.22, i64 0, i64 0))
br label %213
213: ; preds = %210, %207
%214 = load i8*, i8** %11
store i8 86, i8* %214
br label %216
215: ; preds = %197
store i32 2, i32* %7
br label %353
216: ; preds = %213
br label %217
217: ; preds = %216, %195
br label %218
218: ; preds = %217, %177
br label %219
219: ; preds = %218, %158
br label %220
220: ; preds = %219, %139
br label %221
221: ; preds = %220, %121
br label %222
222: ; preds = %221, %102
br label %223
223: ; preds = %222, %84
br label %224
224: ; preds = %223, %66
br label %225
225: ; preds = %224, %48
br label %226
226: ; preds = %225, %30
%227 = load i8*, i8** %8
%228 = getelementptr inbounds i8, i8* %227, i64 5
%229 = load i8, i8* %228
%230 = load i8*, i8** %12
store i8 %229, i8* %230
%231 = sext i8 %229 to i32
%232 = icmp eq i32 %231, 32
br i1 %232, label %233, label %243
233: ; preds = %226
%234 = load i8*, i8** %8
%235 = getelementptr inbounds i8, i8* %234, i64 4
%236 = call i64 @strncmp(i8* %235, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0), i32 4)
%237 = icmp ne i64 %236, 0
br i1 %237, label %238, label %239
238: ; preds = %233
store i32 2, i32* %7
br label %353
239: ; preds = %233
%240 = load i8*, i8** %11
%241 = load i8, i8* %240
%242 = load i8*, i8** %12
store i8 %241, i8* %242
br label %320
243: ; preds = %226
%244 = load i8*, i8** %8
%245 = getelementptr inbounds i8, i8* %244, i64 4
%246 = load i8, i8* %245
%247 = sext i8 %246 to i32
%248 = icmp ne i32 %247, 45
br i1 %248, label %249, label %250
249: ; preds = %243
store i32 2, i32* %7
br label %353
250: ; preds = %243
%251 = load i8*, i8** %12
%252 = load i8, i8* %251
%253 = sext i8 %252 to i32
%254 = icmp eq i32 %253, 71
br i1 %254, label %255, label %281
255: ; preds = %250
%256 = load i8*, i8** %8
%257 = getelementptr inbounds i8, i8* %256, i64 6
%258 = load i8, i8* %257
%259 = sext i8 %258 to i32
%260 = icmp ne i32 %259, 82
br i1 %260, label %261, label %262
261: ; preds = %255
store i32 2, i32* %7
br label %353
262: ; preds = %255
%263 = load i8*, i8** %8
%264 = getelementptr inbounds i8, i8* %263, i64 7
%265 = load i8, i8* %264
%266 = sext i8 %265 to i32
%267 = icmp eq i32 %266, 73
br i1 %267, label %268, label %270
268: ; preds = %262
%269 = load i8*, i8** %12
store i8 119, i8* %269
br label %280
270: ; preds = %262
%271 = load i8*, i8** %8
%272 = getelementptr inbounds i8, i8* %271, i64 7
%273 = load i8, i8* %272
%274 = sext i8 %273 to i32
%275 = icmp eq i32 %274, 65
br i1 %275, label %276, label %278
276: ; preds = %270
%277 = load i8*, i8** %12
store i8 97, i8* %277
br label %279
278: ; preds = %270
store i32 2, i32* %7
br label %353
279: ; preds = %276
br label %280
280: ; preds = %279, %268
br label %318
281: ; preds = %250
%282 = load i8*, i8** %8
%283 = getelementptr inbounds i8, i8* %282, i64 6
%284 = load i8, i8* %283
%285 = sext i8 %284 to i32
%286 = icmp ne i32 %285, 50
br i1 %286, label %287, label %288
287: ; preds = %281
store i32 2, i32* %7
br label %353
288: ; preds = %281
%289 = load i8*, i8** %8
%290 = getelementptr inbounds i8, i8* %289, i64 7
%291 = load i8, i8* %290
%292 = sext i8 %291 to i32
%293 = load i8*, i8** %11
%294 = load i8, i8* %293
%295 = sext i8 %294 to i32
%296 = icmp ne i32 %292, %295
br i1 %296, label %297, label %304
297: ; preds = %288
%298 = load i8*, i8** %8
%299 = getelementptr inbounds i8, i8* %298, i64 7
%300 = load i8, i8* %299
%301 = sext i8 %300 to i32
%302 = icmp ne i32 %301, 63
br i1 %302, label %303, label %304
303: ; preds = %297
store i32 2, i32* %7
br label %353
304: ; preds = %297, %288
%305 = load i8*, i8** %8
%306 = getelementptr inbounds i8, i8* %305, i64 7
%307 = load i8, i8* %306
%308 = sext i8 %307 to i32
%309 = load i8*, i8** %8
%310 = getelementptr inbounds i8, i8* %309, i64 5
%311 = load i8, i8* %310
%312 = sext i8 %311 to i32
%313 = icmp eq i32 %308, %312
br i1 %313, label %314, label %315
314: ; preds = %304
store i32 2, i32* %7
br label %353
315: ; preds = %304
br label %316
316: ; preds = %315
br label %317
317: ; preds = %316
br label %318
318: ; preds = %317, %280
br label %319
319: ; preds = %318
br label %320
320: ; preds = %319, %239
%321 = load i8*, i8** %12
%322 = load i8, i8* %321
%323 = call i64 @strchr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i8 signext %322)
%324 = icmp ne i64 %323, 0
br i1 %324, label %325, label %335
325: ; preds = %320
%326 = load i8*, i8** %11
%327 = load i8, i8* %326
%328 = sext i8 %327 to i32
%329 = icmp eq i32 %328, 86
br i1 %329, label %330, label %334
330: ; preds = %325
%331 = load i32*, i32** %13
%332 = load i32, i32* %331
%333 = add nsw i32 %332, 2
store i32 %333, i32* %331
br label %334
334: ; preds = %330, %325
br label %352
335: ; preds = %320
%336 = load i8*, i8** %12
%337 = load i8, i8* %336
%338 = sext i8 %337 to i32
%339 = icmp eq i32 %338, 86
br i1 %339, label %340, label %350
340: ; preds = %335
%341 = load i8*, i8** %11
%342 = load i8, i8* %341
%343 = call i64 @strchr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i8 signext %342)
%344 = icmp ne i64 %343, 0
br i1 %344, label %345, label %349
345: ; preds = %340
%346 = load i32*, i32** %13
%347 = load i32, i32* %346
%348 = add nsw i32 %347, 2
store i32 %348, i32* %346
br label %349
349: ; preds = %345, %340
br label %351
350: ; preds = %335
store i32 2, i32* %7
br label %353
351: ; preds = %349
br label %352
352: ; preds = %351, %334
store i32 0, i32* %7
br label %353
353: ; preds = %352, %350, %314, %303, %287, %278, %261, %249, %238, %215
%354 = load i32, i32* %7
ret i32 %354
}

LLVM IR (-O2):
@.str = [5 x i8] c"FREQ\00"
@.str.1 = [10 x i8] c"Frequency\00"
@.str.2 = [5 x i8] c"(Hz)\00"
@.str.3 = [5 x i8] c"AFRQ\00"
@.str.4 = [18 x i8] c"Angular frequency\00"
@.str.5 = [8 x i8] c"(deg/s)\00"
@.str.6 = [5 x i8] c"ENER\00"
@.str.7 = [14 x i8] c"Photon energy\00"
@.str.8 = [4 x i8] c"(J)\00"
@.str.9 = [5 x i8] c"WAVN\00"
@.str.10 = [11 x i8] c"Wavenumber\00"
@.str.11 = [6 x i8] c"(1/m)\00"
@.str.12 = [5 x i8] c"VRAD\00"
@.str.13 = [15 x i8] c"Radio velocity\00"
@.str.14 = [6 x i8] c"(m/s)\00"
@.str.15 = [5 x i8] c"WAVE\00"
@.str.16 = [18 x i8] c"Vacuum wavelength\00"
@.str.17 = [4 x i8] c"(m)\00"
@.str.18 = [5 x i8] c"VOPT\00"
@.str.19 = [17 x i8] c"Optical velocity\00"
@.str.20 = [5 x i8] c"ZOPT\00"
@.str.21 = [9 x i8] c"Redshift\00"
@.str.22 = [1 x i8] zeroinitializer
@.str.23 = [5 x i8] c"AWAV\00"
@.str.24 = [15 x i8] c"Air wavelength\00"
@.str.25 = [5 x i8] c"VELO\00"
@.str.26 = [22 x i8] c"Relativistic velocity\00"
@.str.27 = [5 x i8] c"BETA\00"
@.str.28 = [21 x i8] c"Velocity ratio (v/c)\00"
@.str.29 = [5 x i8] c" \00"
@.str.30 = [6 x i8] c"FWAwa\00"
define i32 @spctyp(i8* %0, i8* %1, i8* %2, i8* nocapture %3, i8* nocapture %4, i32* nocapture %5) {
store i32 0, i32* %5
%7 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = icmp eq i8* %1, null
br i1 %10, label %13, label %11
11: ; preds = %9
%12 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %9
%14 = icmp eq i8* %2, null
br i1 %14, label %17, label %15
15: ; preds = %13
%16 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %15, %13
store i8 70, i8* %3
br label %138
18: ; preds = %6
%19 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 4)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = icmp eq i8* %1, null
br i1 %22, label %25, label %23
23: ; preds = %21
%24 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %25
25: ; preds = %23, %21
%26 = icmp eq i8* %2, null
br i1 %26, label %29, label %27
27: ; preds = %25
%28 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %29
29: ; preds = %27, %25
store i8 70, i8* %3
br label %138
30: ; preds = %18
%31 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %30
%34 = icmp eq i8* %1, null
br i1 %34, label %37, label %35
35: ; preds = %33
%36 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %37
37: ; preds = %35, %33
%38 = icmp eq i8* %2, null
br i1 %38, label %41, label %39
39: ; preds = %37
%40 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %41
41: ; preds = %39, %37
store i8 70, i8* %3
br label %138
42: ; preds = %30
%43 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %54
45: ; preds = %42
%46 = icmp eq i8* %1, null
br i1 %46, label %49, label %47
47: ; preds = %45
%48 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
br label %49
49: ; preds = %47, %45
%50 = icmp eq i8* %2, null
br i1 %50, label %53, label %51
51: ; preds = %49
%52 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %53
53: ; preds = %51, %49
store i8 70, i8* %3
br label %138
54: ; preds = %42
%55 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 4)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %66
57: ; preds = %54
%58 = icmp eq i8* %1, null
br i1 %58, label %61, label %59
59: ; preds = %57
%60 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
br label %61
61: ; preds = %59, %57
%62 = icmp eq i8* %2, null
br i1 %62, label %65, label %63
63: ; preds = %61
%64 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %65
65: ; preds = %63, %61
store i8 70, i8* %3
store i32 1, i32* %5
br label %138
66: ; preds = %54
%67 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i32 4)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %78
69: ; preds = %66
%70 = icmp eq i8* %1, null
br i1 %70, label %73, label %71
71: ; preds = %69
%72 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
br label %73
73: ; preds = %71, %69
%74 = icmp eq i8* %2, null
br i1 %74, label %77, label %75
75: ; preds = %73
%76 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
br label %77
77: ; preds = %75, %73
store i8 87, i8* %3
br label %138
78: ; preds = %66
%79 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 4)
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %90
81: ; preds = %78
%82 = icmp eq i8* %1, null
br i1 %82, label %85, label %83
83: ; preds = %81
%84 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0))
br label %85
85: ; preds = %83, %81
%86 = icmp eq i8* %2, null
br i1 %86, label %89, label %87
87: ; preds = %85
%88 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %89
89: ; preds = %87, %85
store i8 87, i8* %3
store i32 1, i32* %5
br label %138
90: ; preds = %78
%91 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 4)
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %102
93: ; preds = %90
%94 = icmp eq i8* %1, null
br i1 %94, label %97, label %95
95: ; preds = %93
%96 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %97
97: ; preds = %95, %93
%98 = icmp eq i8* %2, null
br i1 %98, label %101, label %99
99: ; preds = %97
%100 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.22, i64 0, i64 0))
br label %101
101: ; preds = %99, %97
store i8 87, i8* %3
store i32 1, i32* %5
br label %138
102: ; preds = %90
%103 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i32 4)
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %114
105: ; preds = %102
%106 = icmp eq i8* %1, null
br i1 %106, label %109, label %107
107: ; preds = %105
%108 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
br label %109
109: ; preds = %107, %105
%110 = icmp eq i8* %2, null
br i1 %110, label %113, label %111
111: ; preds = %109
%112 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
br label %113
113: ; preds = %111, %109
store i8 65, i8* %3
br label %138
114: ; preds = %102
%115 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i32 4)
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %126
117: ; preds = %114
%118 = icmp eq i8* %1, null
br i1 %118, label %121, label %119
119: ; preds = %117
%120 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.26, i64 0, i64 0))
br label %121
121: ; preds = %119, %117
%122 = icmp eq i8* %2, null
br i1 %122, label %125, label %123
123: ; preds = %121
%124 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
br label %125
125: ; preds = %123, %121
store i8 86, i8* %3
br label %138
126: ; preds = %114
%127 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 4)
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %192
129: ; preds = %126
%130 = icmp eq i8* %1, null
br i1 %130, label %133, label %131
131: ; preds = %129
%132 = tail call i32 @strcpy(i8* %1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.28, i64 0, i64 0))
br label %133
133: ; preds = %131, %129
%134 = icmp eq i8* %2, null
br i1 %134, label %137, label %135
135: ; preds = %133
%136 = tail call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.22, i64 0, i64 0))
br label %137
137: ; preds = %135, %133
store i8 86, i8* %3
br label %138
138: ; preds = %29, %53, %77, %101, %125, %137, %113, %89, %65, %41, %17
%139 = getelementptr inbounds i8, i8* %0, i64 5
%140 = load i8, i8* %139
store i8 %140, i8* %4
%141 = icmp eq i8 %140, 32
%142 = getelementptr inbounds i8, i8* %0, i64 4
br i1 %141, label %143, label %148
143: ; preds = %138
%144 = tail call i64 @strncmp(i8* %142, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0), i32 4)
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %192
146: ; preds = %143
%147 = load i8, i8* %3
br label %173
148: ; preds = %138
%149 = load i8, i8* %142
%150 = icmp eq i8 %149, 45
br i1 %150, label %151, label %192
151: ; preds = %148
%152 = icmp eq i8 %140, 71
%153 = getelementptr inbounds i8, i8* %0, i64 6
%154 = load i8, i8* %153
br i1 %152, label %155, label %161
155: ; preds = %151
%156 = icmp eq i8 %154, 82
br i1 %156, label %157, label %192
157: ; preds = %155
%158 = getelementptr inbounds i8, i8* %0, i64 7
%159 = load i8, i8* %158
switch i8 %159, label %192 [
i8 73, label %173
i8 65, label %160
]
160: ; preds = %157
br label %173
161: ; preds = %151
%162 = icmp eq i8 %154, 50
br i1 %162, label %163, label %192
163: ; preds = %161
%164 = getelementptr inbounds i8, i8* %0, i64 7
%165 = load i8, i8* %164
%166 = load i8, i8* %3
%167 = icmp eq i8 %165, %166
%168 = icmp eq i8 %165, 63
%169 = or i1 %168, %167
br i1 %169, label %170, label %192
170: ; preds = %163
%171 = load i8, i8* %139
%172 = icmp eq i8 %165, %171
br i1 %172, label %192, label %175
173: ; preds = %157, %146, %160
%174 = phi i8 [ 97, %160 ], [ %147, %146 ], [ 119, %157 ]
store i8 %174, i8* %4
br label %175
175: ; preds = %173, %170
%176 = phi i8 [ %140, %170 ], [ %174, %173 ]
%177 = tail call i64 @strchr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i8 signext %176)
%178 = icmp eq i64 %177, 0
br i1 %178, label %182, label %179
179: ; preds = %175
%180 = load i8, i8* %3
%181 = icmp eq i8 %180, 86
br i1 %181, label %189, label %192
182: ; preds = %175
%183 = load i8, i8* %4
%184 = icmp eq i8 %183, 86
br i1 %184, label %185, label %192
185: ; preds = %182
%186 = load i8, i8* %3
%187 = tail call i64 @strchr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0), i8 signext %186)
%188 = icmp eq i64 %187, 0
br i1 %188, label %192, label %189
189: ; preds = %185, %179
%190 = load i32, i32* %5
%191 = add nsw i32 %190, 2
store i32 %191, i32* %5
br label %192
192: ; preds = %189, %179, %185, %182, %170, %163, %161, %157, %155, %148, %143, %126
%193 = phi i32 [ 2, %126 ], [ 2, %143 ], [ 2, %148 ], [ 2, %155 ], [ 2, %157 ], [ 2, %161 ], [ 2, %163 ], [ 2, %170 ], [ 2, %182 ], [ 0, %185 ], [ 0, %179 ], [ 0, %189 ]
ret i32 %193
}