#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*/ ffpmsg(char const *);
scalar_t__ fftkey(char *, int *);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strchr(char *, char);
int strlen(char const *);
int /*<<< orphan*/ strncat(char *, char const *, int);
int strncmp(char *, char *, int);
char *strtok(char *, char *);
int ffmkky(const char *keyname, char *value, const char *comm, char *card,
           int *status) {
  size_t namelen, len, ii;
  char tmpname[75], tmpname2[75], *cptr;
  char *saveptr;
  int tstatus = -1, nblank = 0, ntoken = 0, maxlen = 0, specialchar = 0;
  if (*status > 0)
    return (*status);
  *tmpname = '\0';
  *tmpname2 = '\0';
  *card = '\0';
  while (*(keyname + nblank) == ' ')
    nblank++;
  strncat(tmpname, keyname + nblank, 75 - 1);
  len = strlen(value);
  namelen = strlen(tmpname);
  if (namelen) {
    cptr = tmpname + namelen - 1;
    while (*cptr == ' ') {
      *cptr = '\0';
      cptr--;
    }
    namelen = cptr - tmpname + 1;
  }
  if (strchr(tmpname, '=')) {
    ffpmsg("Illegal keyword name; contains an equals sign (=)");
    ffpmsg(tmpname);
    return (*status = 207);
  }
  if (namelen <= 8 && fftkey(tmpname, &tstatus) <= 0) {
    strcat(card, tmpname);
    for (ii = namelen; ii < 8; ii++)
      card[ii] = ' ';
    card[8] = '=';
    card[9] = ' ';
    card[10] = '\0';
    namelen = 10;
  } else if ((((tmpname)[0] < ("HIERARCH ")[0] ? -1
               : (tmpname)[0] > ("HIERARCH ")[0]
                   ? 1
                   : strncmp((tmpname), ("HIERARCH "), (9))) == 0) ||
             (((tmpname)[0] < ("hierarch ")[0] ? -1
               : (tmpname)[0] > ("hierarch ")[0]
                   ? 1
                   : strncmp((tmpname), ("hierarch "), (9))) == 0)) {
    strcat(card, tmpname);
    if (namelen + 3 + len > 80) {
      strcat(card, "= ");
      namelen += 2;
    } else {
      strcat(card, " = ");
      namelen += 3;
    }
  } else {
    strncat(tmpname2, tmpname, 75 - 1);
    cptr = strtok(tmpname2, " ");
    while (cptr) {
      if (strlen(cptr) > maxlen)
        maxlen = strlen(cptr);
      tstatus = -1;
      if (fftkey(cptr, &tstatus) > 0)
        specialchar = 1;
      cptr = strtok(NULL, " ");
      ntoken++;
    }
    tstatus = -1;
    if (ntoken > 0) {
      if (namelen + 11 > 81 - 1) {
        ffpmsg("The following keyword is too long to fit on a card:");
        ffpmsg(keyname);
        return (*status = 207);
      }
      strcat(card, "HIERARCH ");
      strcat(card, tmpname);
      namelen += 9;
      if (namelen + 3 + len > 80) {
        strcat(card, "= ");
        namelen += 2;
      } else {
        strcat(card, " = ");
        namelen += 3;
      }
    } else if ((fftkey(tmpname, &tstatus) <= 0)) {
      strncat(card, tmpname, 75 - 1);
      strcat(card, "= ");
      namelen += 2;
    } else {
      ffpmsg("Illegal keyword name:");
      ffpmsg(tmpname);
      return (*status = 207);
    }
  }
  if (len > 0) {
    if (value[0] == '\'') {
      if (namelen > 77) {
        ffpmsg("The following keyword + value is too long to fit on a card:");
        ffpmsg(keyname);
        ffpmsg(value);
        return (*status = 207);
      }
      strncat(card, value, 80 - namelen);
      len = ((80) < (namelen + len) ? (80) : (namelen + len));
      if (len == 80) {
        card[79] = '\'';
      }
      if (comm) {
        if (comm[0] != 0) {
          if (len < 30) {
            for (ii = len; ii < 30; ii++)
              card[ii] = ' ';
            card[30] = '\0';
            len = 30;
          }
        }
      }
    } else {
      if (namelen + len > 80) {
        ffpmsg("The following keyword + value is too long to fit on a card:");
        ffpmsg(keyname);
        ffpmsg(value);
        return (*status = 207);
      } else if (namelen + len < 30) {
        strncat(card, "                    ", 30 - (namelen + len));
      }
      strncat(card, value, 80 - namelen);
      len = ((80) < (namelen + len) ? (80) : (namelen + len));
      len = ((30) > (len) ? (30) : (len));
    }
    if (comm) {
      if ((len < 77) && (strlen(comm) > 0)) {
        strcat(card, " / ");
        strncat(card, comm, 77 - len);
      }
    }
  } else {
    if (namelen == 10) {
      card[8] = ' ';
      if (comm) {
        strncat(card, comm, 80 - namelen);
      }
    }
  }
  if (ntoken == 1 || specialchar == 1) {
    ffpmsg("Warning: the following keyword does not conform to the HIERARCH "
           "convention");
    ffpmsg(card);
  }
  return (*status);
}


