#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int rm_so;
  size_t rm_eo;
};
typedef TYPE_1__ regmatch_t;
typedef int /*<<< orphan*/ regex_t;
typedef int /*<<< orphan*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int _POSIX_PATH_MAX;
int /*<<< orphan*/ endingInAbbrev(char *, size_t, char const *);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, char *);
int getc(int /*<<< orphan*/ *);
scalar_t__ isalpha(int);
int /*<<< orphan*/ isdigit(int);
scalar_t__ isspace(int);
scalar_t__ isupper(int);
char *malloc(int);
int /*<<< orphan*/ memmove(char *, char *, int);
char *realloc(char *, size_t);
int regcomp(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
size_t regerror(int, int /*<<< orphan*/ *, char *, int);
scalar_t__ regexec(int /*<<< orphan*/ *, char *, int, TYPE_1__ *,
                   int /*<<< orphan*/);
int /*<<< orphan*/ regfree(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, char *, size_t);
int strtol(char *, char **, int);
void sentence(const char *cmd, FILE *in, const char *file,
              void (*process)(const char *, size_t, const char *, int),
              const char *lang) {
  int voc, oc, c;
  char *sent = malloc(128);
  size_t length = 0, capacity = 128;
  int inSentence = 0;
  int inWhiteSpace = 0;
  int inParagraph = 0;
  int line = 1, beginLine = 1;
  int err;
  regex_t hashLine;
  char filebuf[_POSIX_PATH_MAX + 1];
  if ((err = regcomp(&hashLine,
                     "^[ \t]*line[ \t]*\\([0-9][0-9]*\\)[ \t]*\"\\([^\"]*\\)\"",
                     0))) {
    char buf[256];
    size_t len = regerror(err, &hashLine, buf, sizeof(buf) - 1);
    buf[len] = '\0';
    fprintf(stderr,
            "%s: internal error, compiling a regular expression failed (%s).\n",
            cmd, buf);
    exit(2);
  }
  voc = '\n';
  c = getc(in);
  while ((oc = c) != EOF) {
    c = getc(in);
    if (oc == '\n')
      ++line;
    if (voc == '\n' && oc == '#') {
      char buf[_POSIX_PATH_MAX + 20];
      regmatch_t found[3];
      buf[0] = c;
      buf[1] = '\0';
      (void)fgets(buf + 1, sizeof(buf) - 1, in);
      if (regexec(&hashLine, buf, 3, found, 0) == 0) {
        size_t len;
        line = strtol(buf + found[1].rm_so, (char **)0, 10) - 1;
        len = found[2].rm_eo - found[2].rm_so;
        if (len > _POSIX_PATH_MAX)
          len = _POSIX_PATH_MAX;
        strncpy(filebuf, buf + found[2].rm_so, len);
        filebuf[len] = '\0';
        file = filebuf;
      }
      c = '\n';
      continue;
    }
    if (length) {
      if (length >= (capacity - 1) &&
          (sent = realloc(sent, capacity *= 2)) == (char *)0) {
        fprintf(stderr, "%s: increasing sentence buffer failed: %s\n", cmd,
                strerror(errno));
        exit(2);
      }
      if (isspace(oc)) {
        if (!inWhiteSpace) {
          sent[length++] = ' ';
          inWhiteSpace = 1;
        }
      } else {
        sent[length++] = oc;
        if (isalpha(oc))
          inSentence = 1;
        if ((length == 3 && strncmp(sent + length - 3, "...", 3) == 0 &&
             (c == EOF || isspace(c))) ||
            (length >= 4 && strncmp(sent + length - 4, " ...", 4) == 0 &&
             (c == EOF || isspace(c)))) {
          inWhiteSpace = 0;
        } else if (length >= 4 && !isspace(sent[length - 4]) &&
                   strncmp(sent + length - 3, "...", 3) == 0 &&
                   (c == EOF || isspace(c))) {
          char foo;
          foo = sent[length - 3];
          sent[length - 3] = '\0';
          if (inSentence)
            process(sent, length - 3, file, beginLine);
          sent[length - 3] = foo;
          memmove(sent, sent + length - 3, 3);
          length = 3;
          inParagraph = 0;
          inWhiteSpace = 0;
          beginLine = line;
          inSentence = 0;
        } else if (length >= 4 && strncmp(sent + length - 4, "...", 3) == 0 &&
                   (c == EOF || isspace(c))) {
          if (inWhiteSpace)
            --length;
          sent[length] = '\0';
          if (inSentence)
            process(sent, length, file, beginLine);
          length = 0;
          inWhiteSpace = 0;
          inSentence = 0;
        } else if ((oc == '.' || oc == ':' || oc == '!' || oc == '?') &&
                   (c == EOF || isspace(c) || c == '"') &&
                   (!isdigit(voc) || oc != '.' || !isdigit(c)) &&
                   (oc != '.' || !endingInAbbrev(sent, length, lang))) {
          if (inWhiteSpace)
            --length;
          sent[length] = '\0';
          if (inSentence)
            process(sent, length, file, beginLine);
          length = 0;
          inWhiteSpace = 0;
          inSentence = 0;
        } else {
          inWhiteSpace = 0;
        }
      }
    } else if (isupper(oc)) {
      inParagraph = 0;
      sent[length++] = oc;
      inWhiteSpace = 0;
      beginLine = line;
      inSentence = 1;
    } else if (!inParagraph && oc == '\n' && c == '\n') {
      process("", 0, file, line);
      inParagraph = 1;
    }
    voc = oc;
  }
  if (!inParagraph)
    process("", 0, file, line);
  regfree(&hashLine);
}


x86 assembly (clang, -O0):
<sentence>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    $0x80,%edi
call   10e0 <malloc@plt>
mov    %rax,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x80,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x1,-0x60(%rbp)
movl   $0x1,-0x64(%rbp)
mov    0x2d51(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x1e8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x80(%rbp)
lea    -0x6c(%rbp),%rdi
lea    0xd23(%rip),%rsi
xor    %edx,%edx
call   1090 <regcomp@plt>
mov    %eax,-0x68(%rbp)
cmp    $0x0,%eax
je     1348 <sentence+0x108>
mov    -0x68(%rbp),%edi
lea    -0x180(%rbp),%rdx
lea    -0x6c(%rbp),%rsi
mov    $0xff,%ecx
call   10d0 <regerror@plt>
mov    %rax,-0x188(%rbp)
mov    -0x188(%rbp),%rax
movb   $0x0,-0x180(%rbp,%rax,1)
mov    0x2cab(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    -0x180(%rbp),%rcx
lea    0xcf6(%rip),%rsi
call   10b0 <fprintf@plt>
mov    $0x2,%edi
call   1140 <exit@plt>
movl   $0xa,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
call   1160 <getc@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    0x2c78(%rip),%rcx
cmp    (%rcx),%eax
je     1a19 <sentence+0x7d9>
mov    -0x10(%rbp),%rdi
call   1160 <getc@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0xa,-0x30(%rbp)
jne    138f <sentence+0x14f>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jne    14d8 <sentence+0x298>
cmpl   $0x23,-0x30(%rbp)
jne    14d8 <sentence+0x298>
mov    0x2c4e(%rip),%rax
mov    (%rax),%eax
add    $0x14,%eax
mov    %rsp,%rcx
mov    %rcx,-0x190(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x1f0(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x198(%rbp)
mov    -0x34(%rbp),%ecx
mov    %cl,(%rdi)
movb   $0x0,0x1(%rdi)
add    $0x1,%rdi
sub    $0x1,%rax
mov    %eax,%esi
mov    -0x10(%rbp),%rdx
call   10a0 <fgets@plt>
mov    -0x1f0(%rbp),%rsi
lea    -0x1d0(%rbp),%rcx
lea    -0x6c(%rbp),%rdi
mov    $0x3,%edx
xor    %r8d,%r8d
call   10f0 <regexec@plt>
cmp    $0x0,%rax
jne    14c2 <sentence+0x282>
mov    -0x1f0(%rbp),%rdi
movslq -0x1c0(%rbp),%rax
add    %rax,%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   10c0 <strtol@plt>
sub    $0x1,%eax
mov    %eax,-0x60(%rbp)
mov    -0x1a8(%rbp),%rax
movslq -0x1b0(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x1d8(%rbp)
mov    -0x1d8(%rbp),%rax
mov    0x2b8d(%rip),%rcx
movslq (%rcx),%rcx
cmp    %rcx,%rax
jbe    1488 <sentence+0x248>
mov    0x2b7a(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x1d8(%rbp)
mov    -0x1e8(%rbp),%rdi
mov    -0x1f0(%rbp),%rsi
movslq -0x1b0(%rbp),%rax
add    %rax,%rsi
mov    -0x1d8(%rbp),%rdx
call   1030 <strncpy@plt>
mov    -0x1e8(%rbp),%rax
mov    -0x1d8(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    %rax,-0x18(%rbp)
movl   $0xa,-0x34(%rbp)
mov    -0x190(%rbp),%rax
mov    %rax,%rsp
jmp    135b <sentence+0x11b>
cmpq   $0x0,-0x48(%rbp)
je     197c <sentence+0x73c>
mov    -0x48(%rbp),%rax
mov    -0x50(%rbp),%rcx
sub    $0x1,%rcx
cmp    %rcx,%rax
jb     1569 <sentence+0x329>
mov    -0x40(%rbp),%rdi
mov    -0x50(%rbp),%rsi
shl    $0x1,%rsi
mov    %rsi,-0x50(%rbp)
call   1100 <realloc@plt>
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
jne    1569 <sentence+0x329>
mov    0x2aae(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1fc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x1f8(%rbp)
mov    0x2a8c(%rip),%rax
mov    (%rax),%edi
call   1150 <strerror@plt>
mov    -0x1fc(%rbp),%edi
mov    -0x1f8(%rbp),%rdx
mov    %rax,%rcx
lea    0xb16(%rip),%rsi
call   10b0 <fprintf@plt>
mov    $0x2,%edi
call   1140 <exit@plt>
mov    -0x30(%rbp),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     15a8 <sentence+0x368>
cmpl   $0x0,-0x58(%rbp)
jne    15a3 <sentence+0x363>
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x48(%rbp)
movb   $0x20,(%rax,%rcx,1)
movl   $0x1,-0x58(%rbp)
jmp    1977 <sentence+0x737>
mov    -0x30(%rbp),%eax
mov    %al,%dl
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x48(%rbp)
mov    %dl,(%rax,%rcx,1)
mov    -0x30(%rbp),%edi
call   1110 <isalpha@plt>
cmp    $0x0,%rax
je     15dc <sentence+0x39c>
movl   $0x1,-0x54(%rbp)
cmpq   $0x3,-0x48(%rbp)
jne    1632 <sentence+0x3f2>
mov    -0x40(%rbp),%rdi
add    -0x48(%rbp),%rdi
add    $0xfffffffffffffffd,%rdi
lea    0xaa2(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1632 <sentence+0x3f2>
mov    -0x34(%rbp),%eax
mov    0x29c8(%rip),%rcx
cmp    (%rcx),%eax
je     1688 <sentence+0x448>
mov    -0x34(%rbp),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
jne    1688 <sentence+0x448>
cmpq   $0x4,-0x48(%rbp)
jb     1694 <sentence+0x454>
mov    -0x40(%rbp),%rdi
add    -0x48(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
lea    0xa4b(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1694 <sentence+0x454>
mov    -0x34(%rbp),%eax
mov    0x2972(%rip),%rcx
cmp    (%rcx),%eax
je     1688 <sentence+0x448>
mov    -0x34(%rbp),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     1694 <sentence+0x454>
movl   $0x0,-0x58(%rbp)
jmp    1972 <sentence+0x732>
cmpq   $0x4,-0x48(%rbp)
jb     17a8 <sentence+0x568>
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
sub    $0x4,%rcx
movsbl (%rax,%rcx,1),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
jne    17a8 <sentence+0x568>
mov    -0x40(%rbp),%rdi
add    -0x48(%rbp),%rdi
add    $0xfffffffffffffffd,%rdi
lea    0x9cb(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    17a8 <sentence+0x568>
mov    -0x34(%rbp),%eax
mov    0x28f1(%rip),%rcx
cmp    (%rcx),%eax
je     1709 <sentence+0x4c9>
mov    -0x34(%rbp),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     17a8 <sentence+0x568>
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
sub    $0x3,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x1d9(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
sub    $0x3,%rcx
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x0,-0x54(%rbp)
je     1751 <sentence+0x511>
mov    -0x20(%rbp),%rax
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
sub    $0x3,%rsi
mov    -0x18(%rbp),%rdx
mov    -0x64(%rbp),%ecx
call   *%rax
mov    -0x1d9(%rbp),%dl
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
sub    $0x3,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x40(%rbp),%rdi
mov    -0x40(%rbp),%rsi
add    -0x48(%rbp),%rsi
add    $0xfffffffffffffffd,%rsi
mov    $0x3,%edx
call   1130 <memmove@plt>
movq   $0x3,-0x48(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x64(%rbp)
movl   $0x0,-0x54(%rbp)
jmp    196d <sentence+0x72d>
cmpq   $0x4,-0x48(%rbp)
jb     185a <sentence+0x61a>
mov    -0x40(%rbp),%rdi
add    -0x48(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
lea    0x8d6(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    185a <sentence+0x61a>
mov    -0x34(%rbp),%eax
mov    0x27fc(%rip),%rcx
cmp    (%rcx),%eax
je     17fe <sentence+0x5be>
mov    -0x34(%rbp),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     185a <sentence+0x61a>
cmpl   $0x0,-0x58(%rbp)
je     1814 <sentence+0x5d4>
mov    -0x48(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x0,-0x54(%rbp)
je     183f <sentence+0x5ff>
mov    -0x20(%rbp),%rax
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x64(%rbp),%ecx
call   *%rax
movq   $0x0,-0x48(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x54(%rbp)
jmp    1968 <sentence+0x728>
cmpl   $0x2e,-0x30(%rbp)
je     1882 <sentence+0x642>
cmpl   $0x3a,-0x30(%rbp)
je     1882 <sentence+0x642>
cmpl   $0x21,-0x30(%rbp)
je     1882 <sentence+0x642>
cmpl   $0x3f,-0x30(%rbp)
jne    195c <sentence+0x71c>
mov    -0x34(%rbp),%eax
mov    0x2754(%rip),%rcx
cmp    (%rcx),%eax
je     18b0 <sentence+0x670>
mov    -0x34(%rbp),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
jne    18b0 <sentence+0x670>
cmpl   $0x22,-0x34(%rbp)
jne    195c <sentence+0x71c>
mov    -0x2c(%rbp),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
je     18dc <sentence+0x69c>
cmpl   $0x2e,-0x30(%rbp)
jne    18dc <sentence+0x69c>
mov    -0x34(%rbp),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
jne    195c <sentence+0x71c>
cmpl   $0x2e,-0x30(%rbp)
jne    1900 <sentence+0x6c0>
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1070 <endingInAbbrev@plt>
cmp    $0x0,%eax
jne    195c <sentence+0x71c>
cmpl   $0x0,-0x58(%rbp)
je     1916 <sentence+0x6d6>
mov    -0x48(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x0,-0x54(%rbp)
je     1941 <sentence+0x701>
mov    -0x20(%rbp),%rax
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x64(%rbp),%ecx
call   *%rax
movq   $0x0,-0x48(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x54(%rbp)
jmp    1963 <sentence+0x723>
movl   $0x0,-0x58(%rbp)
jmp    1968 <sentence+0x728>
jmp    196d <sentence+0x72d>
jmp    1972 <sentence+0x732>
jmp    1977 <sentence+0x737>
jmp    1a0e <sentence+0x7ce>
mov    -0x30(%rbp),%edi
call   1120 <isupper@plt>
cmp    $0x0,%rax
je     19c9 <sentence+0x789>
movl   $0x0,-0x5c(%rbp)
mov    -0x30(%rbp),%eax
mov    %al,%dl
mov    -0x40(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x48(%rbp)
mov    %dl,(%rax,%rcx,1)
movl   $0x0,-0x58(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x64(%rbp)
movl   $0x1,-0x54(%rbp)
jmp    1a09 <sentence+0x7c9>
cmpl   $0x0,-0x5c(%rbp)
jne    1a04 <sentence+0x7c4>
cmpl   $0xa,-0x30(%rbp)
jne    1a04 <sentence+0x7c4>
cmpl   $0xa,-0x34(%rbp)
jne    1a04 <sentence+0x7c4>
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rdx
mov    -0x60(%rbp),%ecx
lea    0x676(%rip),%rdi
xor    %esi,%esi
call   *%rax
movl   $0x1,-0x5c(%rbp)
jmp    1a09 <sentence+0x7c9>
jmp    1a0e <sentence+0x7ce>
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    135b <sentence+0x11b>
cmpl   $0x0,-0x5c(%rbp)
jne    1a39 <sentence+0x7f9>
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rdx
mov    -0x60(%rbp),%ecx
lea    0x63a(%rip),%rdi
xor    %esi,%esi
call   *%rax
lea    -0x6c(%rbp),%rdi
call   1060 <regfree@plt>
mov    -0x78(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sentence>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x178,%rsp
mov    %r8,-0x98(%rbp)
mov    %rcx,%r14
mov    %rdx,-0x68(%rbp)
mov    %rsi,%rbx
mov    %rdi,-0x78(%rbp)
mov    $0x80,%edi
call   10d0 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    %rsp,%r12
mov    0x2d87(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %rsp,%rcx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0xa0(%rbp)
mov    %rcx,%rsp
lea    0xd6b(%rip),%rsi
lea    -0x60(%rbp),%rdi
xor    %edx,%edx
call   1080 <regcomp@plt>
test   %eax,%eax
jne    1889 <sentence+0x659>
mov    %rbx,-0x80(%rbp)
mov    %rbx,%rdi
call   1150 <getc@plt>
mov    %eax,%r13d
mov    0x2d22(%rip),%rax
mov    $0x1,%r15d
cmp    (%rax),%r13d
je     185b <sentence+0x62b>
mov    %r12,-0x90(%rbp)
mov    %r14,-0x70(%rbp)
xor    %eax,%eax
mov    %rax,-0x30(%rbp)
mov    $0x80,%ecx
mov    $0xa,%r14d
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x54(%rbp)
mov    $0x1,%r15d
movl   $0x0,-0x58(%rbp)
xor    %edx,%edx
mov    %edx,-0x5c(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r14d,%r12d
mov    %r13d,%r14d
mov    -0x80(%rbp),%r13
jmp    133f <sentence+0x10f>
nopl   0x0(%rax)
mov    %r14,%rsp
mov    $0xa,%r12d
mov    0x2cb0(%rip),%rax
cmpl   $0xa,(%rax)
mov    $0xa,%r14d
je     184a <sentence+0x61a>
mov    %r15d,%ebx
mov    %r13,%rdi
call   1150 <getc@plt>
mov    %eax,%r13d
xor    %r15d,%r15d
cmp    $0xa,%r14d
sete   %r15b
add    %ebx,%r15d
cmp    $0x23,%r14d
jne    1450 <sentence+0x220>
cmp    $0xa,%r12d
jne    1450 <sentence+0x220>
mov    %rsp,%r14
mov    0x2c7f(%rip),%rax
mov    (%rax),%esi
lea    0x14(%rsi),%eax
mov    %rsp,%rcx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
mov    %rcx,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
neg    %rax
mov    %r13b,(%rcx,%rax,1)
lea    0x1(%rbx),%rdi
movb   $0x0,0x1(%rbx)
add    $0x13,%esi
mov    -0x80(%rbp),%r13
mov    %r13,%rdx
call   1090 <fgets@plt>
lea    -0x60(%rbp),%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
lea    -0x1a0(%rbp),%rcx
xor    %r8d,%r8d
call   10e0 <regexec@plt>
test   %rax,%rax
jne    1320 <sentence+0xf0>
movslq -0x190(%rbp),%rdi
add    %rbx,%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   10b0 <strtol@plt>
mov    %eax,%r15d
add    $0xffffffff,%r15d
mov    %r14,-0x48(%rbp)
mov    -0x178(%rbp),%r14
movslq -0x180(%rbp),%rax
sub    %rax,%r14
mov    0x2beb(%rip),%rcx
movslq (%rcx),%rcx
cmp    %rcx,%r14
cmova  %rcx,%r14
add    %rax,%rbx
mov    -0xa0(%rbp),%r12
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <strncpy@plt>
movb   $0x0,(%r12,%r14,1)
mov    -0x48(%rbp),%r14
mov    %r12,-0x68(%rbp)
jmp    1320 <sentence+0xf0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x30(%rbp),%rcx
test   %rcx,%rcx
je     14be <sentence+0x28e>
mov    -0x40(%rbp),%rsi
lea    -0x1(%rsi),%rax
cmp    %rax,%rcx
mov    -0x50(%rbp),%rbx
jb     1485 <sentence+0x255>
add    %rsi,%rsi
mov    %rbx,%rdi
mov    %rsi,-0x40(%rbp)
call   10f0 <realloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     18d1 <sentence+0x6a1>
mov    %r14d,%edi
call   1070 <isspace@plt>
test   %rax,%rax
mov    %rbx,-0x50(%rbp)
je     14f8 <sentence+0x2c8>
mov    $0x1,%ebx
cmpl   $0x0,-0x5c(%rbp)
jne    17a0 <sentence+0x570>
mov    -0x50(%rbp),%rax
mov    -0x30(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
jmp    17a0 <sentence+0x570>
mov    %r14d,%edi
call   1110 <isupper@plt>
test   %rax,%rax
mov    -0x50(%rbp),%rax
je     1575 <sentence+0x345>
mov    %r14b,(%rax)
mov    $0x1,%eax
mov    %rax,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
xor    %ebx,%ebx
movl   $0x0,-0x58(%rbp)
mov    %r15d,-0x54(%rbp)
jmp    17a0 <sentence+0x570>
mov    -0x30(%rbp),%rax
lea    0x1(%rax),%rcx
mov    %rcx,-0x48(%rbp)
mov    %r14b,(%rbx,%rax,1)
mov    %r14d,%edi
call   1100 <isalpha@plt>
test   %rax,%rax
mov    $0x1,%eax
mov    -0x34(%rbp),%ecx
cmovne %eax,%ecx
mov    %ecx,-0x34(%rbp)
mov    -0x48(%rbp),%rax
cmp    $0x3,%rax
jne    15b5 <sentence+0x385>
mov    %rbx,%rdi
lea    0xb63(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1651 <sentence+0x421>
xor    %ebx,%ebx
mov    0x2a8b(%rip),%rax
cmp    (%rax),%r13d
je     156b <sentence+0x33b>
mov    %r13d,%edi
call   1070 <isspace@plt>
test   %rax,%rax
je     1651 <sentence+0x421>
mov    $0x3,%eax
jmp    1799 <sentence+0x569>
cmpl   $0x0,-0x58(%rbp)
mov    -0x40(%rbp),%rcx
jne    173f <sentence+0x50f>
cmp    $0xa,%r14d
mov    -0x5c(%rbp),%ebx
jne    15b0 <sentence+0x380>
cmp    $0xa,%r13d
jne    15b0 <sentence+0x380>
lea    0xad6(%rip),%rdi
xor    %esi,%esi
mov    -0x68(%rbp),%rdx
mov    %r15d,%ecx
call   *-0x70(%rbp)
mov    -0x40(%rbp),%rcx
movl   $0x1,-0x58(%rbp)
jmp    1744 <sentence+0x514>
jbe    1651 <sentence+0x421>
mov    -0x48(%rbp),%rax
mov    -0x50(%rbp),%rcx
lea    (%rcx,%rax,1),%rdi
add    $0xfffffffffffffffc,%rdi
mov    %rdi,-0x88(%rbp)
lea    0xac2(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     171a <sentence+0x4ea>
mov    -0x30(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsbl -0x3(%rax,%rcx,1),%edi
call   1070 <isspace@plt>
test   %rax,%rax
jne    1630 <sentence+0x400>
mov    -0x50(%rbp),%rax
mov    -0x48(%rbp),%rcx
lea    (%rax,%rcx,1),%rbx
add    $0xfffffffffffffffd,%rbx
mov    %rbx,%rdi
lea    0xa7f(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     17bb <sentence+0x58b>
mov    -0x88(%rbp),%rdi
lea    0xa5e(%rip),%rsi
mov    $0x3,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     174c <sentence+0x51c>
xor    %ebx,%ebx
cmp    $0x3f,%r14d
ja     1739 <sentence+0x509>
mov    %r14d,%eax
movabs $0x8400400200000000,%rcx
bt     %rax,%rcx
mov    -0x40(%rbp),%rcx
jae    1714 <sentence+0x4e4>
mov    0x2961(%rip),%rax
cmp    (%rax),%r13d
jne    16f5 <sentence+0x4c5>
cmp    $0x2e,%r14d
jne    169f <sentence+0x46f>
add    $0xffffffc6,%r12d
cmp    $0xfffffff6,%r12d
jb     169f <sentence+0x46f>
mov    %r13d,%eax
add    $0xffffffc6,%eax
cmp    $0xfffffff5,%eax
ja     1714 <sentence+0x4e4>
cmp    $0x2e,%r14d
jne    16c1 <sentence+0x491>
mov    -0x50(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x98(%rbp),%rdx
call   1060 <endingInAbbrev@plt>
mov    -0x40(%rbp),%rcx
test   %eax,%eax
jne    1714 <sentence+0x4e4>
cmpl   $0x0,-0x5c(%rbp)
mov    -0x30(%rbp),%rsi
cmove  -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rdi
movb   $0x0,(%rdi,%rsi,1)
cmpl   $0x0,-0x34(%rbp)
je     16ea <sentence+0x4ba>
mov    -0x68(%rbp),%rdx
mov    -0x54(%rbp),%ecx
call   *-0x70(%rbp)
mov    -0x40(%rbp),%rcx
xor    %ebx,%ebx
movl   $0x0,-0x34(%rbp)
jmp    1744 <sentence+0x514>
mov    %r13d,%edi
call   1070 <isspace@plt>
mov    -0x40(%rbp),%rcx
cmp    $0x22,%r13d
je     1684 <sentence+0x454>
test   %rax,%rax
jne    1684 <sentence+0x454>
mov    -0x48(%rbp),%rax
jmp    1746 <sentence+0x516>
xor    %ebx,%ebx
mov    0x28bd(%rip),%rax
cmp    (%rax),%r13d
je     1739 <sentence+0x509>
mov    %r13d,%edi
call   1070 <isspace@plt>
test   %rax,%rax
je     15ec <sentence+0x3bc>
mov    -0x48(%rbp),%rax
jmp    1799 <sentence+0x569>
mov    -0x5c(%rbp),%eax
mov    %eax,%ebx
xor    %eax,%eax
mov    %rax,-0x30(%rbp)
jmp    17a4 <sentence+0x574>
mov    0x288d(%rip),%rax
cmp    (%rax),%r13d
je     1769 <sentence+0x539>
mov    %r13d,%edi
call   1070 <isspace@plt>
test   %rax,%rax
je     1651 <sentence+0x421>
cmpl   $0x0,-0x5c(%rbp)
mov    -0x30(%rbp),%rsi
cmove  -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rdi
movb   $0x0,(%rdi,%rsi,1)
cmpl   $0x0,-0x34(%rbp)
je     178e <sentence+0x55e>
mov    -0x68(%rbp),%rdx
mov    -0x54(%rbp),%ecx
call   *-0x70(%rbp)
xor    %ebx,%ebx
movl   $0x0,-0x34(%rbp)
xor    %eax,%eax
mov    %rax,-0x30(%rbp)
nopl   (%rax)
mov    -0x40(%rbp),%rcx
mov    %ebx,%edx
mov    0x2833(%rip),%rax
cmp    (%rax),%r13d
jne    1306 <sentence+0xd6>
jmp    184a <sentence+0x61a>
mov    0x281e(%rip),%rax
cmp    (%rax),%r13d
je     17d8 <sentence+0x5a8>
mov    %r13d,%edi
call   1070 <isspace@plt>
test   %rax,%rax
je     1630 <sentence+0x400>
mov    -0x30(%rbp),%rax
lea    -0x2(%rax),%rcx
mov    -0x50(%rbp),%r12
mov    -0x2(%r12,%rax,1),%dl
movb   $0x0,-0x2(%r12,%rax,1)
cmpl   $0x0,-0x34(%rbp)
je     1814 <sentence+0x5e4>
mov    %r12,%rdi
mov    %rcx,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
mov    %dl,-0x30(%rbp)
mov    -0x68(%rbp),%rdx
mov    -0x54(%rbp),%ecx
call   *-0x70(%rbp)
mov    -0x30(%rbp),%dl
mov    -0x48(%rbp),%rcx
mov    %dl,(%r12,%rcx,1)
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
call   1120 <memmove@plt>
mov    $0x3,%eax
mov    %rax,-0x30(%rbp)
xor    %ebx,%ebx
movl   $0x0,-0x58(%rbp)
mov    %r15d,-0x54(%rbp)
movl   $0x0,-0x34(%rbp)
jmp    17a0 <sentence+0x570>
cmpl   $0x0,-0x58(%rbp)
mov    -0x70(%rbp),%r14
mov    -0x90(%rbp),%r12
jne    186e <sentence+0x63e>
lea    0x80d(%rip),%rdi
xor    %esi,%esi
mov    -0x68(%rbp),%rdx
mov    %r15d,%ecx
call   *%r14
lea    -0x60(%rbp),%rdi
call   1050 <regfree@plt>
mov    %r12,%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    -0x60(%rbp),%rsi
lea    -0x1a0(%rbp),%r14
mov    %eax,%edi
mov    %r14,%rdx
mov    $0xff,%ecx
call   10c0 <regerror@plt>
movb   $0x0,-0x1a0(%rbp,%rax,1)
mov    0x271e(%rip),%rax
mov    (%rax),%edi
lea    0x774(%rip),%rsi
mov    -0x78(%rbp),%rdx
mov    %r14,%rcx
call   10a0 <fprintf@plt>
mov    $0x2,%edi
call   1130 <exit@plt>
mov    0x26f8(%rip),%rax
mov    (%rax),%ebx
mov    0x26e7(%rip),%rax
mov    (%rax),%edi
call   1140 <strerror@plt>
lea    0x781(%rip),%rsi
mov    %ebx,%edi
mov    -0x78(%rbp),%rdx
mov    %rax,%rcx
jmp    18c2 <sentence+0x692>

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i64 }
@_POSIX_PATH_MAX = global i32 0
@.str = [47 x i8] c"^[ \09]*line[ \09]*\\([0-9][0-9]*\\)[ \09]*\22\\([^\22]*\\)\22\00"
@stderr = global i32 0
@.str.1 = [65 x i8] c"%s: internal error, compiling a regular expression failed (%s).\0A\00"
@EOF = global i32 0
@.str.2 = [43 x i8] c"%s: increasing sentence buffer failed: %s\0A\00"
@errno = global i32 0
@.str.3 = [4 x i8] c"...\00"
@.str.4 = [5 x i8] c" ...\00"
@.str.5 = [1 x i8] zeroinitializer
define void @sentence(i8* %0, i32* %1, i8* %2, void (i8*, i64, i8*, i32)* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca void (i8*, i64, i8*, i32)*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i64
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i8*
%25 = alloca i64
%26 = alloca [256 x i8]
%27 = alloca i64
%28 = alloca i8*
%29 = alloca i64
%30 = alloca [3 x %struct.TYPE_3__]
%31 = alloca i64
%32 = alloca i8
store i8* %0, i8** %6
store i32* %1, i32** %7
store i8* %2, i8** %8
store void (i8*, i64, i8*, i32)* %3, void (i8*, i64, i8*, i32)** %9
store i8* %4, i8** %10
%33 = call i8* @malloc(i32 128)
store i8* %33, i8** %14
store i64 0, i64* %15
store i64 128, i64* %16
store i32 0, i32* %17
store i32 0, i32* %18
store i32 0, i32* %19
store i32 1, i32* %20
store i32 1, i32* %21
%34 = load i32, i32* @_POSIX_PATH_MAX
%35 = add nsw i32 %34, 1
%36 = zext i32 %35 to i64
%37 = call i8* @llvm.stacksave()
store i8* %37, i8** %24
%38 = alloca i8, i64 %36
store i64 %36, i64* %25
%39 = call i32 @regcomp(i32* %23, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 0)
store i32 %39, i32* %22
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %52
41: ; preds = %5
%42 = load i32, i32* %22
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %26, i64 0, i64 0
%44 = call i64 @regerror(i32 %42, i32* %23, i8* %43, i32 255)
store i64 %44, i64* %27
%45 = load i64, i64* %27
%46 = getelementptr inbounds [256 x i8], [256 x i8]* %26, i64 0, i64 %45
store i8 0, i8* %46
%47 = load i32, i32* @stderr
%48 = load i8*, i8** %6
%49 = getelementptr inbounds [256 x i8], [256 x i8]* %26, i64 0, i64 0
%50 = call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0), i8* %48, i8* %49)
%51 = call i32 @exit(i32 2)
unreachable
52: ; preds = %5
store i32 10, i32* %11
%53 = load i32*, i32** %7
%54 = call i32 @getc(i32* %53)
store i32 %54, i32* %13
br label %55
55: ; preds = %399, %124, %52
%56 = load i32, i32* %13
store i32 %56, i32* %12
%57 = load i32, i32* @EOF
%58 = icmp ne i32 %56, %57
br i1 %58, label %59, label %401
59: ; preds = %55
%60 = load i32*, i32** %7
%61 = call i32 @getc(i32* %60)
store i32 %61, i32* %13
%62 = load i32, i32* %12
%63 = icmp eq i32 %62, 10
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load i32, i32* %20
%66 = add nsw i32 %65, 1
store i32 %66, i32* %20
br label %67
67: ; preds = %64, %59
%68 = load i32, i32* %11
%69 = icmp eq i32 %68, 10
br i1 %69, label %70, label %126
70: ; preds = %67
%71 = load i32, i32* %12
%72 = icmp eq i32 %71, 35
br i1 %72, label %73, label %126
73: ; preds = %70
%74 = load i32, i32* @_POSIX_PATH_MAX
%75 = add nsw i32 %74, 20
%76 = zext i32 %75 to i64
%77 = call i8* @llvm.stacksave()
store i8* %77, i8** %28
%78 = alloca i8, i64 %76
store i64 %76, i64* %29
%79 = load i32, i32* %13
%80 = trunc i32 %79 to i8
%81 = getelementptr inbounds i8, i8* %78, i64 0
store i8 %80, i8* %81
%82 = getelementptr inbounds i8, i8* %78, i64 1
store i8 0, i8* %82
%83 = getelementptr inbounds i8, i8* %78, i64 1
%84 = sub i64 %76, 1
%85 = trunc i64 %84 to i32
%86 = load i32*, i32** %7
%87 = call i32 @fgets(i8* %83, i32 %85, i32* %86)
%88 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %30, i64 0, i64 0
%89 = call i64 @regexec(i32* %23, i8* %78, i32 3, %struct.TYPE_3__* %88, i32 0)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %124
91: ; preds = %73
%92 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %30, i64 0, i64 1
%93 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %92, i32 0, i32 0
%94 = load i32, i32* %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, i8* %78, i64 %95
%97 = call i32 @strtol(i8* %96, i8** null, i32 10)
%98 = sub nsw i32 %97, 1
store i32 %98, i32* %20
%99 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %30, i64 0, i64 2
%100 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %99, i32 0, i32 1
%101 = load i64, i64* %100
%102 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %30, i64 0, i64 2
%103 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %102, i32 0, i32 0
%104 = load i32, i32* %103
%105 = sext i32 %104 to i64
%106 = sub i64 %101, %105
store i64 %106, i64* %31
%107 = load i64, i64* %31
%108 = load i32, i32* @_POSIX_PATH_MAX
%109 = sext i32 %108 to i64
%110 = icmp ugt i64 %107, %109
br i1 %110, label %111, label %114
111: ; preds = %91
%112 = load i32, i32* @_POSIX_PATH_MAX
%113 = sext i32 %112 to i64
store i64 %113, i64* %31
br label %114
114: ; preds = %111, %91
%115 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %30, i64 0, i64 2
%116 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %115, i32 0, i32 0
%117 = load i32, i32* %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, i8* %78, i64 %118
%120 = load i64, i64* %31
%121 = call i32 @strncpy(i8* %38, i8* %119, i64 %120)
%122 = load i64, i64* %31
%123 = getelementptr inbounds i8, i8* %38, i64 %122
store i8 0, i8* %123
store i8* %38, i8** %8
br label %124
124: ; preds = %114, %73
store i32 10, i32* %13
%125 = load i8*, i8** %28
br label %55
126: ; preds = %70, %67
%127 = load i64, i64* %15
%128 = icmp ne i64 %127, 0
br i1 %128, label %129, label %372
129: ; preds = %126
%130 = load i64, i64* %15
%131 = load i64, i64* %16
%132 = sub i64 %131, 1
%133 = icmp uge i64 %130, %132
br i1 %133, label %134, label %147
134: ; preds = %129
%135 = load i8*, i8** %14
%136 = load i64, i64* %16
%137 = mul i64 %136, 2
store i64 %137, i64* %16
%138 = call i8* @realloc(i8* %135, i64 %137)
store i8* %138, i8** %14
%139 = icmp eq i8* %138, null
br i1 %139, label %140, label %147
140: ; preds = %134
%141 = load i32, i32* @stderr
%142 = load i8*, i8** %6
%143 = load i32, i32* @errno
%144 = call i8* @strerror(i32 %143)
%145 = call i32 @fprintf(i32 %141, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i8* %142, i8* %144)
%146 = call i32 @exit(i32 2)
unreachable
147: ; preds = %134, %129
%148 = load i32, i32* %12
%149 = call i64 @isspace(i32 %148)
%150 = icmp ne i64 %149, 0
br i1 %150, label %151, label %160
151: ; preds = %147
%152 = load i32, i32* %18
%153 = icmp ne i32 %152, 0
br i1 %153, label %159, label %154
154: ; preds = %151
%155 = load i8*, i8** %14
%156 = load i64, i64* %15
%157 = add i64 %156, 1
store i64 %157, i64* %15
%158 = getelementptr inbounds i8, i8* %155, i64 %156
store i8 32, i8* %158
store i32 1, i32* %18
br label %159
159: ; preds = %154, %151
br label %371
160: ; preds = %147
%161 = load i32, i32* %12
%162 = trunc i32 %161 to i8
%163 = load i8*, i8** %14
%164 = load i64, i64* %15
%165 = add i64 %164, 1
store i64 %165, i64* %15
%166 = getelementptr inbounds i8, i8* %163, i64 %164
store i8 %162, i8* %166
%167 = load i32, i32* %12
%168 = call i64 @isalpha(i32 %167)
%169 = icmp ne i64 %168, 0
br i1 %169, label %170, label %171
170: ; preds = %160
store i32 1, i32* %17
br label %171
171: ; preds = %170, %160
%172 = load i64, i64* %15
%173 = icmp eq i64 %172, 3
br i1 %173, label %174, label %189
174: ; preds = %171
%175 = load i8*, i8** %14
%176 = load i64, i64* %15
%177 = getelementptr inbounds i8, i8* %175, i64 %176
%178 = getelementptr inbounds i8, i8* %177, i64 -3
%179 = call i64 @strncmp(i8* %178, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%180 = icmp eq i64 %179, 0
br i1 %180, label %181, label %189
181: ; preds = %174
%182 = load i32, i32* %13
%183 = load i32, i32* @EOF
%184 = icmp eq i32 %182, %183
br i1 %184, label %207, label %185
185: ; preds = %181
%186 = load i32, i32* %13
%187 = call i64 @isspace(i32 %186)
%188 = icmp ne i64 %187, 0
br i1 %188, label %207, label %189
189: ; preds = %185, %174, %171
%190 = load i64, i64* %15
%191 = icmp uge i64 %190, 4
br i1 %191, label %192, label %208
192: ; preds = %189
%193 = load i8*, i8** %14
%194 = load i64, i64* %15
%195 = getelementptr inbounds i8, i8* %193, i64 %194
%196 = getelementptr inbounds i8, i8* %195, i64 -4
%197 = call i64 @strncmp(i8* %196, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%198 = icmp eq i64 %197, 0
br i1 %198, label %199, label %208
199: ; preds = %192
%200 = load i32, i32* %13
%201 = load i32, i32* @EOF
%202 = icmp eq i32 %200, %201
br i1 %202, label %207, label %203
203: ; preds = %199
%204 = load i32, i32* %13
%205 = call i64 @isspace(i32 %204)
%206 = icmp ne i64 %205, 0
br i1 %206, label %207, label %208
207: ; preds = %203, %199, %185, %181
store i32 0, i32* %18
br label %370
208: ; preds = %203, %192, %189
%209 = load i64, i64* %15
%210 = icmp uge i64 %209, 4
br i1 %210, label %211, label %267
211: ; preds = %208
%212 = load i8*, i8** %14
%213 = load i64, i64* %15
%214 = sub i64 %213, 4
%215 = getelementptr inbounds i8, i8* %212, i64 %214
%216 = load i8, i8* %215
%217 = sext i8 %216 to i32
%218 = call i64 @isspace(i32 %217)
%219 = icmp ne i64 %218, 0
br i1 %219, label %267, label %220
220: ; preds = %211
%221 = load i8*, i8** %14
%222 = load i64, i64* %15
%223 = getelementptr inbounds i8, i8* %221, i64 %222
%224 = getelementptr inbounds i8, i8* %223, i64 -3
%225 = call i64 @strncmp(i8* %224, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%226 = icmp eq i64 %225, 0
br i1 %226, label %227, label %267
227: ; preds = %220
%228 = load i32, i32* %13
%229 = load i32, i32* @EOF
%230 = icmp eq i32 %228, %229
br i1 %230, label %235, label %231
231: ; preds = %227
%232 = load i32, i32* %13
%233 = call i64 @isspace(i32 %232)
%234 = icmp ne i64 %233, 0
br i1 %234, label %235, label %267
235: ; preds = %231, %227
%236 = load i8*, i8** %14
%237 = load i64, i64* %15
%238 = sub i64 %237, 3
%239 = getelementptr inbounds i8, i8* %236, i64 %238
%240 = load i8, i8* %239
store i8 %240, i8* %32
%241 = load i8*, i8** %14
%242 = load i64, i64* %15
%243 = sub i64 %242, 3
%244 = getelementptr inbounds i8, i8* %241, i64 %243
store i8 0, i8* %244
%245 = load i32, i32* %17
%246 = icmp ne i32 %245, 0
br i1 %246, label %247, label %254
247: ; preds = %235
%248 = load void (i8*, i64, i8*, i32)*, void (i8*, i64, i8*, i32)** %9
%249 = load i8*, i8** %14
%250 = load i64, i64* %15
%251 = sub i64 %250, 3
%252 = load i8*, i8** %8
%253 = load i32, i32* %21
br label %254
254: ; preds = %247, %235
%255 = load i8, i8* %32
%256 = load i8*, i8** %14
%257 = load i64, i64* %15
%258 = sub i64 %257, 3
%259 = getelementptr inbounds i8, i8* %256, i64 %258
store i8 %255, i8* %259
%260 = load i8*, i8** %14
%261 = load i8*, i8** %14
%262 = load i64, i64* %15
%263 = getelementptr inbounds i8, i8* %261, i64 %262
%264 = getelementptr inbounds i8, i8* %263, i64 -3
%265 = call i32 @memmove(i8* %260, i8* %264, i32 3)
store i64 3, i64* %15
store i32 0, i32* %19
store i32 0, i32* %18
%266 = load i32, i32* %20
store i32 %266, i32* %21
store i32 0, i32* %17
br label %369
267: ; preds = %231, %220, %211, %208
%268 = load i64, i64* %15
%269 = icmp uge i64 %268, 4
br i1 %269, label %270, label %304
270: ; preds = %267
%271 = load i8*, i8** %14
%272 = load i64, i64* %15
%273 = getelementptr inbounds i8, i8* %271, i64 %272
%274 = getelementptr inbounds i8, i8* %273, i64 -4
%275 = call i64 @strncmp(i8* %274, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%276 = icmp eq i64 %275, 0
br i1 %276, label %277, label %304
277: ; preds = %270
%278 = load i32, i32* %13
%279 = load i32, i32* @EOF
%280 = icmp eq i32 %278, %279
br i1 %280, label %285, label %281
281: ; preds = %277
%282 = load i32, i32* %13
%283 = call i64 @isspace(i32 %282)
%284 = icmp ne i64 %283, 0
br i1 %284, label %285, label %304
285: ; preds = %281, %277
%286 = load i32, i32* %18
%287 = icmp ne i32 %286, 0
br i1 %287, label %288, label %291
288: ; preds = %285
%289 = load i64, i64* %15
%290 = add i64 %289, -1
store i64 %290, i64* %15
br label %291
291: ; preds = %288, %285
%292 = load i8*, i8** %14
%293 = load i64, i64* %15
%294 = getelementptr inbounds i8, i8* %292, i64 %293
store i8 0, i8* %294
%295 = load i32, i32* %17
%296 = icmp ne i32 %295, 0
br i1 %296, label %297, label %303
297: ; preds = %291
%298 = load void (i8*, i64, i8*, i32)*, void (i8*, i64, i8*, i32)** %9
%299 = load i8*, i8** %14
%300 = load i64, i64* %15
%301 = load i8*, i8** %8
%302 = load i32, i32* %21
br label %303
303: ; preds = %297, %291
store i64 0, i64* %15
store i32 0, i32* %18
store i32 0, i32* %17
br label %368
304: ; preds = %281, %270, %267
%305 = load i32, i32* %12
%306 = icmp eq i32 %305, 46
br i1 %306, label %316, label %307
307: ; preds = %304
%308 = load i32, i32* %12
%309 = icmp eq i32 %308, 58
br i1 %309, label %316, label %310
310: ; preds = %307
%311 = load i32, i32* %12
%312 = icmp eq i32 %311, 33
br i1 %312, label %316, label %313
313: ; preds = %310
%314 = load i32, i32* %12
%315 = icmp eq i32 %314, 63
br i1 %315, label %316, label %366
316: ; preds = %313, %310, %307, %304
%317 = load i32, i32* %13
%318 = load i32, i32* @EOF
%319 = icmp eq i32 %317, %318
br i1 %319, label %327, label %320
320: ; preds = %316
%321 = load i32, i32* %13
%322 = call i64 @isspace(i32 %321)
%323 = icmp ne i64 %322, 0
br i1 %323, label %327, label %324
324: ; preds = %320
%325 = load i32, i32* %13
%326 = icmp eq i32 %325, 34
br i1 %326, label %327, label %366
327: ; preds = %324, %320, %316
%328 = load i32, i32* %11
%329 = call i32 @isdigit(i32 %328)
%330 = icmp ne i32 %329, 0
br i1 %330, label %331, label %338
331: ; preds = %327
%332 = load i32, i32* %12
%333 = icmp ne i32 %332, 46
br i1 %333, label %338, label %334
334: ; preds = %331
%335 = load i32, i32* %13
%336 = call i32 @isdigit(i32 %335)
%337 = icmp ne i32 %336, 0
br i1 %337, label %366, label %338
338: ; preds = %334, %331, %327
%339 = load i32, i32* %12
%340 = icmp ne i32 %339, 46
br i1 %340, label %347, label %341
341: ; preds = %338
%342 = load i8*, i8** %14
%343 = load i64, i64* %15
%344 = load i8*, i8** %10
%345 = call i32 @endingInAbbrev(i8* %342, i64 %343, i8* %344)
%346 = icmp ne i32 %345, 0
br i1 %346, label %366, label %347
347: ; preds = %341, %338
%348 = load i32, i32* %18
%349 = icmp ne i32 %348, 0
br i1 %349, label %350, label %353
350: ; preds = %347
%351 = load i64, i64* %15
%352 = add i64 %351, -1
store i64 %352, i64* %15
br label %353
353: ; preds = %350, %347
%354 = load i8*, i8** %14
%355 = load i64, i64* %15
%356 = getelementptr inbounds i8, i8* %354, i64 %355
store i8 0, i8* %356
%357 = load i32, i32* %17
%358 = icmp ne i32 %357, 0
br i1 %358, label %359, label %365
359: ; preds = %353
%360 = load void (i8*, i64, i8*, i32)*, void (i8*, i64, i8*, i32)** %9
%361 = load i8*, i8** %14
%362 = load i64, i64* %15
%363 = load i8*, i8** %8
%364 = load i32, i32* %21
br label %365
365: ; preds = %359, %353
store i64 0, i64* %15
store i32 0, i32* %18
store i32 0, i32* %17
br label %367
366: ; preds = %341, %334, %324, %313
store i32 0, i32* %18
br label %367
367: ; preds = %366, %365
br label %368
368: ; preds = %367, %303
br label %369
369: ; preds = %368, %254
br label %370
370: ; preds = %369, %207
br label %371
371: ; preds = %370, %159
br label %399
372: ; preds = %126
%373 = load i32, i32* %12
%374 = call i64 @isupper(i32 %373)
%375 = icmp ne i64 %374, 0
br i1 %375, label %376, label %384
376: ; preds = %372
store i32 0, i32* %19
%377 = load i32, i32* %12
%378 = trunc i32 %377 to i8
%379 = load i8*, i8** %14
%380 = load i64, i64* %15
%381 = add i64 %380, 1
store i64 %381, i64* %15
%382 = getelementptr inbounds i8, i8* %379, i64 %380
store i8 %378, i8* %382
store i32 0, i32* %18
%383 = load i32, i32* %20
store i32 %383, i32* %21
store i32 1, i32* %17
br label %398
384: ; preds = %372
%385 = load i32, i32* %19
%386 = icmp ne i32 %385, 0
br i1 %386, label %397, label %387
387: ; preds = %384
%388 = load i32, i32* %12
%389 = icmp eq i32 %388, 10
br i1 %389, label %390, label %397
390: ; preds = %387
%391 = load i32, i32* %13
%392 = icmp eq i32 %391, 10
br i1 %392, label %393, label %397
393: ; preds = %390
%394 = load void (i8*, i64, i8*, i32)*, void (i8*, i64, i8*, i32)** %9
%395 = load i8*, i8** %8
%396 = load i32, i32* %20
store i32 1, i32* %19
br label %397
397: ; preds = %393, %390, %387, %384
br label %398
398: ; preds = %397, %376
br label %399
399: ; preds = %398, %371
%400 = load i32, i32* %12
store i32 %400, i32* %11
br label %55
401: ; preds = %55
%402 = load i32, i32* %19
%403 = icmp ne i32 %402, 0
br i1 %403, label %408, label %404
404: ; preds = %401
%405 = load void (i8*, i64, i8*, i32)*, void (i8*, i64, i8*, i32)** %9
%406 = load i8*, i8** %8
%407 = load i32, i32* %20
br label %408
408: ; preds = %404, %401
%409 = call i32 @regfree(i32* %23)
%410 = load i8*, i8** %24
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i64 }
@_POSIX_PATH_MAX = global i32 0
@.str = [47 x i8] c"^[ \09]*line[ \09]*\\([0-9][0-9]*\\)[ \09]*\22\\([^\22]*\\)\22\00"
@stderr = global i32 0
@.str.1 = [65 x i8] c"%s: internal error, compiling a regular expression failed (%s).\0A\00"
@EOF = global i32 0
@.str.2 = [43 x i8] c"%s: increasing sentence buffer failed: %s\0A\00"
@errno = global i32 0
@.str.3 = [4 x i8] c"...\00"
@.str.4 = [5 x i8] c" ...\00"
@.str.5 = [1 x i8] zeroinitializer
define void @sentence(i8* %0, i32* nocapture %1, i8* %2, void (i8*, i64, i8*, i32)* nocapture %3, i8* %4) {
%6 = alloca i32
%7 = alloca [256 x i8]
%8 = alloca [3 x %struct.TYPE_3__]
%9 = tail call dereferenceable_or_null(128) i8* @malloc(i32 128)
%10 = bitcast i32* %6 to i8*
%11 = load i32, i32* @_POSIX_PATH_MAX
%12 = add nsw i32 %11, 1
%13 = zext i32 %12 to i64
%14 = tail call i8* @llvm.stacksave()
%15 = alloca i8, i64 %13
%16 = call i32 @regcomp(i32* %6, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 0)
%17 = icmp eq i32 %16, 0
br i1 %17, label %25, label %18
18: ; preds = %5
%19 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%20 = call i64 @regerror(i32 %16, i32* %6, i8* %19, i32 255)
%21 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 %20
store i8 0, i8* %21
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %19)
%24 = call i32 @exit(i32 2)
unreachable
25: ; preds = %5
%26 = call i32 @getc(i32* %1)
%27 = load i32, i32* @EOF
%28 = icmp eq i32 %26, %27
br i1 %28, label %241, label %29
29: ; preds = %25
%30 = bitcast [3 x %struct.TYPE_3__]* %8 to i8*
%31 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 0
%32 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 1, i32 0
%33 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 2, i32 1
%34 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %8, i64 0, i64 2, i32 0
br label %35
35: ; preds = %29, %226
%36 = phi i8* [ %2, %29 ], [ %48, %226 ]
%37 = phi i32 [ 10, %29 ], [ %50, %226 ]
%38 = phi i32 [ %26, %29 ], [ %52, %226 ]
%39 = phi i8* [ %9, %29 ], [ %233, %226 ]
%40 = phi i64 [ 0, %29 ], [ %232, %226 ]
%41 = phi i64 [ 128, %29 ], [ %231, %226 ]
%42 = phi i32 [ 0, %29 ], [ %230, %226 ]
%43 = phi i32 [ 1, %29 ], [ %229, %226 ]
%44 = phi i32 [ 1, %29 ], [ %55, %226 ]
%45 = phi i32 [ 0, %29 ], [ %228, %226 ]
%46 = phi i32 [ 0, %29 ], [ %227, %226 ]
br label %47
47: ; preds = %35, %88
%48 = phi i8* [ %36, %35 ], [ %90, %88 ]
%49 = phi i32 [ %37, %35 ], [ 10, %88 ]
%50 = phi i32 [ %38, %35 ], [ 10, %88 ]
%51 = phi i32 [ %44, %35 ], [ %89, %88 ]
%52 = call i32 @getc(i32* %1)
%53 = icmp eq i32 %50, 10
%54 = zext i1 %53 to i32
%55 = add nsw i32 %51, %54
%56 = icmp eq i32 %49, 10
%57 = icmp eq i32 %50, 35
%58 = and i1 %57, %56
br i1 %58, label %59, label %93
59: ; preds = %47
%60 = load i32, i32* @_POSIX_PATH_MAX
%61 = add nsw i32 %60, 20
%62 = zext i32 %61 to i64
%63 = call i8* @llvm.stacksave()
%64 = alloca i8, i64 %62
%65 = trunc i32 %52 to i8
store i8 %65, i8* %64
%66 = getelementptr inbounds i8, i8* %64, i64 1
store i8 0, i8* %66
%67 = add i32 %60, 19
%68 = call i32 @fgets(i8* %66, i32 %67, i32* %1)
%69 = call i64 @regexec(i32* %6, i8* %64, i32 3, %struct.TYPE_3__* %31, i32 0)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %88
71: ; preds = %59
%72 = load i32, i32* %32
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, i8* %64, i64 %73
%75 = call i32 @strtol(i8* nocapture %74, i8** null, i32 10)
%76 = add nsw i32 %75, -1
%77 = load i64, i64* %33
%78 = load i32, i32* %34
%79 = sext i32 %78 to i64
%80 = sub i64 %77, %79
%81 = load i32, i32* @_POSIX_PATH_MAX
%82 = sext i32 %81 to i64
%83 = icmp ugt i64 %80, %82
%84 = select i1 %83, i64 %82, i64 %80
%85 = getelementptr inbounds i8, i8* %64, i64 %79
%86 = call i32 @strncpy(i8* %15, i8* %85, i64 %84)
%87 = getelementptr inbounds i8, i8* %15, i64 %84
store i8 0, i8* %87
br label %88
88: ; preds = %71, %59
%89 = phi i32 [ %76, %71 ], [ %55, %59 ]
%90 = phi i8* [ %15, %71 ], [ %48, %59 ]
%91 = load i32, i32* @EOF
%92 = icmp eq i32 %91, 10
br i1 %92, label %236, label %47
93: ; preds = %47
%94 = icmp eq i64 %40, 0
br i1 %94, label %215, label %95
95: ; preds = %93
%96 = add i64 %41, -1
%97 = icmp ult i64 %40, %96
br i1 %97, label %108, label %98
98: ; preds = %95
%99 = shl i64 %41, 1
%100 = call i8* @realloc(i8* %39, i64 %99)
%101 = icmp eq i8* %100, null
br i1 %101, label %102, label %108
102: ; preds = %98
%103 = load i32, i32* @stderr
%104 = load i32, i32* @errno
%105 = call i8* @strerror(i32 %104)
%106 = call i32 @fprintf(i32 %103, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %105)
%107 = call i32 @exit(i32 2)
unreachable
108: ; preds = %98, %95
%109 = phi i64 [ %99, %98 ], [ %41, %95 ]
%110 = phi i8* [ %100, %98 ], [ %39, %95 ]
%111 = call i64 @isspace(i32 %50)
%112 = icmp eq i64 %111, 0
br i1 %112, label %118, label %113
113: ; preds = %108
%114 = icmp eq i32 %46, 0
br i1 %114, label %115, label %226
115: ; preds = %113
%116 = add i64 %40, 1
%117 = getelementptr inbounds i8, i8* %110, i64 %40
store i8 32, i8* %117
br label %226
118: ; preds = %108
%119 = trunc i32 %50 to i8
%120 = add i64 %40, 1
%121 = getelementptr inbounds i8, i8* %110, i64 %40
store i8 %119, i8* %121
%122 = call i64 @isalpha(i32 %50)
%123 = icmp eq i64 %122, 0
%124 = select i1 %123, i32 %42, i32 1
%125 = icmp eq i64 %120, 3
br i1 %125, label %126, label %135
126: ; preds = %118
%127 = call i64 @strncmp(i8* %110, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %188
129: ; preds = %126
%130 = load i32, i32* @EOF
%131 = icmp eq i32 %52, %130
br i1 %131, label %226, label %132
132: ; preds = %129
%133 = call i64 @isspace(i32 %52)
%134 = icmp eq i64 %133, 0
br i1 %134, label %188, label %226
135: ; preds = %118
%136 = icmp ugt i64 %120, 3
br i1 %136, label %137, label %188
137: ; preds = %135
%138 = getelementptr inbounds i8, i8* %110, i64 %120
%139 = getelementptr inbounds i8, i8* %138, i64 -4
%140 = call i64 @strncmp(i8* %139, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%141 = icmp eq i64 %140, 0
br i1 %141, label %142, label %148
142: ; preds = %137
%143 = load i32, i32* @EOF
%144 = icmp eq i32 %52, %143
br i1 %144, label %226, label %145
145: ; preds = %142
%146 = call i64 @isspace(i32 %52)
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %226
148: ; preds = %137, %145
%149 = add i64 %40, -3
%150 = getelementptr inbounds i8, i8* %110, i64 %149
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = call i64 @isspace(i32 %152)
%154 = icmp eq i64 %153, 0
br i1 %154, label %155, label %173
155: ; preds = %148
%156 = getelementptr inbounds i8, i8* %138, i64 -3
%157 = call i64 @strncmp(i8* %156, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%158 = icmp eq i64 %157, 0
br i1 %158, label %159, label %173
159: ; preds = %155
%160 = load i32, i32* @EOF
%161 = icmp eq i32 %52, %160
br i1 %161, label %165, label %162
162: ; preds = %159
%163 = call i64 @isspace(i32 %52)
%164 = icmp eq i64 %163, 0
br i1 %164, label %173, label %165
165: ; preds = %162, %159
%166 = add i64 %40, -2
%167 = getelementptr inbounds i8, i8* %110, i64 %166
%168 = load i8, i8* %167
store i8 0, i8* %167
%169 = icmp eq i32 %124, 0
br i1 %169, label %171, label %170
170: ; preds = %165
br label %171
171: ; preds = %170, %165
store i8 %168, i8* %167
%172 = call i32 @memmove(i8* %110, i8* %156, i32 3)
br label %226
173: ; preds = %148, %155, %162
%174 = call i64 @strncmp(i8* %139, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%175 = icmp eq i64 %174, 0
br i1 %175, label %176, label %188
176: ; preds = %173
%177 = load i32, i32* @EOF
%178 = icmp eq i32 %52, %177
br i1 %178, label %182, label %179
179: ; preds = %176
%180 = call i64 @isspace(i32 %52)
%181 = icmp eq i64 %180, 0
br i1 %181, label %188, label %182
182: ; preds = %179, %176
%183 = icmp eq i32 %46, 0
%184 = select i1 %183, i64 %120, i64 %40
%185 = getelementptr inbounds i8, i8* %110, i64 %184
store i8 0, i8* %185
%186 = icmp eq i32 %124, 0
br i1 %186, label %226, label %187
187: ; preds = %182
br label %226
188: ; preds = %126, %132, %135, %179, %173
switch i32 %50, label %226 [
i32 63, label %189
i32 58, label %189
i32 46, label %189
i32 33, label %189
]
189: ; preds = %188, %188, %188, %188
%190 = load i32, i32* @EOF
%191 = icmp eq i32 %52, %190
br i1 %191, label %197, label %192
192: ; preds = %189
%193 = call i64 @isspace(i32 %52)
%194 = icmp ne i64 %193, 0
%195 = icmp eq i32 %52, 34
%196 = or i1 %195, %194
br i1 %196, label %197, label %226
197: ; preds = %192, %189
%198 = add i32 %49, -58
%199 = icmp ult i32 %198, -10
%200 = icmp ne i32 %50, 46
%201 = or i1 %200, %199
%202 = add i32 %52, -58
%203 = icmp ult i32 %202, -10
%204 = or i1 %201, %203
br i1 %204, label %205, label %226
205: ; preds = %197
br i1 %200, label %209, label %206
206: ; preds = %205
%207 = call i32 @endingInAbbrev(i8* %110, i64 %120, i8* %4)
%208 = icmp eq i32 %207, 0
br i1 %208, label %209, label %226
209: ; preds = %206, %205
%210 = icmp eq i32 %46, 0
%211 = select i1 %210, i64 %120, i64 %40
%212 = getelementptr inbounds i8, i8* %110, i64 %211
store i8 0, i8* %212
%213 = icmp eq i32 %124, 0
br i1 %213, label %226, label %214
214: ; preds = %209
br label %226
215: ; preds = %93
%216 = call i64 @isupper(i32 %50)
%217 = icmp eq i64 %216, 0
br i1 %217, label %220, label %218
218: ; preds = %215
%219 = trunc i32 %50 to i8
store i8 %219, i8* %39
br label %226
220: ; preds = %215
%221 = icmp eq i32 %45, 0
%222 = and i1 %221, %53
%223 = icmp eq i32 %52, 10
%224 = and i1 %222, %223
br i1 %224, label %225, label %226
225: ; preds = %220
br label %226
226: ; preds = %206, %192, %188, %197, %209, %214, %182, %187, %129, %132, %142, %145, %218, %225, %220, %115, %113, %171
%227 = phi i32 [ 1, %113 ], [ 1, %115 ], [ 0, %171 ], [ 0, %218 ], [ %46, %225 ], [ %46, %220 ], [ 0, %145 ], [ 0, %142 ], [ 0, %132 ], [ 0, %129 ], [ 0, %187 ], [ 0, %182 ], [ 0, %214 ], [ 0, %209 ], [ 0, %197 ], [ 0, %188 ], [ 0, %192 ], [ 0, %206 ]
%228 = phi i32 [ %45, %113 ], [ %45, %115 ], [ 0, %171 ], [ 0, %218 ], [ 1, %225 ], [ %45, %220 ], [ %45, %145 ], [ %45, %142 ], [ %45, %132 ], [ %45, %129 ], [ %45, %187 ], [ %45, %182 ], [ %45, %214 ], [ %45, %209 ], [ %45, %197 ], [ %45, %188 ], [ %45, %192 ], [ %45, %206 ]
%229 = phi i32 [ %43, %113 ], [ %43, %115 ], [ %55, %171 ], [ %55, %218 ], [ %43, %225 ], [ %43, %220 ], [ %43, %145 ], [ %43, %142 ], [ %43, %132 ], [ %43, %129 ], [ %43, %187 ], [ %43, %182 ], [ %43, %214 ], [ %43, %209 ], [ %43, %197 ], [ %43, %188 ], [ %43, %192 ], [ %43, %206 ]
%230 = phi i32 [ %42, %113 ], [ %42, %115 ], [ 0, %171 ], [ 1, %218 ], [ %42, %225 ], [ %42, %220 ], [ %124, %145 ], [ %124, %142 ], [ %124, %132 ], [ %124, %129 ], [ 0, %187 ], [ 0, %182 ], [ 0, %214 ], [ 0, %209 ], [ %124, %197 ], [ %124, %188 ], [ %124, %192 ], [ %124, %206 ]
%231 = phi i64 [ %109, %113 ], [ %109, %115 ], [ %109, %171 ], [ %41, %218 ], [ %41, %225 ], [ %41, %220 ], [ %109, %145 ], [ %109, %142 ], [ %109, %132 ], [ %109, %129 ], [ %109, %187 ], [ %109, %182 ], [ %109, %214 ], [ %109, %209 ], [ %109, %197 ], [ %109, %188 ], [ %109, %192 ], [ %109, %206 ]
%232 = phi i64 [ %40, %113 ], [ %116, %115 ], [ 3, %171 ], [ 1, %218 ], [ 0, %225 ], [ 0, %220 ], [ %120, %145 ], [ %120, %142 ], [ 3, %132 ], [ 3, %129 ], [ 0, %187 ], [ 0, %182 ], [ 0, %214 ], [ 0, %209 ], [ %120, %197 ], [ %120, %188 ], [ %120, %192 ], [ %120, %206 ]
%233 = phi i8* [ %110, %113 ], [ %110, %115 ], [ %110, %171 ], [ %39, %218 ], [ %39, %225 ], [ %39, %220 ], [ %110, %145 ], [ %110, %142 ], [ %110, %132 ], [ %110, %129 ], [ %110, %187 ], [ %110, %182 ], [ %110, %214 ], [ %110, %209 ], [ %110, %197 ], [ %110, %188 ], [ %110, %192 ], [ %110, %206 ]
%234 = load i32, i32* @EOF
%235 = icmp eq i32 %52, %234
br i1 %235, label %236, label %35
236: ; preds = %226, %88
%237 = phi i32 [ %45, %88 ], [ %228, %226 ]
%238 = phi i32 [ %89, %88 ], [ %55, %226 ]
%239 = phi i8* [ %90, %88 ], [ %48, %226 ]
%240 = icmp eq i32 %237, 0
br i1 %240, label %241, label %244
241: ; preds = %25, %236
%242 = phi i8* [ %239, %236 ], [ %2, %25 ]
%243 = phi i32 [ %238, %236 ], [ 1, %25 ]
br label %244
244: ; preds = %241, %236
%245 = call i32 @regfree(i32* %6)
ret void
}