x86 assembly (clang, -O0):
<ffmkky>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movl   $0xffffffff,-0x104(%rbp)
ff ff ff
movl   $0x0,-0x108(%rbp)
movl   $0x0,-0x10c(%rbp)
movl   $0x0,-0x110(%rbp)
movl   $0x0,-0x114(%rbp)
mov    -0x30(%rbp),%rax
cmpl   $0x0,(%rax)
jle    11ec <ffmkky+0x6c>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1a6c <ffmkky+0x8ec>
movb   $0x0,-0xa0(%rbp)
movb   $0x0,-0xf0(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movslq -0x108(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jne    122d <ffmkky+0xad>
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    1201 <ffmkky+0x81>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x108(%rbp),%rax
add    %rax,%rsi
mov    $0x4a,%edx
call   1070 <strncat@plt>
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
cltq
mov    %rax,-0x40(%rbp)
lea    -0xa0(%rbp),%rdi
call   1040 <strlen@plt>
cltq
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     12db <ffmkky+0x15b>
lea    -0xa0(%rbp),%rax
add    -0x38(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0xf8(%rbp)
mov    -0xf8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    12c2 <ffmkky+0x142>
mov    -0xf8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0xf8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0xf8(%rbp)
jmp    128e <ffmkky+0x10e>
mov    -0xf8(%rbp),%rax
lea    -0xa0(%rbp),%rcx
sub    %rcx,%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
lea    -0xa0(%rbp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
cmp    $0x0,%rax
je     1324 <ffmkky+0x1a4>
lea    0xd03(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    -0xa0(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    1a6c <ffmkky+0x8ec>
cmpq   $0x8,-0x38(%rbp)
ja     13b1 <ffmkky+0x231>
lea    -0xa0(%rbp),%rdi
lea    -0x104(%rbp),%rsi
call   10a0 <fftkey@plt>
cmp    $0x0,%rax
jg     13b1 <ffmkky+0x231>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x8,-0x48(%rbp)
jae    138c <ffmkky+0x20c>
mov    -0x28(%rbp),%rax
mov    -0x48(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1364 <ffmkky+0x1e4>
mov    -0x28(%rbp),%rax
movb   $0x3d,0x8(%rax)
mov    -0x28(%rbp),%rax
movb   $0x20,0x9(%rax)
mov    -0x28(%rbp),%rax
movb   $0x0,0xa(%rax)
movq   $0xa,-0x38(%rbp)
jmp    1751 <ffmkky+0x5d1>
movsbl -0xa0(%rbp),%eax
movsbl 0xc73(%rip),%ecx
cmp    %ecx,%eax
jge    13d7 <ffmkky+0x257>
mov    $0xffffffff,%eax
mov    %eax,-0x118(%rbp)
jmp    1427 <ffmkky+0x2a7>
movsbl -0xa0(%rbp),%eax
movsbl 0xc4d(%rip),%ecx
cmp    %ecx,%eax
jle    13fd <ffmkky+0x27d>
mov    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    141b <ffmkky+0x29b>
lea    -0xa0(%rbp),%rdi
lea    0xc27(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
mov    %eax,-0x11c(%rbp)
mov    -0x11c(%rbp),%eax
mov    %eax,-0x118(%rbp)
mov    -0x118(%rbp),%eax
cmp    $0x0,%eax
je     14bb <ffmkky+0x33b>
movsbl -0xa0(%rbp),%eax
movsbl 0xbf8(%rip),%ecx
cmp    %ecx,%eax
jge    145c <ffmkky+0x2dc>
mov    $0xffffffff,%eax
mov    %eax,-0x120(%rbp)
jmp    14ac <ffmkky+0x32c>
movsbl -0xa0(%rbp),%eax
movsbl 0xbd2(%rip),%ecx
cmp    %ecx,%eax
jle    1482 <ffmkky+0x302>
mov    $0x1,%eax
mov    %eax,-0x124(%rbp)
jmp    14a0 <ffmkky+0x320>
lea    -0xa0(%rbp),%rdi
lea    0xbac(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
mov    %eax,-0x124(%rbp)
mov    -0x124(%rbp),%eax
mov    %eax,-0x120(%rbp)
mov    -0x120(%rbp),%eax
cmp    $0x0,%eax
jne    1523 <ffmkky+0x3a3>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x3,%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    1502 <ffmkky+0x382>
mov    -0x28(%rbp),%rdi
lea    0xb5b(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x38(%rbp)
jmp    151e <ffmkky+0x39e>
mov    -0x28(%rbp),%rdi
lea    0xb39(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x38(%rbp)
jmp    174c <ffmkky+0x5cc>
lea    -0xf0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x4a,%edx
call   1070 <strncat@plt>
lea    -0xf0(%rbp),%rdi
lea    0xb9a(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0xf8(%rbp)
cmpq   $0x0,-0xf8(%rbp)
je     15e9 <ffmkky+0x469>
mov    -0xf8(%rbp),%rdi
call   1040 <strlen@plt>
cmp    -0x110(%rbp),%eax
jle    158d <ffmkky+0x40d>
mov    -0xf8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x110(%rbp)
movl   $0xffffffff,-0x104(%rbp)
ff ff ff
mov    -0xf8(%rbp),%rdi
lea    -0x104(%rbp),%rsi
call   10a0 <fftkey@plt>
cmp    $0x0,%rax
jle    15be <ffmkky+0x43e>
movl   $0x1,-0x114(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xb1a(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0xf8(%rbp)
mov    -0x10c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10c(%rbp)
jmp    1555 <ffmkky+0x3d5>
movl   $0xffffffff,-0x104(%rbp)
ff ff ff
cmpl   $0x0,-0x10c(%rbp)
jle    16c1 <ffmkky+0x541>
mov    -0x38(%rbp),%rax
add    $0xb,%rax
cmp    $0x50,%rax
jbe    163d <ffmkky+0x4bd>
lea    0xa31(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    1a6c <ffmkky+0x8ec>
mov    -0x28(%rbp),%rdi
lea    0x9ea(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x9,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
add    $0x3,%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    16a0 <ffmkky+0x520>
mov    -0x28(%rbp),%rdi
lea    0x9bd(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x38(%rbp)
jmp    16bc <ffmkky+0x53c>
mov    -0x28(%rbp),%rdi
lea    0x99b(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x38(%rbp)
jmp    1747 <ffmkky+0x5c7>
lea    -0xa0(%rbp),%rdi
lea    -0x104(%rbp),%rsi
call   10a0 <fftkey@plt>
cmp    $0x0,%rax
jg     1714 <ffmkky+0x594>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x4a,%edx
call   1070 <strncat@plt>
mov    -0x28(%rbp),%rdi
lea    0x949(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x38(%rbp)
jmp    1742 <ffmkky+0x5c2>
lea    0x963(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    -0xa0(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    1a6c <ffmkky+0x8ec>
jmp    1747 <ffmkky+0x5c7>
jmp    174c <ffmkky+0x5cc>
jmp    1751 <ffmkky+0x5d1>
cmpq   $0x0,-0x40(%rbp)
jbe    19f4 <ffmkky+0x874>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    188c <ffmkky+0x70c>
cmpq   $0x4d,-0x38(%rbp)
jbe    17ab <ffmkky+0x62b>
lea    0x916(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x18(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    1a6c <ffmkky+0x8ec>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x50,%eax
cmp    %rcx,%rax
jae    17ea <ffmkky+0x66a>
mov    $0x50,%eax
mov    %rax,-0x130(%rbp)
jmp    17f9 <ffmkky+0x679>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x130(%rbp)
mov    -0x130(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x50,-0x40(%rbp)
jne    1817 <ffmkky+0x697>
mov    -0x28(%rbp),%rax
movb   $0x27,0x4f(%rax)
cmpq   $0x0,-0x20(%rbp)
je     1887 <ffmkky+0x707>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1882 <ffmkky+0x702>
cmpq   $0x1e,-0x40(%rbp)
jae    187d <ffmkky+0x6fd>
mov    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x1e,-0x48(%rbp)
jae    186d <ffmkky+0x6ed>
mov    -0x28(%rbp),%rax
mov    -0x48(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1845 <ffmkky+0x6c5>
mov    -0x28(%rbp),%rax
movb   $0x0,0x1e(%rax)
movq   $0x1e,-0x40(%rbp)
jmp    1882 <ffmkky+0x702>
jmp    1887 <ffmkky+0x707>
jmp    199a <ffmkky+0x81a>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    18d2 <ffmkky+0x752>
lea    0x7ef(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x18(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    1a6c <ffmkky+0x8ec>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x1e,%rax
jae    1906 <ffmkky+0x786>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x1e,%eax
sub    %rcx,%rax
mov    %eax,%edx
lea    0x7cf(%rip),%rsi
call   1070 <strncat@plt>
jmp    190b <ffmkky+0x78b>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x50,%eax
cmp    %rcx,%rax
jae    194a <ffmkky+0x7ca>
mov    $0x50,%eax
mov    %rax,-0x138(%rbp)
jmp    1959 <ffmkky+0x7d9>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x138(%rbp)
mov    -0x138(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x1e,%eax
cmp    -0x40(%rbp),%rax
jbe    1984 <ffmkky+0x804>
mov    $0x1e,%eax
mov    %rax,-0x140(%rbp)
jmp    198f <ffmkky+0x80f>
mov    -0x40(%rbp),%rax
mov    %rax,-0x140(%rbp)
mov    -0x140(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     19ef <ffmkky+0x86f>
cmpq   $0x4d,-0x40(%rbp)
jae    19ea <ffmkky+0x86a>
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%eax
jle    19ea <ffmkky+0x86a>
mov    -0x28(%rbp),%rdi
lea    0x718(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x4d,%eax
sub    -0x40(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
jmp    19ef <ffmkky+0x86f>
jmp    1a34 <ffmkky+0x8b4>
cmpq   $0xa,-0x38(%rbp)
jne    1a2f <ffmkky+0x8af>
mov    -0x28(%rbp),%rax
movb   $0x20,0x8(%rax)
cmpq   $0x0,-0x20(%rbp)
je     1a2a <ffmkky+0x8aa>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
jmp    1a2f <ffmkky+0x8af>
jmp    1a34 <ffmkky+0x8b4>
cmpl   $0x1,-0x10c(%rbp)
je     1a4e <ffmkky+0x8ce>
cmpl   $0x1,-0x114(%rbp)
jne    1a63 <ffmkky+0x8e3>
lea    0x694(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    -0x28(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffmkky>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
movl   $0xffffffff,0x4(%rsp)
ff
mov    (%r8),%eax
test   %eax,%eax
jg     170c <ffmkky+0x57c>
mov    %rdx,%r15
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    %r8,0x18(%rsp)
movb   $0x0,0x30(%rsp)
movb   $0x0,0x80(%rsp)
mov    %rcx,%r12
movb   $0x0,(%rcx)
mov    $0xffffffffffffffff,%rax
nopl   0x0(%rax)
cmpb   $0x20,0x1(%rbx,%rax,1)
lea    0x1(%rax),%rax
je     11e0 <ffmkky+0x50>
mov    %eax,%esi
add    %rbx,%rsi
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    $0x4a,%edx
call   1080 <strncat@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    %eax,(%rsp)
cltq
mov    %rax,0x20(%rsp)
mov    %r14,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
mov    %rbp,0x10(%rsp)
je     1252 <ffmkky+0xc2>
movslq %eax,%rcx
lea    (%rsp,%rcx,1),%rax
add    $0x2f,%rax
cmpb   $0x20,0x2f(%rsp,%rcx,1)
jne    126e <ffmkky+0xde>
nopw   0x0(%rax,%rax,1)
movb   $0x0,(%rax)
lea    -0x1(%rax),%r13
cmpb   $0x20,-0x1(%rax)
mov    %r13,%rax
je     1240 <ffmkky+0xb0>
jmp    1271 <ffmkky+0xe1>
lea    0x30(%rsp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
jne    1283 <ffmkky+0xf3>
xor    %r13d,%r13d
mov    %r12,%r14
jmp    12be <ffmkky+0x12e>
mov    %rax,%r13
mov    %r14,%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     12ae <ffmkky+0x11e>
lea    0xd76(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    0x30(%rsp),%rdi
call   1050 <ffpmsg@plt>
mov    0x18(%rsp),%rax
movl   $0xcf,(%rax)
mov    $0xcf,%eax
jmp    170c <ffmkky+0x57c>
sub    %r14,%r13
add    $0x1,%r13
cmp    $0x8,%r13
mov    %r12,%r14
ja     12d6 <ffmkky+0x146>
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   10b0 <fftkey@plt>
test   %rax,%rax
jle    13ee <ffmkky+0x25e>
mov    0x30(%rsp),%al
cmp    $0x48,%al
mov    0x18(%rsp),%r12
jne    1305 <ffmkky+0x175>
lea    0xd48(%rip),%rsi
lea    0x30(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1458 <ffmkky+0x2c8>
mov    0x30(%rsp),%al
cmp    $0x68,%al
jne    1327 <ffmkky+0x197>
lea    0xd2c(%rip),%rsi
lea    0x30(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1458 <ffmkky+0x2c8>
mov    %r14,0x28(%rsp)
lea    0x80(%rsp),%rbp
lea    0x30(%rsp),%rsi
mov    %rbp,%rdi
mov    $0x4a,%edx
call   1080 <strncat@plt>
lea    0xd96(%rip),%rsi
mov    %rbp,%rdi
call   1090 <strtok@plt>
test   %rax,%rax
je     1498 <ffmkky+0x308>
mov    %rax,%r14
mov    %r15,0x8(%rsp)
xor    %r15d,%r15d
xor    %r12d,%r12d
xor    %ebp,%ebp
jmp    13aa <ffmkky+0x21a>
movl   $0xffffffff,0x4(%rsp)
ff
mov    %r14,%rdi
lea    0x4(%rsp),%rsi
call   10b0 <fftkey@plt>
test   %rax,%rax
mov    $0x1,%eax
cmovg  %eax,%r15d
xor    %edi,%edi
lea    0xd49(%rip),%rsi
call   1090 <strtok@plt>
mov    %rax,%r14
add    $0x1,%ebp
test   %rax,%rax
je     13c4 <ffmkky+0x234>
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    %r12d,%eax
jle    1370 <ffmkky+0x1e0>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%r12d
jmp    1370 <ffmkky+0x1e0>
movl   $0xffffffff,0x4(%rsp)
ff
lea    -0x46(%r13),%rax
cmp    $0xffffffffffffffae,%rax
ja     14ce <ffmkky+0x33e>
lea    0xc69(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    %rbx,%rdi
jmp    1294 <ffmkky+0x104>
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
cmp    $0x7,%r13
ja     1417 <ffmkky+0x287>
lea    (%r14,%r13,1),%rdi
mov    $0x8,%edx
sub    %r13,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
mov    %r15,0x8(%rsp)
movw   $0x203d,0x8(%r14)
movb   $0x0,0xa(%r14)
cmpl   $0x0,(%rsp)
mov    0x18(%rsp),%r12
je     151b <ffmkky+0x38b>
mov    $0xa,%r13d
xor    %r15d,%r15d
mov    0x10(%rsp),%rax
cmpb   $0x27,(%rax)
mov    $0x0,%ebp
je     1596 <ffmkky+0x406>
jmp    1613 <ffmkky+0x483>
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    0x20(%rsp),%rax
add    %r13,%rax
add    $0x3,%rax
cmp    $0x51,%rax
mov    %r15,0x8(%rsp)
jae    155b <ffmkky+0x3cb>
add    $0x3,%r13
lea    0xbbb(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
jmp    156e <ffmkky+0x3de>
movl   $0xffffffff,0x4(%rsp)
ff
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   10b0 <fftkey@plt>
test   %rax,%rax
jle    153f <ffmkky+0x3af>
lea    0xbbf(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    0x30(%rsp),%rdi
jmp    163a <ffmkky+0x4aa>
lea    0xb5d(%rip),%rsi
mov    0x28(%rsp),%r14
mov    %r14,%rdi
call   10a0 <strcat@plt>
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    0x20(%rsp),%rax
add    %r13,%rax
add    $0xc,%rax
cmp    $0x51,%rax
jb     1525 <ffmkky+0x395>
lea    0xb3f(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
add    $0xb,%r13
mov    0x18(%rsp),%r12
jmp    1573 <ffmkky+0x3e3>
xor    %ebp,%ebp
xor    %r15d,%r15d
jmp    165b <ffmkky+0x4cb>
add    $0xc,%r13
lea    0xb16(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    0x18(%rsp),%r12
jmp    1573 <ffmkky+0x3e3>
mov    %r15,0x8(%rsp)
lea    0x30(%rsp),%rsi
mov    0x28(%rsp),%r14
mov    %r14,%rdi
mov    $0x4a,%edx
call   1080 <strncat@plt>
lea    0xae5(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
add    $0x2,%r13
xor    %ebp,%ebp
xor    %r15d,%r15d
mov    (%rsp),%eax
test   %eax,%eax
je     1651 <ffmkky+0x4c1>
mov    0x10(%rsp),%rax
cmpb   $0x27,(%rax)
jne    1613 <ffmkky+0x483>
cmp    $0x4e,%r13
jae    1621 <ffmkky+0x491>
mov    $0x50,%edx
sub    %r13d,%edx
mov    %r14,%rdi
mov    0x10(%rsp),%rsi
call   1080 <strncat@plt>
mov    0x20(%rsp),%rcx
add    %r13,%rcx
mov    $0x50,%ebx
cmp    $0x50,%rcx
cmovb  %rcx,%rbx
jb     15c7 <ffmkky+0x437>
movb   $0x27,0x4f(%r14)
mov    0x8(%rsp),%rax
test   %rax,%rax
je     16e9 <ffmkky+0x559>
cmpb   $0x0,(%rax)
je     16aa <ffmkky+0x51a>
cmp    $0x1d,%rbx
ja     16aa <ffmkky+0x51a>
cmp    $0x1d,%rcx
ja     1604 <ffmkky+0x474>
lea    (%r14,%rcx,1),%rdi
mov    $0x1e,%edx
sub    %rcx,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
movb   $0x0,0x1e(%r14)
mov    $0x1e,%ebx
jmp    16aa <ffmkky+0x51a>
mov    0x20(%rsp),%rax
add    %r13,%rax
cmp    $0x51,%rax
jb     166f <ffmkky+0x4df>
lea    0xa6c(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    %rbx,%rdi
call   1050 <ffpmsg@plt>
mov    0x10(%rsp),%rdi
call   1050 <ffpmsg@plt>
movl   $0xcf,(%r12)
mov    $0xcf,%eax
jmp    170c <ffmkky+0x57c>
cmp    $0xa,%r13
jne    16e9 <ffmkky+0x559>
movb   $0x20,0x8(%r14)
mov    $0x46,%edx
cmpq   $0x0,0x8(%rsp)
jne    16dc <ffmkky+0x54c>
jmp    16e9 <ffmkky+0x559>
cmp    $0x1d,%rax
ja     1692 <ffmkky+0x502>
mov    $0x1e,%edx
sub    %eax,%edx
lea    0xa4d(%rip),%rsi
mov    %r14,%rdi
call   1080 <strncat@plt>
mov    $0x1e,%ebx
jmp    1695 <ffmkky+0x505>
mov    %rax,%rbx
mov    $0x50,%edx
sub    %r13d,%edx
mov    %r14,%rdi
mov    0x10(%rsp),%rsi
call   1080 <strncat@plt>
cmpq   $0x0,0x8(%rsp)
je     16e9 <ffmkky+0x559>
cmp    $0x4c,%rbx
ja     16e9 <ffmkky+0x559>
mov    0x8(%rsp),%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    16e9 <ffmkky+0x559>
lea    0xa18(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    $0x4d,%edx
sub    %ebx,%edx
mov    %r14,%rdi
mov    0x8(%rsp),%rsi
call   1080 <strncat@plt>
cmp    $0x1,%ebp
je     16f4 <ffmkky+0x564>
cmp    $0x1,%r15d
jne    1708 <ffmkky+0x578>
lea    0x9ee(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    %r14,%rdi
call   1050 <ffpmsg@plt>
mov    (%r12),%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [50 x i8] c"Illegal keyword name; contains an equals sign (=)\00"
@.str.1 = [10 x i8] c"HIERARCH \00"
@.str.2 = [10 x i8] c"hierarch \00"
@.str.3 = [3 x i8] c"= \00"
@.str.4 = [4 x i8] c" = \00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [52 x i8] c"The following keyword is too long to fit on a card:\00"
@.str.7 = [22 x i8] c"Illegal keyword name:\00"
@.str.8 = [60 x i8] c"The following keyword + value is too long to fit on a card:\00"
@.str.9 = [21 x i8] c" \00"
@.str.10 = [4 x i8] c" / \00"
@.str.11 = [75 x i8] c"Warning: the following keyword does not conform to the HIERARCH convention\00"
define i32 @ffmkky(i8* %0, i8* %1, i8* %2, i8* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca [75 x i8]
%16 = alloca [75 x i8]
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
store i8* %0, i8** %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32* %4, i32** %11
store i32 -1, i32* %19
store i32 0, i32* %20
store i32 0, i32* %21
store i32 0, i32* %22
store i32 0, i32* %23
%24 = load i32*, i32** %11
%25 = load i32, i32* %24
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %5
%28 = load i32*, i32** %11
%29 = load i32, i32* %28
store i32 %29, i32* %6
br label %443
30: ; preds = %5
%31 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
store i8 0, i8* %31
%32 = getelementptr inbounds [75 x i8], [75 x i8]* %16, i64 0, i64 0
store i8 0, i8* %32
%33 = load i8*, i8** %10
store i8 0, i8* %33
br label %34
34: ; preds = %42, %30
%35 = load i8*, i8** %7
%36 = load i32, i32* %20
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %35, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 32
br i1 %41, label %42, label %45
42: ; preds = %34
%43 = load i32, i32* %20
%44 = add nsw i32 %43, 1
store i32 %44, i32* %20
br label %34
45: ; preds = %34
%46 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%47 = load i8*, i8** %7
%48 = load i32, i32* %20
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %47, i64 %49
%51 = call i32 @strncat(i8* %46, i8* %50, i32 74)
%52 = load i8*, i8** %8
%53 = call i32 @strlen(i8* %52)
%54 = sext i32 %53 to i64
store i64 %54, i64* %13
%55 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%56 = call i32 @strlen(i8* %55)
%57 = sext i32 %56 to i64
store i64 %57, i64* %12
%58 = load i64, i64* %12
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %81
60: ; preds = %45
%61 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%62 = load i64, i64* %12
%63 = getelementptr inbounds i8, i8* %61, i64 %62
%64 = getelementptr inbounds i8, i8* %63, i64 -1
store i8* %64, i8** %17
br label %65
65: ; preds = %70, %60
%66 = load i8*, i8** %17
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 32
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i8*, i8** %17
store i8 0, i8* %71
%72 = load i8*, i8** %17
%73 = getelementptr inbounds i8, i8* %72, i32 -1
store i8* %73, i8** %17
br label %65
74: ; preds = %65
%75 = load i8*, i8** %17
%76 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%77 = ptrtoint i8* %75 to i64
%78 = ptrtoint i8* %76 to i64
%79 = sub i64 %77, %78
%80 = add nsw i64 %79, 1
store i64 %80, i64* %12
br label %81
81: ; preds = %74, %45
%82 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%83 = call i64 @strchr(i8* %82, i8 signext 61)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = call i32 @ffpmsg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%87 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%88 = call i32 @ffpmsg(i8* %87)
%89 = load i32*, i32** %11
store i32 207, i32* %89
store i32 207, i32* %6
br label %443
90: ; preds = %81
%91 = load i64, i64* %12
%92 = icmp ule i64 %91, 8
br i1 %92, label %93, label %119
93: ; preds = %90
%94 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%95 = call i64 @fftkey(i8* %94, i32* %19)
%96 = icmp sle i64 %95, 0
br i1 %96, label %97, label %119
97: ; preds = %93
%98 = load i8*, i8** %10
%99 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%100 = call i32 @strcat(i8* %98, i8* %99)
%101 = load i64, i64* %12
store i64 %101, i64* %14
br label %102
102: ; preds = %109, %97
%103 = load i64, i64* %14
%104 = icmp ult i64 %103, 8
br i1 %104, label %105, label %112
105: ; preds = %102
%106 = load i8*, i8** %10
%107 = load i64, i64* %14
%108 = getelementptr inbounds i8, i8* %106, i64 %107
store i8 32, i8* %108
br label %109
109: ; preds = %105
%110 = load i64, i64* %14
%111 = add i64 %110, 1
store i64 %111, i64* %14
br label %102
112: ; preds = %102
%113 = load i8*, i8** %10
%114 = getelementptr inbounds i8, i8* %113, i64 8
store i8 61, i8* %114
%115 = load i8*, i8** %10
%116 = getelementptr inbounds i8, i8* %115, i64 9
store i8 32, i8* %116
%117 = load i8*, i8** %10
%118 = getelementptr inbounds i8, i8* %117, i64 10
store i8 0, i8* %118
store i64 10, i64* %12
br label %269
119: ; preds = %93, %90
%120 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0)
%124 = sext i8 %123 to i32
%125 = icmp slt i32 %122, %124
br i1 %125, label %126, label %127
126: ; preds = %119
br label %140
127: ; preds = %119
%128 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%129 = load i8, i8* %128
%130 = sext i8 %129 to i32
%131 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0)
%132 = sext i8 %131 to i32
%133 = icmp sgt i32 %130, %132
br i1 %133, label %134, label %135
134: ; preds = %127
br label %138
135: ; preds = %127
%136 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%137 = call i32 @strncmp(i8* %136, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
br label %138
138: ; preds = %135, %134
%139 = phi i32 [ 1, %134 ], [ %137, %135 ]
br label %140
140: ; preds = %138, %126
%141 = phi i32 [ -1, %126 ], [ %139, %138 ]
%142 = icmp eq i32 %141, 0
br i1 %142, label %167, label %143
143: ; preds = %140
%144 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%148 = sext i8 %147 to i32
%149 = icmp slt i32 %146, %148
br i1 %149, label %150, label %151
150: ; preds = %143
br label %164
151: ; preds = %143
%152 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%153 = load i8, i8* %152
%154 = sext i8 %153 to i32
%155 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%156 = sext i8 %155 to i32
%157 = icmp sgt i32 %154, %156
br i1 %157, label %158, label %159
158: ; preds = %151
br label %162
159: ; preds = %151
%160 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%161 = call i32 @strncmp(i8* %160, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
br label %162
162: ; preds = %159, %158
%163 = phi i32 [ 1, %158 ], [ %161, %159 ]
br label %164
164: ; preds = %162, %150
%165 = phi i32 [ -1, %150 ], [ %163, %162 ]
%166 = icmp eq i32 %165, 0
br i1 %166, label %167, label %187
167: ; preds = %164, %140
%168 = load i8*, i8** %10
%169 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%170 = call i32 @strcat(i8* %168, i8* %169)
%171 = load i64, i64* %12
%172 = add i64 %171, 3
%173 = load i64, i64* %13
%174 = add i64 %172, %173
%175 = icmp ugt i64 %174, 80
br i1 %175, label %176, label %181
176: ; preds = %167
%177 = load i8*, i8** %10
%178 = call i32 @strcat(i8* %177, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%179 = load i64, i64* %12
%180 = add i64 %179, 2
store i64 %180, i64* %12
br label %186
181: ; preds = %167
%182 = load i8*, i8** %10
%183 = call i32 @strcat(i8* %182, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%184 = load i64, i64* %12
%185 = add i64 %184, 3
store i64 %185, i64* %12
br label %186
186: ; preds = %181, %176
br label %268
187: ; preds = %164
%188 = getelementptr inbounds [75 x i8], [75 x i8]* %16, i64 0, i64 0
%189 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%190 = call i32 @strncat(i8* %188, i8* %189, i32 74)
%191 = getelementptr inbounds [75 x i8], [75 x i8]* %16, i64 0, i64 0
%192 = call i8* @strtok(i8* %191, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %192, i8** %17
br label %193
193: ; preds = %209, %187
%194 = load i8*, i8** %17
%195 = icmp ne i8* %194, null
br i1 %195, label %196, label %213
196: ; preds = %193
%197 = load i8*, i8** %17
%198 = call i32 @strlen(i8* %197)
%199 = load i32, i32* %22
%200 = icmp sgt i32 %198, %199
br i1 %200, label %201, label %204
201: ; preds = %196
%202 = load i8*, i8** %17
%203 = call i32 @strlen(i8* %202)
store i32 %203, i32* %22
br label %204
204: ; preds = %201, %196
store i32 -1, i32* %19
%205 = load i8*, i8** %17
%206 = call i64 @fftkey(i8* %205, i32* %19)
%207 = icmp sgt i64 %206, 0
br i1 %207, label %208, label %209
208: ; preds = %204
store i32 1, i32* %23
br label %209
209: ; preds = %208, %204
%210 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %210, i8** %17
%211 = load i32, i32* %21
%212 = add nsw i32 %211, 1
store i32 %212, i32* %21
br label %193
213: ; preds = %193
store i32 -1, i32* %19
%214 = load i32, i32* %21
%215 = icmp sgt i32 %214, 0
br i1 %215, label %216, label %249
216: ; preds = %213
%217 = load i64, i64* %12
%218 = add i64 %217, 11
%219 = icmp ugt i64 %218, 80
br i1 %219, label %220, label %225
220: ; preds = %216
%221 = call i32 @ffpmsg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%222 = load i8*, i8** %7
%223 = call i32 @ffpmsg(i8* %222)
%224 = load i32*, i32** %11
store i32 207, i32* %224
store i32 207, i32* %6
br label %443
225: ; preds = %216
%226 = load i8*, i8** %10
%227 = call i32 @strcat(i8* %226, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%228 = load i8*, i8** %10
%229 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%230 = call i32 @strcat(i8* %228, i8* %229)
%231 = load i64, i64* %12
%232 = add i64 %231, 9
store i64 %232, i64* %12
%233 = load i64, i64* %12
%234 = add i64 %233, 3
%235 = load i64, i64* %13
%236 = add i64 %234, %235
%237 = icmp ugt i64 %236, 80
br i1 %237, label %238, label %243
238: ; preds = %225
%239 = load i8*, i8** %10
%240 = call i32 @strcat(i8* %239, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%241 = load i64, i64* %12
%242 = add i64 %241, 2
store i64 %242, i64* %12
br label %248
243: ; preds = %225
%244 = load i8*, i8** %10
%245 = call i32 @strcat(i8* %244, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%246 = load i64, i64* %12
%247 = add i64 %246, 3
store i64 %247, i64* %12
br label %248
248: ; preds = %243, %238
br label %267
249: ; preds = %213
%250 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%251 = call i64 @fftkey(i8* %250, i32* %19)
%252 = icmp sle i64 %251, 0
br i1 %252, label %253, label %261
253: ; preds = %249
%254 = load i8*, i8** %10
%255 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%256 = call i32 @strncat(i8* %254, i8* %255, i32 74)
%257 = load i8*, i8** %10
%258 = call i32 @strcat(i8* %257, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%259 = load i64, i64* %12
%260 = add i64 %259, 2
store i64 %260, i64* %12
br label %266
261: ; preds = %249
%262 = call i32 @ffpmsg(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%263 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%264 = call i32 @ffpmsg(i8* %263)
%265 = load i32*, i32** %11
store i32 207, i32* %265
store i32 207, i32* %6
br label %443
266: ; preds = %253
br label %267
267: ; preds = %266, %248
br label %268
268: ; preds = %267, %186
br label %269
269: ; preds = %268, %112
%270 = load i64, i64* %13
%271 = icmp ugt i64 %270, 0
br i1 %271, label %272, label %413
272: ; preds = %269
%273 = load i8*, i8** %8
%274 = getelementptr inbounds i8, i8* %273, i64 0
%275 = load i8, i8* %274
%276 = sext i8 %275 to i32
%277 = icmp eq i32 %276, 39
br i1 %277, label %278, label %341
278: ; preds = %272
%279 = load i64, i64* %12
%280 = icmp ugt i64 %279, 77
br i1 %280, label %281, label %288
281: ; preds = %278
%282 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%283 = load i8*, i8** %7
%284 = call i32 @ffpmsg(i8* %283)
%285 = load i8*, i8** %8
%286 = call i32 @ffpmsg(i8* %285)
%287 = load i32*, i32** %11
store i32 207, i32* %287
store i32 207, i32* %6
br label %443
288: ; preds = %278
%289 = load i8*, i8** %10
%290 = load i8*, i8** %8
%291 = load i64, i64* %12
%292 = sub i64 80, %291
%293 = trunc i64 %292 to i32
%294 = call i32 @strncat(i8* %289, i8* %290, i32 %293)
%295 = load i64, i64* %12
%296 = load i64, i64* %13
%297 = add i64 %295, %296
%298 = icmp ult i64 80, %297
br i1 %298, label %299, label %300
299: ; preds = %288
br label %304
300: ; preds = %288
%301 = load i64, i64* %12
%302 = load i64, i64* %13
%303 = add i64 %301, %302
br label %304
304: ; preds = %300, %299
%305 = phi i64 [ 80, %299 ], [ %303, %300 ]
store i64 %305, i64* %13
%306 = load i64, i64* %13
%307 = icmp eq i64 %306, 80
br i1 %307, label %308, label %311
308: ; preds = %304
%309 = load i8*, i8** %10
%310 = getelementptr inbounds i8, i8* %309, i64 79
store i8 39, i8* %310
br label %311
311: ; preds = %308, %304
%312 = load i8*, i8** %9
%313 = icmp ne i8* %312, null
br i1 %313, label %314, label %340
314: ; preds = %311
%315 = load i8*, i8** %9
%316 = getelementptr inbounds i8, i8* %315, i64 0
%317 = load i8, i8* %316
%318 = sext i8 %317 to i32
%319 = icmp ne i32 %318, 0
br i1 %319, label %320, label %339
320: ; preds = %314
%321 = load i64, i64* %13
%322 = icmp ult i64 %321, 30
br i1 %322, label %323, label %338
323: ; preds = %320
%324 = load i64, i64* %13
store i64 %324, i64* %14
br label %325
325: ; preds = %332, %323
%326 = load i64, i64* %14
%327 = icmp ult i64 %326, 30
br i1 %327, label %328, label %335
328: ; preds = %325
%329 = load i8*, i8** %10
%330 = load i64, i64* %14
%331 = getelementptr inbounds i8, i8* %329, i64 %330
store i8 32, i8* %331
br label %332
332: ; preds = %328
%333 = load i64, i64* %14
%334 = add i64 %333, 1
store i64 %334, i64* %14
br label %325
335: ; preds = %325
%336 = load i8*, i8** %10
%337 = getelementptr inbounds i8, i8* %336, i64 30
store i8 0, i8* %337
store i64 30, i64* %13
br label %338
338: ; preds = %335, %320
br label %339
339: ; preds = %338, %314
br label %340
340: ; preds = %339, %311
br label %392
341: ; preds = %272
%342 = load i64, i64* %12
%343 = load i64, i64* %13
%344 = add i64 %342, %343
%345 = icmp ugt i64 %344, 80
br i1 %345, label %346, label %353
346: ; preds = %341
%347 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%348 = load i8*, i8** %7
%349 = call i32 @ffpmsg(i8* %348)
%350 = load i8*, i8** %8
%351 = call i32 @ffpmsg(i8* %350)
%352 = load i32*, i32** %11
store i32 207, i32* %352
store i32 207, i32* %6
br label %443
353: ; preds = %341
%354 = load i64, i64* %12
%355 = load i64, i64* %13
%356 = add i64 %354, %355
%357 = icmp ult i64 %356, 30
br i1 %357, label %358, label %366
358: ; preds = %353
%359 = load i8*, i8** %10
%360 = load i64, i64* %12
%361 = load i64, i64* %13
%362 = add i64 %360, %361
%363 = sub i64 30, %362
%364 = trunc i64 %363 to i32
%365 = call i32 @strncat(i8* %359, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %364)
br label %366
366: ; preds = %358, %353
br label %367
367: ; preds = %366
%368 = load i8*, i8** %10
%369 = load i8*, i8** %8
%370 = load i64, i64* %12
%371 = sub i64 80, %370
%372 = trunc i64 %371 to i32
%373 = call i32 @strncat(i8* %368, i8* %369, i32 %372)
%374 = load i64, i64* %12
%375 = load i64, i64* %13
%376 = add i64 %374, %375
%377 = icmp ult i64 80, %376
br i1 %377, label %378, label %379
378: ; preds = %367
br label %383
379: ; preds = %367
%380 = load i64, i64* %12
%381 = load i64, i64* %13
%382 = add i64 %380, %381
br label %383
383: ; preds = %379, %378
%384 = phi i64 [ 80, %378 ], [ %382, %379 ]
store i64 %384, i64* %13
%385 = load i64, i64* %13
%386 = icmp ugt i64 30, %385
br i1 %386, label %387, label %388
387: ; preds = %383
br label %390
388: ; preds = %383
%389 = load i64, i64* %13
br label %390
390: ; preds = %388, %387
%391 = phi i64 [ 30, %387 ], [ %389, %388 ]
store i64 %391, i64* %13
br label %392
392: ; preds = %390, %340
%393 = load i8*, i8** %9
%394 = icmp ne i8* %393, null
br i1 %394, label %395, label %412
395: ; preds = %392
%396 = load i64, i64* %13
%397 = icmp ult i64 %396, 77
br i1 %397, label %398, label %411
398: ; preds = %395
%399 = load i8*, i8** %9
%400 = call i32 @strlen(i8* %399)
%401 = icmp sgt i32 %400, 0
br i1 %401, label %402, label %411
402: ; preds = %398
%403 = load i8*, i8** %10
%404 = call i32 @strcat(i8* %403, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%405 = load i8*, i8** %10
%406 = load i8*, i8** %9
%407 = load i64, i64* %13
%408 = sub i64 77, %407
%409 = trunc i64 %408 to i32
%410 = call i32 @strncat(i8* %405, i8* %406, i32 %409)
br label %411
411: ; preds = %402, %398, %395
br label %412
412: ; preds = %411, %392
br label %430
413: ; preds = %269
%414 = load i64, i64* %12
%415 = icmp eq i64 %414, 10
br i1 %415, label %416, label %429
416: ; preds = %413
%417 = load i8*, i8** %10
%418 = getelementptr inbounds i8, i8* %417, i64 8
store i8 32, i8* %418
%419 = load i8*, i8** %9
%420 = icmp ne i8* %419, null
br i1 %420, label %421, label %428
421: ; preds = %416
%422 = load i8*, i8** %10
%423 = load i8*, i8** %9
%424 = load i64, i64* %12
%425 = sub i64 80, %424
%426 = trunc i64 %425 to i32
%427 = call i32 @strncat(i8* %422, i8* %423, i32 %426)
br label %428
428: ; preds = %421, %416
br label %429
429: ; preds = %428, %413
br label %430
430: ; preds = %429, %412
%431 = load i32, i32* %21
%432 = icmp eq i32 %431, 1
br i1 %432, label %436, label %433
433: ; preds = %430
%434 = load i32, i32* %23
%435 = icmp eq i32 %434, 1
br i1 %435, label %436, label %440
436: ; preds = %433, %430
%437 = call i32 @ffpmsg(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.11, i64 0, i64 0))
%438 = load i8*, i8** %10
%439 = call i32 @ffpmsg(i8* %438)
br label %440
440: ; preds = %436, %433
%441 = load i32*, i32** %11
%442 = load i32, i32* %441
store i32 %442, i32* %6
br label %443
443: ; preds = %440, %346, %281, %261, %220, %85, %27
%444 = load i32, i32* %6
ret i32 %444
}

LLVM IR (-O2):
@.str = [50 x i8] c"Illegal keyword name; contains an equals sign (=)\00"
@.str.1 = [10 x i8] c"HIERARCH \00"
@.str.2 = [10 x i8] c"hierarch \00"
@.str.3 = [3 x i8] c"= \00"
@.str.4 = [4 x i8] c" = \00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [52 x i8] c"The following keyword is too long to fit on a card:\00"
@.str.7 = [22 x i8] c"Illegal keyword name:\00"
@.str.8 = [60 x i8] c"The following keyword + value is too long to fit on a card:\00"
@.str.9 = [21 x i8] c" \00"
@.str.10 = [4 x i8] c" / \00"
@.str.11 = [75 x i8] c"Warning: the following keyword does not conform to the HIERARCH convention\00"
define i32 @ffmkky(i8* %0, i8* %1, i8* %2, i8* %3, i32* nocapture %4) {
%6 = alloca [75 x i8]
%7 = alloca [75 x i8]
%8 = alloca i32
%9 = getelementptr inbounds [75 x i8], [75 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [75 x i8], [75 x i8]* %7, i64 0, i64 0
%11 = bitcast i32* %8 to i8*
store i32 -1, i32* %8
%12 = load i32, i32* %4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %246, label %14
14: ; preds = %5
store i8 0, i8* %9
store i8 0, i8* %10
store i8 0, i8* %3
br label %15
15: ; preds = %15, %14
%16 = phi i64 [ %20, %15 ], [ 0, %14 ]
%17 = getelementptr inbounds i8, i8* %0, i64 %16
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 32
%20 = add nuw i64 %16, 1
br i1 %19, label %15, label %21
21: ; preds = %15
%22 = and i64 %16, 4294967295
%23 = getelementptr inbounds i8, i8* %0, i64 %22
%24 = call i32 @strncat(i8* %9, i8* %23, i32 74)
%25 = call i32 @strlen(i8* %1)
%26 = sext i32 %25 to i64
%27 = call i32 @strlen(i8* %9)
%28 = icmp eq i32 %27, 0
br i1 %28, label %48, label %29
29: ; preds = %21
%30 = sext i32 %27 to i64
%31 = getelementptr inbounds [75 x i8], [75 x i8]* %6, i64 0, i64 %30
%32 = getelementptr inbounds i8, i8* %31, i64 -1
%33 = load i8, i8* %32
%34 = icmp eq i8 %33, 32
br i1 %34, label %35, label %40
35: ; preds = %29, %35
%36 = phi i8* [ %37, %35 ], [ %32, %29 ]
store i8 0, i8* %36
%37 = getelementptr inbounds i8, i8* %36, i64 -1
%38 = load i8, i8* %37
%39 = icmp eq i8 %38, 32
br i1 %39, label %35, label %40
40: ; preds = %35, %29
%41 = phi i8* [ %32, %29 ], [ %37, %35 ]
%42 = ptrtoint i8* %41 to i64
%43 = ptrtoint [75 x i8]* %6 to i64
%44 = sub i64 %42, %43
%45 = add nsw i64 %44, 1
%46 = call i64 @strchr(i8* %9, i8 signext 61)
%47 = icmp eq i64 %46, 0
br i1 %47, label %54, label %51
48: ; preds = %21
%49 = call i64 @strchr(i8* %9, i8 signext 61)
%50 = icmp eq i64 %49, 0
br i1 %50, label %56, label %51
51: ; preds = %48, %40
%52 = call i32 @ffpmsg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%53 = call i32 @ffpmsg(i8* %9)
store i32 207, i32* %4
br label %246
54: ; preds = %40
%55 = icmp ult i64 %45, 9
br i1 %55, label %56, label %66
56: ; preds = %48, %54
%57 = phi i64 [ %45, %54 ], [ 0, %48 ]
%58 = call i64 @fftkey(i8* %9, i32* %8)
%59 = icmp slt i64 %58, 1
br i1 %59, label %60, label %66
60: ; preds = %56
%61 = call i32 @strcat(i8* %3, i8* %9)
%62 = icmp ult i64 %57, 8
br i1 %62, label %63, label %144
63: ; preds = %60
%64 = getelementptr i8, i8* %3, i64 %57
%65 = sub nuw nsw i64 8, %57
br label %144
66: ; preds = %56, %54
%67 = phi i64 [ %57, %56 ], [ %45, %54 ]
%68 = load i8, i8* %9
%69 = icmp eq i8 %68, 72
br i1 %69, label %70, label %75
70: ; preds = %66
%71 = call i32 @strncmp(i8* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%72 = icmp eq i32 %71, 0
br i1 %72, label %81, label %73
73: ; preds = %70
%74 = load i8, i8* %9
br label %75
75: ; preds = %66, %73
%76 = phi i8 [ %74, %73 ], [ %68, %66 ]
%77 = icmp eq i8 %76, 104
br i1 %77, label %78, label %91
78: ; preds = %75
%79 = call i32 @strncmp(i8* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %91
81: ; preds = %78, %70
%82 = call i32 @strcat(i8* %3, i8* %9)
%83 = add i64 %67, 3
%84 = add i64 %83, %26
%85 = icmp ugt i64 %84, 80
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%88 = add i64 %67, 2
br label %139
89: ; preds = %81
%90 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %139
91: ; preds = %75, %78
%92 = call i32 @strncat(i8* %10, i8* %9, i32 74)
%93 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%94 = icmp eq i8* %93, null
br i1 %94, label %129, label %95
95: ; preds = %91, %104
%96 = phi i32 [ %108, %104 ], [ 0, %91 ]
%97 = phi i32 [ %105, %104 ], [ 0, %91 ]
%98 = phi i32 [ %110, %104 ], [ 0, %91 ]
%99 = phi i8* [ %109, %104 ], [ %93, %91 ]
%100 = call i32 @strlen(i8* %99)
%101 = icmp sgt i32 %100, %97
br i1 %101, label %102, label %104
102: ; preds = %95
%103 = call i32 @strlen(i8* %99)
br label %104
104: ; preds = %102, %95
%105 = phi i32 [ %103, %102 ], [ %97, %95 ]
store i32 -1, i32* %8
%106 = call i64 @fftkey(i8* %99, i32* %8)
%107 = icmp sgt i64 %106, 0
%108 = select i1 %107, i32 1, i32 %96
%109 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%110 = add nuw nsw i32 %98, 1
%111 = icmp eq i8* %109, null
br i1 %111, label %112, label %95
112: ; preds = %104
store i32 -1, i32* %8
%113 = add i64 %67, -70
%114 = icmp ult i64 %113, -81
br i1 %114, label %115, label %118
115: ; preds = %112
%116 = call i32 @ffpmsg(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%117 = call i32 @ffpmsg(i8* %0)
store i32 207, i32* %4
br label %246
118: ; preds = %112
%119 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%120 = call i32 @strcat(i8* %3, i8* %9)
%121 = add nsw i64 %67, 12
%122 = add i64 %121, %26
%123 = icmp ugt i64 %122, 80
br i1 %123, label %124, label %127
124: ; preds = %118
%125 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%126 = add nsw i64 %67, 11
br label %139
127: ; preds = %118
%128 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %139
129: ; preds = %91
store i32 -1, i32* %8
%130 = call i64 @fftkey(i8* %9, i32* %8)
%131 = icmp slt i64 %130, 1
br i1 %131, label %132, label %136
132: ; preds = %129
%133 = call i32 @strncat(i8* %3, i8* %9, i32 74)
%134 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%135 = add i64 %67, 2
br label %139
136: ; preds = %129
%137 = call i32 @ffpmsg(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%138 = call i32 @ffpmsg(i8* %9)
store i32 207, i32* %4
br label %246
139: ; preds = %89, %86, %124, %127, %132
%140 = phi i64 [ %88, %86 ], [ %83, %89 ], [ %126, %124 ], [ %121, %127 ], [ %135, %132 ]
%141 = phi i32 [ 0, %86 ], [ 0, %89 ], [ %110, %124 ], [ %110, %127 ], [ 0, %132 ]
%142 = phi i32 [ 0, %86 ], [ 0, %89 ], [ %108, %124 ], [ %108, %127 ], [ 0, %132 ]
%143 = icmp eq i32 %25, 0
br i1 %143, label %223, label %149
144: ; preds = %63, %60
%145 = getelementptr inbounds i8, i8* %3, i64 8
store i8 61, i8* %145
%146 = getelementptr inbounds i8, i8* %3, i64 9
store i8 32, i8* %146
%147 = getelementptr inbounds i8, i8* %3, i64 10
store i8 0, i8* %147
%148 = icmp eq i32 %25, 0
br i1 %148, label %225, label %152
149: ; preds = %139
%150 = load i8, i8* %1
%151 = icmp eq i8 %150, 39
br i1 %151, label %155, label %188
152: ; preds = %144
%153 = load i8, i8* %1
%154 = icmp eq i8 %153, 39
br i1 %154, label %161, label %188
155: ; preds = %149
%156 = icmp ugt i64 %140, 77
br i1 %156, label %157, label %161
157: ; preds = %155
%158 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%159 = call i32 @ffpmsg(i8* %0)
%160 = call i32 @ffpmsg(i8* %1)
store i32 207, i32* %4
br label %246
161: ; preds = %152, %155
%162 = phi i32 [ %142, %155 ], [ 0, %152 ]
%163 = phi i32 [ %141, %155 ], [ 0, %152 ]
%164 = phi i64 [ %140, %155 ], [ 10, %152 ]
%165 = trunc i64 %164 to i32
%166 = sub nuw nsw i32 80, %165
%167 = call i32 @strncat(i8* %3, i8* %1, i32 %166)
%168 = add i64 %164, %26
%169 = icmp ult i64 %168, 80
%170 = select i1 %169, i64 %168, i64 80
%171 = icmp ugt i64 %168, 79
br i1 %171, label %172, label %174
172: ; preds = %161
%173 = getelementptr inbounds i8, i8* %3, i64 79
store i8 39, i8* %173
br label %174
174: ; preds = %172, %161
%175 = icmp eq i8* %2, null
br i1 %175, label %235, label %176
176: ; preds = %174
%177 = load i8, i8* %2
%178 = icmp ne i8 %177, 0
%179 = icmp ult i64 %170, 30
%180 = select i1 %178, i1 %179, i1 false
br i1 %180, label %181, label %209
181: ; preds = %176
%182 = icmp ult i64 %168, 30
br i1 %182, label %183, label %186
183: ; preds = %181
%184 = getelementptr i8, i8* %3, i64 %168
%185 = sub nuw nsw i64 30, %168
br label %186
186: ; preds = %183, %181
%187 = getelementptr inbounds i8, i8* %3, i64 30
store i8 0, i8* %187
br label %209
188: ; preds = %152, %149
%189 = phi i64 [ 10, %152 ], [ %140, %149 ]
%190 = phi i32 [ 0, %152 ], [ %141, %149 ]
%191 = phi i32 [ 0, %152 ], [ %142, %149 ]
%192 = add i64 %189, %26
%193 = icmp ugt i64 %192, 80
br i1 %193, label %194, label %198
194: ; preds = %188
%195 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%196 = call i32 @ffpmsg(i8* %0)
%197 = call i32 @ffpmsg(i8* %1)
store i32 207, i32* %4
br label %246
198: ; preds = %188
%199 = icmp ult i64 %192, 30
br i1 %199, label %200, label %204
200: ; preds = %198
%201 = trunc i64 %192 to i32
%202 = sub nuw nsw i32 30, %201
%203 = call i32 @strncat(i8* %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %202)
br label %204
204: ; preds = %198, %200
%205 = phi i64 [ %192, %198 ], [ 30, %200 ]
%206 = trunc i64 %189 to i32
%207 = sub i32 80, %206
%208 = call i32 @strncat(i8* %3, i8* %1, i32 %207)
br label %209
209: ; preds = %186, %176, %204
%210 = phi i32 [ %163, %186 ], [ %163, %176 ], [ %190, %204 ]
%211 = phi i32 [ %162, %186 ], [ %162, %176 ], [ %191, %204 ]
%212 = phi i64 [ 30, %186 ], [ %170, %176 ], [ %205, %204 ]
%213 = icmp ne i8* %2, null
%214 = icmp ult i64 %212, 77
%215 = select i1 %213, i1 %214, i1 false
br i1 %215, label %216, label %235
216: ; preds = %209
%217 = call i32 @strlen(i8* %2)
%218 = icmp sgt i32 %217, 0
br i1 %218, label %219, label %235
219: ; preds = %216
%220 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%221 = trunc i64 %212 to i32
%222 = sub nuw nsw i32 77, %221
br label %230
223: ; preds = %139
%224 = icmp eq i64 %140, 10
br i1 %224, label %225, label %235
225: ; preds = %144, %223
%226 = phi i32 [ %141, %223 ], [ 0, %144 ]
%227 = phi i32 [ %142, %223 ], [ 0, %144 ]
%228 = getelementptr inbounds i8, i8* %3, i64 8
store i8 32, i8* %228
%229 = icmp eq i8* %2, null
br i1 %229, label %235, label %230
230: ; preds = %225, %219
%231 = phi i32 [ %222, %219 ], [ 70, %225 ]
%232 = phi i32 [ %211, %219 ], [ %227, %225 ]
%233 = phi i32 [ %210, %219 ], [ %226, %225 ]
%234 = call i32 @strncat(i8* %3, i8* %2, i32 %231)
br label %235
235: ; preds = %230, %174, %223, %225, %209, %216
%236 = phi i32 [ %142, %223 ], [ %227, %225 ], [ %211, %209 ], [ %211, %216 ], [ %162, %174 ], [ %232, %230 ]
%237 = phi i32 [ %141, %223 ], [ %226, %225 ], [ %210, %209 ], [ %210, %216 ], [ %163, %174 ], [ %233, %230 ]
%238 = icmp eq i32 %237, 1
%239 = icmp eq i32 %236, 1
%240 = select i1 %238, i1 true, i1 %239
br i1 %240, label %241, label %244
241: ; preds = %235
%242 = call i32 @ffpmsg(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.11, i64 0, i64 0))
%243 = call i32 @ffpmsg(i8* %3)
br label %244
244: ; preds = %235, %241
%245 = load i32, i32* %4
br label %246
246: ; preds = %5, %244, %194, %157, %136, %115, %51
%247 = phi i32 [ 207, %51 ], [ 207, %157 ], [ %245, %244 ], [ 207, %194 ], [ 207, %115 ], [ 207, %136 ], [ %12, %5 ]
ret i32 %247
}