#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*/ strncmp(char *, char *, int);
int CopyOrSkip(char *string, char *type, int *copy, int *skip) {
  char *p = string;
  int s = 0;
  if (*p == '\n')
    p++;
  while (*p == ' ' || *p == '\t')
    p++;
  *copy = *skip = 0;
  switch (*type) {
  case 'h':
    if (!strncmp(p, "+html+", s = 6) || !strncmp(p, "-latex-", s = 7) ||
        !strncmp(p, "-sgml-", s = 6) || !strncmp(p, "-rtf-", s = 5))
      *copy = 1;
    if (!strncmp(p, "-html-", s = 6) || !strncmp(p, "+latex+", s = 7) ||
        !strncmp(p, "+sgml+", s = 6) || !strncmp(p, "+rtf+", s = 5) ||
        !strncmp(p, "+none+", s = 6))
      *skip = 1;
    break;
  case 'l':
    if (!strncmp(p, "-html-", s = 6) || !strncmp(p, "+latex+", s = 7) ||
        !strncmp(p, "-sgml-", s = 6) || !strncmp(p, "-rtf-", s = 5))
      *copy = 1;
    if (!strncmp(p, "+html+", s = 6) || !strncmp(p, "-latex-", s = 7) ||
        !strncmp(p, "+sgml+", s = 6) || !strncmp(p, "+rtf+", s = 5) ||
        !strncmp(p, "+none+", s = 6))
      *skip = 1;
    break;
  case 's':
    if (!strncmp(p, "-html-", s = 6) || !strncmp(p, "-latex-", s = 7) ||
        !strncmp(p, "+sgml+", s = 6) || !strncmp(p, "-rtf-", s = 5))
      *copy = 1;
    if (!strncmp(p, "+html+", s = 6) || !strncmp(p, "+latex+", s = 7) ||
        !strncmp(p, "-sgml-", s = 6) || !strncmp(p, "+rtf+", s = 5) ||
        !strncmp(p, "+none+", s = 6))
      *skip = 1;
    break;
  case 'r':
    if (!strncmp(p, "-html-", s = 6) || !strncmp(p, "-latex-", s = 7) ||
        !strncmp(p, "-sgml-", s = 6) || !strncmp(p, "+rtf+", s = 5))
      *copy = 1;
    if (!strncmp(p, "+html+", s = 6) || !strncmp(p, "+latex+", s = 7) ||
        !strncmp(p, "+sgml+", s = 6) || !strncmp(p, "-rtf-", s = 5) ||
        !strncmp(p, "+none+", s = 6))
      *skip = 1;
    break;
  }
  if (*copy)
    return (p - string + s);
  else
    return (0);
}


x86 assembly (clang, -O0):
<CopyOrSkip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    1153 <CopyOrSkip+0x43>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1158 <CopyOrSkip+0x48>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x35(%rbp)
je     117d <CopyOrSkip+0x6d>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x35(%rbp)
mov    -0x35(%rbp),%al
test   $0x1,%al
jne    118d <CopyOrSkip+0x7d>
jmp    119e <CopyOrSkip+0x8e>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1158 <CopyOrSkip+0x48>
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffff98,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0xb,%eax
ja     1777 <CopyOrSkip+0x667>
mov    -0x40(%rbp),%rax
lea    0xe2a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xe3f(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1273 <CopyOrSkip+0x163>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0xe21(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1273 <CopyOrSkip+0x163>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xe04(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1273 <CopyOrSkip+0x163>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0xde6(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    127d <CopyOrSkip+0x16d>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xdbd(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1336 <CopyOrSkip+0x226>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0xd9f(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1336 <CopyOrSkip+0x226>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xd82(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1336 <CopyOrSkip+0x226>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0xd64(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1336 <CopyOrSkip+0x226>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xd45(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1340 <CopyOrSkip+0x230>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    1777 <CopyOrSkip+0x667>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xcf5(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     13d9 <CopyOrSkip+0x2c9>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0xcd7(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     13d9 <CopyOrSkip+0x2c9>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xc9e(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     13d9 <CopyOrSkip+0x2c9>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0xc80(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    13e3 <CopyOrSkip+0x2d3>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xc3b(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     149c <CopyOrSkip+0x38c>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0xc1d(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     149c <CopyOrSkip+0x38c>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xc1c(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     149c <CopyOrSkip+0x38c>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0xbfe(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     149c <CopyOrSkip+0x38c>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xbdf(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    14a6 <CopyOrSkip+0x396>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    1777 <CopyOrSkip+0x667>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xb8f(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     153f <CopyOrSkip+0x42f>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0xb55(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     153f <CopyOrSkip+0x42f>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xb54(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     153f <CopyOrSkip+0x42f>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0xb1a(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1549 <CopyOrSkip+0x439>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xad5(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1602 <CopyOrSkip+0x4f2>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0xad3(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1602 <CopyOrSkip+0x4f2>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xa9a(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1602 <CopyOrSkip+0x4f2>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0xa98(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1602 <CopyOrSkip+0x4f2>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xa79(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    160c <CopyOrSkip+0x4fc>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    1777 <CopyOrSkip+0x667>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0xa29(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     16a5 <CopyOrSkip+0x595>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0x9ef(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     16a5 <CopyOrSkip+0x595>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0x9d2(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     16a5 <CopyOrSkip+0x595>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0x9d0(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    16af <CopyOrSkip+0x59f>
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0x96f(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1768 <CopyOrSkip+0x658>
mov    -0x30(%rbp),%rdi
movl   $0x7,-0x34(%rbp)
lea    0x96d(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1768 <CopyOrSkip+0x658>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0x950(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1768 <CopyOrSkip+0x658>
mov    -0x30(%rbp),%rdi
movl   $0x5,-0x34(%rbp)
lea    0x916(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1768 <CopyOrSkip+0x658>
mov    -0x30(%rbp),%rdi
movl   $0x6,-0x34(%rbp)
lea    0x913(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1772 <CopyOrSkip+0x662>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    1777 <CopyOrSkip+0x667>
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
je     179e <CopyOrSkip+0x68e>
mov    -0x30(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
movslq -0x34(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x4(%rbp)
jmp    17a5 <CopyOrSkip+0x695>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CopyOrSkip>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rdi,%r13
xor    %ebx,%ebx
cmpb   $0xa,(%rdi)
sete   %bl
jmp    1134 <CopyOrSkip+0x24>
nopl   0x0(%rax)
add    $0x1,%rbx
movzbl 0x0(%r13,%rbx,1),%eax
cmp    $0x20,%al
je     1130 <CopyOrSkip+0x20>
cmp    $0x9,%al
je     1130 <CopyOrSkip+0x20>
movl   $0x0,(%r14)
movl   $0x0,(%r15)
movsbl (%rsi),%eax
xor    %r12d,%r12d
add    $0xffffff98,%eax
cmp    $0xb,%eax
ja     148a <CopyOrSkip+0x37a>
add    %rbx,%r13
lea    0xe94(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeb4(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     11d5 <CopyOrSkip+0xc5>
lea    0xea3(%rip),%rsi
mov    %r13,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     11d5 <CopyOrSkip+0xc5>
lea    0xe93(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     11d5 <CopyOrSkip+0xc5>
lea    0xe82(%rip),%rsi
mov    %r13,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    11dc <CopyOrSkip+0xcc>
movl   $0x1,(%r15)
lea    0xe69(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
mov    $0x6,%r12d
test   %eax,%eax
je     1483 <CopyOrSkip+0x373>
lea    0xe4e(%rip),%rsi
jmp    129a <CopyOrSkip+0x18a>
lea    0xe3b(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     126a <CopyOrSkip+0x15a>
lea    0xe2a(%rip),%rsi
mov    %r13,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     126a <CopyOrSkip+0x15a>
lea    0xdfe(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     126a <CopyOrSkip+0x15a>
lea    0xded(%rip),%rsi
mov    %r13,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1271 <CopyOrSkip+0x161>
movl   $0x1,(%r15)
lea    0xdb8(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
mov    $0x6,%r12d
test   %eax,%eax
je     1483 <CopyOrSkip+0x373>
lea    0xd9d(%rip),%rsi
mov    %r13,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1475 <CopyOrSkip+0x365>
lea    0xda5(%rip),%rsi
jmp    142c <CopyOrSkip+0x31c>
lea    0xd8a(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     131b <CopyOrSkip+0x20b>
lea    0xd5d(%rip),%rsi
mov    %r13,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     131b <CopyOrSkip+0x20b>
lea    0xd4d(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     131b <CopyOrSkip+0x20b>
lea    0xd58(%rip),%rsi
mov    %r13,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1322 <CopyOrSkip+0x212>
movl   $0x1,(%r15)
lea    0xd07(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
mov    $0x6,%r12d
test   %eax,%eax
je     1483 <CopyOrSkip+0x373>
lea    0xd08(%rip),%rsi
mov    %r13,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1475 <CopyOrSkip+0x365>
lea    0xcf4(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1483 <CopyOrSkip+0x373>
lea    0xcc3(%rip),%rsi
jmp    1444 <CopyOrSkip+0x334>
lea    0xcbd(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     13e8 <CopyOrSkip+0x2d8>
lea    0xc90(%rip),%rsi
mov    %r13,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     13e8 <CopyOrSkip+0x2d8>
lea    0xc9c(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     13e8 <CopyOrSkip+0x2d8>
lea    0xc6f(%rip),%rsi
mov    %r13,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    13ef <CopyOrSkip+0x2df>
movl   $0x1,(%r15)
lea    0xc3a(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
mov    $0x6,%r12d
test   %eax,%eax
je     1483 <CopyOrSkip+0x373>
lea    0xc3f(%rip),%rsi
mov    %r13,%rdi
mov    $0x7,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1475 <CopyOrSkip+0x365>
lea    0xc13(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1483 <CopyOrSkip+0x373>
lea    0xc1e(%rip),%rsi
mov    %r13,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     147d <CopyOrSkip+0x36d>
lea    0xc0c(%rip),%rsi
mov    %r13,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
mov    $0x6,%r12d
test   %eax,%eax
jne    148a <CopyOrSkip+0x37a>
jmp    1483 <CopyOrSkip+0x373>
mov    $0x7,%r12d
jmp    1483 <CopyOrSkip+0x373>
mov    $0x5,%r12d
movl   $0x1,(%r14)
mov    (%r15),%eax
add    %ebx,%r12d
test   %eax,%eax
cmove  %eax,%r12d
mov    %r12d,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"+html+\00"
@.str.1 = [8 x i8] c"-latex-\00"
@.str.2 = [7 x i8] c"-sgml-\00"
@.str.3 = [6 x i8] c"-rtf-\00"
@.str.4 = [7 x i8] c"-html-\00"
@.str.5 = [8 x i8] c"+latex+\00"
@.str.6 = [7 x i8] c"+sgml+\00"
@.str.7 = [6 x i8] c"+rtf+\00"
@.str.8 = [7 x i8] c"+none+\00"
define i32 @CopyOrSkip(i8* %0, i8* %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
%12 = load i8*, i8** %6
store i8* %12, i8** %10
store i32 0, i32* %11
%13 = load i8*, i8** %10
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 10
br i1 %16, label %17, label %20
17: ; preds = %4
%18 = load i8*, i8** %10
%19 = getelementptr inbounds i8, i8* %18, i32 1
store i8* %19, i8** %10
br label %20
20: ; preds = %17, %4
br label %21
21: ; preds = %33, %20
%22 = load i8*, i8** %10
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 32
br i1 %25, label %31, label %26
26: ; preds = %21
%27 = load i8*, i8** %10
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 9
br label %31
31: ; preds = %26, %21
%32 = phi i1 [ true, %21 ], [ %30, %26 ]
br i1 %32, label %33, label %36
33: ; preds = %31
%34 = load i8*, i8** %10
%35 = getelementptr inbounds i8, i8* %34, i32 1
store i8* %35, i8** %10
br label %21
36: ; preds = %31
%37 = load i32*, i32** %9
store i32 0, i32* %37
%38 = load i32*, i32** %8
store i32 0, i32* %38
%39 = load i8*, i8** %7
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
switch i32 %41, label %206 [
i32 104, label %42
i32 108, label %83
i32 115, label %124
i32 114, label %165
]
42: ; preds = %36
%43 = load i8*, i8** %10
store i32 6, i32* %11
%44 = call i32 @strncmp(i8* %43, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %58
46: ; preds = %42
%47 = load i8*, i8** %10
store i32 7, i32* %11
%48 = call i32 @strncmp(i8* %47, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %58
50: ; preds = %46
%51 = load i8*, i8** %10
store i32 6, i32* %11
%52 = call i32 @strncmp(i8* %51, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = load i8*, i8** %10
store i32 5, i32* %11
%56 = call i32 @strncmp(i8* %55, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%57 = icmp ne i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %54, %50, %46, %42
%59 = load i32*, i32** %8
store i32 1, i32* %59
br label %60
60: ; preds = %58, %54
%61 = load i8*, i8** %10
store i32 6, i32* %11
%62 = call i32 @strncmp(i8* %61, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %80
64: ; preds = %60
%65 = load i8*, i8** %10
store i32 7, i32* %11
%66 = call i32 @strncmp(i8* %65, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %80
68: ; preds = %64
%69 = load i8*, i8** %10
store i32 6, i32* %11
%70 = call i32 @strncmp(i8* %69, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %80
72: ; preds = %68
%73 = load i8*, i8** %10
store i32 5, i32* %11
%74 = call i32 @strncmp(i8* %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = load i8*, i8** %10
store i32 6, i32* %11
%78 = call i32 @strncmp(i8* %77, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%79 = icmp ne i32 %78, 0
br i1 %79, label %82, label %80
80: ; preds = %76, %72, %68, %64, %60
%81 = load i32*, i32** %9
store i32 1, i32* %81
br label %82
82: ; preds = %80, %76
br label %206
83: ; preds = %36
%84 = load i8*, i8** %10
store i32 6, i32* %11
%85 = call i32 @strncmp(i8* %84, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %99
87: ; preds = %83
%88 = load i8*, i8** %10
store i32 7, i32* %11
%89 = call i32 @strncmp(i8* %88, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %99
91: ; preds = %87
%92 = load i8*, i8** %10
store i32 6, i32* %11
%93 = call i32 @strncmp(i8* %92, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %99
95: ; preds = %91
%96 = load i8*, i8** %10
store i32 5, i32* %11
%97 = call i32 @strncmp(i8* %96, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%98 = icmp ne i32 %97, 0
br i1 %98, label %101, label %99
99: ; preds = %95, %91, %87, %83
%100 = load i32*, i32** %8
store i32 1, i32* %100
br label %101
101: ; preds = %99, %95
%102 = load i8*, i8** %10
store i32 6, i32* %11
%103 = call i32 @strncmp(i8* %102, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %121
105: ; preds = %101
%106 = load i8*, i8** %10
store i32 7, i32* %11
%107 = call i32 @strncmp(i8* %106, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %121
109: ; preds = %105
%110 = load i8*, i8** %10
store i32 6, i32* %11
%111 = call i32 @strncmp(i8* %110, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %121
113: ; preds = %109
%114 = load i8*, i8** %10
store i32 5, i32* %11
%115 = call i32 @strncmp(i8* %114, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %121
117: ; preds = %113
%118 = load i8*, i8** %10
store i32 6, i32* %11
%119 = call i32 @strncmp(i8* %118, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%120 = icmp ne i32 %119, 0
br i1 %120, label %123, label %121
121: ; preds = %117, %113, %109, %105, %101
%122 = load i32*, i32** %9
store i32 1, i32* %122
br label %123
123: ; preds = %121, %117
br label %206
124: ; preds = %36
%125 = load i8*, i8** %10
store i32 6, i32* %11
%126 = call i32 @strncmp(i8* %125, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%127 = icmp ne i32 %126, 0
br i1 %127, label %128, label %140
128: ; preds = %124
%129 = load i8*, i8** %10
store i32 7, i32* %11
%130 = call i32 @strncmp(i8* %129, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%131 = icmp ne i32 %130, 0
br i1 %131, label %132, label %140
132: ; preds = %128
%133 = load i8*, i8** %10
store i32 6, i32* %11
%134 = call i32 @strncmp(i8* %133, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%135 = icmp ne i32 %134, 0
br i1 %135, label %136, label %140
136: ; preds = %132
%137 = load i8*, i8** %10
store i32 5, i32* %11
%138 = call i32 @strncmp(i8* %137, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%139 = icmp ne i32 %138, 0
br i1 %139, label %142, label %140
140: ; preds = %136, %132, %128, %124
%141 = load i32*, i32** %8
store i32 1, i32* %141
br label %142
142: ; preds = %140, %136
%143 = load i8*, i8** %10
store i32 6, i32* %11
%144 = call i32 @strncmp(i8* %143, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%145 = icmp ne i32 %144, 0
br i1 %145, label %146, label %162
146: ; preds = %142
%147 = load i8*, i8** %10
store i32 7, i32* %11
%148 = call i32 @strncmp(i8* %147, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %162
150: ; preds = %146
%151 = load i8*, i8** %10
store i32 6, i32* %11
%152 = call i32 @strncmp(i8* %151, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%153 = icmp ne i32 %152, 0
br i1 %153, label %154, label %162
154: ; preds = %150
%155 = load i8*, i8** %10
store i32 5, i32* %11
%156 = call i32 @strncmp(i8* %155, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%157 = icmp ne i32 %156, 0
br i1 %157, label %158, label %162
158: ; preds = %154
%159 = load i8*, i8** %10
store i32 6, i32* %11
%160 = call i32 @strncmp(i8* %159, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%161 = icmp ne i32 %160, 0
br i1 %161, label %164, label %162
162: ; preds = %158, %154, %150, %146, %142
%163 = load i32*, i32** %9
store i32 1, i32* %163
br label %164
164: ; preds = %162, %158
br label %206
165: ; preds = %36
%166 = load i8*, i8** %10
store i32 6, i32* %11
%167 = call i32 @strncmp(i8* %166, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%168 = icmp ne i32 %167, 0
br i1 %168, label %169, label %181
169: ; preds = %165
%170 = load i8*, i8** %10
store i32 7, i32* %11
%171 = call i32 @strncmp(i8* %170, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%172 = icmp ne i32 %171, 0
br i1 %172, label %173, label %181
173: ; preds = %169
%174 = load i8*, i8** %10
store i32 6, i32* %11
%175 = call i32 @strncmp(i8* %174, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%176 = icmp ne i32 %175, 0
br i1 %176, label %177, label %181
177: ; preds = %173
%178 = load i8*, i8** %10
store i32 5, i32* %11
%179 = call i32 @strncmp(i8* %178, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%180 = icmp ne i32 %179, 0
br i1 %180, label %183, label %181
181: ; preds = %177, %173, %169, %165
%182 = load i32*, i32** %8
store i32 1, i32* %182
br label %183
183: ; preds = %181, %177
%184 = load i8*, i8** %10
store i32 6, i32* %11
%185 = call i32 @strncmp(i8* %184, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%186 = icmp ne i32 %185, 0
br i1 %186, label %187, label %203
187: ; preds = %183
%188 = load i8*, i8** %10
store i32 7, i32* %11
%189 = call i32 @strncmp(i8* %188, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%190 = icmp ne i32 %189, 0
br i1 %190, label %191, label %203
191: ; preds = %187
%192 = load i8*, i8** %10
store i32 6, i32* %11
%193 = call i32 @strncmp(i8* %192, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%194 = icmp ne i32 %193, 0
br i1 %194, label %195, label %203
195: ; preds = %191
%196 = load i8*, i8** %10
store i32 5, i32* %11
%197 = call i32 @strncmp(i8* %196, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%198 = icmp ne i32 %197, 0
br i1 %198, label %199, label %203
199: ; preds = %195
%200 = load i8*, i8** %10
store i32 6, i32* %11
%201 = call i32 @strncmp(i8* %200, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%202 = icmp ne i32 %201, 0
br i1 %202, label %205, label %203
203: ; preds = %199, %195, %191, %187, %183
%204 = load i32*, i32** %9
store i32 1, i32* %204
br label %205
205: ; preds = %203, %199
br label %206
206: ; preds = %36, %205, %164, %123, %82
%207 = load i32*, i32** %8
%208 = load i32, i32* %207
%209 = icmp ne i32 %208, 0
br i1 %209, label %210, label %220
210: ; preds = %206
%211 = load i8*, i8** %10
%212 = load i8*, i8** %6
%213 = ptrtoint i8* %211 to i64
%214 = ptrtoint i8* %212 to i64
%215 = sub i64 %213, %214
%216 = load i32, i32* %11
%217 = sext i32 %216 to i64
%218 = add nsw i64 %215, %217
%219 = trunc i64 %218 to i32
store i32 %219, i32* %5
br label %221
220: ; preds = %206
store i32 0, i32* %5
br label %221
221: ; preds = %220, %210
%222 = load i32, i32* %5
ret i32 %222
}

LLVM IR (-O2):
@.str = [7 x i8] c"+html+\00"
@.str.1 = [8 x i8] c"-latex-\00"
@.str.2 = [7 x i8] c"-sgml-\00"
@.str.3 = [6 x i8] c"-rtf-\00"
@.str.4 = [7 x i8] c"-html-\00"
@.str.5 = [8 x i8] c"+latex+\00"
@.str.6 = [7 x i8] c"+sgml+\00"
@.str.7 = [6 x i8] c"+rtf+\00"
@.str.8 = [7 x i8] c"+none+\00"
define i32 @CopyOrSkip(i8* %0, i8* nocapture %1, i32* nocapture %2, i32* nocapture writeonly %3) {
%5 = load i8, i8* %0
%6 = icmp eq i8 %5, 10
%7 = zext i1 %6 to i64
%8 = getelementptr i8, i8* %0, i64 %7
br label %9
9: ; preds = %12, %4
%10 = phi i8* [ %8, %4 ], [ %13, %12 ]
%11 = load i8, i8* %10
switch i8 %11, label %14 [
i8 32, label %12
i8 9, label %12
]
12: ; preds = %9, %9
%13 = getelementptr inbounds i8, i8* %10, i64 1
br label %9
14: ; preds = %9
store i32 0, i32* %3
store i32 0, i32* %2
%15 = load i8, i8* %1
%16 = sext i8 %15 to i32
switch i32 %16, label %131 [
i32 104, label %17
i32 108, label %45
i32 115, label %73
i32 114, label %101
]
17: ; preds = %14
%18 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%19 = icmp eq i32 %18, 0
br i1 %19, label %29, label %20
20: ; preds = %17
%21 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%22 = icmp eq i32 %21, 0
br i1 %22, label %29, label %23
23: ; preds = %20
%24 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%25 = icmp eq i32 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %26, %23, %20, %17
store i32 1, i32* %2
br label %30
30: ; preds = %29, %26
%31 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%32 = icmp eq i32 %31, 0
br i1 %32, label %129, label %33
33: ; preds = %30
%34 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%35 = icmp eq i32 %34, 0
br i1 %35, label %129, label %36
36: ; preds = %33
%37 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%38 = icmp eq i32 %37, 0
br i1 %38, label %129, label %39
39: ; preds = %36
%40 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%41 = icmp eq i32 %40, 0
br i1 %41, label %129, label %42
42: ; preds = %39
%43 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%44 = icmp eq i32 %43, 0
br i1 %44, label %129, label %131
45: ; preds = %14
%46 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%47 = icmp eq i32 %46, 0
br i1 %47, label %57, label %48
48: ; preds = %45
%49 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%50 = icmp eq i32 %49, 0
br i1 %50, label %57, label %51
51: ; preds = %48
%52 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%53 = icmp eq i32 %52, 0
br i1 %53, label %57, label %54
54: ; preds = %51
%55 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %54, %51, %48, %45
store i32 1, i32* %2
br label %58
58: ; preds = %57, %54
%59 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%60 = icmp eq i32 %59, 0
br i1 %60, label %129, label %61
61: ; preds = %58
%62 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%63 = icmp eq i32 %62, 0
br i1 %63, label %129, label %64
64: ; preds = %61
%65 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%66 = icmp eq i32 %65, 0
br i1 %66, label %129, label %67
67: ; preds = %64
%68 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%69 = icmp eq i32 %68, 0
br i1 %69, label %129, label %70
70: ; preds = %67
%71 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%72 = icmp eq i32 %71, 0
br i1 %72, label %129, label %131
73: ; preds = %14
%74 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%75 = icmp eq i32 %74, 0
br i1 %75, label %85, label %76
76: ; preds = %73
%77 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%78 = icmp eq i32 %77, 0
br i1 %78, label %85, label %79
79: ; preds = %76
%80 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%81 = icmp eq i32 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %79
%83 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %82, %79, %76, %73
store i32 1, i32* %2
br label %86
86: ; preds = %85, %82
%87 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%88 = icmp eq i32 %87, 0
br i1 %88, label %129, label %89
89: ; preds = %86
%90 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%91 = icmp eq i32 %90, 0
br i1 %91, label %129, label %92
92: ; preds = %89
%93 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%94 = icmp eq i32 %93, 0
br i1 %94, label %129, label %95
95: ; preds = %92
%96 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%97 = icmp eq i32 %96, 0
br i1 %97, label %129, label %98
98: ; preds = %95
%99 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%100 = icmp eq i32 %99, 0
br i1 %100, label %129, label %131
101: ; preds = %14
%102 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 6)
%103 = icmp eq i32 %102, 0
br i1 %103, label %113, label %104
104: ; preds = %101
%105 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7)
%106 = icmp eq i32 %105, 0
br i1 %106, label %113, label %107
107: ; preds = %104
%108 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 6)
%109 = icmp eq i32 %108, 0
br i1 %109, label %113, label %110
110: ; preds = %107
%111 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 5)
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %114
113: ; preds = %110, %107, %104, %101
store i32 1, i32* %2
br label %114
114: ; preds = %113, %110
%115 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%116 = icmp eq i32 %115, 0
br i1 %116, label %129, label %117
117: ; preds = %114
%118 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 7)
%119 = icmp eq i32 %118, 0
br i1 %119, label %129, label %120
120: ; preds = %117
%121 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%122 = icmp eq i32 %121, 0
br i1 %122, label %129, label %123
123: ; preds = %120
%124 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 5)
%125 = icmp eq i32 %124, 0
br i1 %125, label %129, label %126
126: ; preds = %123
%127 = tail call i32 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 6)
%128 = icmp eq i32 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %114, %117, %120, %123, %126, %86, %89, %92, %95, %98, %58, %61, %64, %67, %70, %30, %33, %36, %39, %42
%130 = phi i64 [ 6, %42 ], [ 5, %39 ], [ 6, %36 ], [ 7, %33 ], [ 6, %30 ], [ 6, %70 ], [ 5, %67 ], [ 6, %64 ], [ 7, %61 ], [ 6, %58 ], [ 6, %98 ], [ 5, %95 ], [ 6, %92 ], [ 7, %89 ], [ 6, %86 ], [ 6, %126 ], [ 5, %123 ], [ 6, %120 ], [ 7, %117 ], [ 6, %114 ]
store i32 1, i32* %3
br label %131
131: ; preds = %129, %126, %98, %70, %42, %14
%132 = phi i64 [ 0, %14 ], [ 6, %126 ], [ 6, %98 ], [ 6, %70 ], [ 6, %42 ], [ %130, %129 ]
%133 = load i32, i32* %2
%134 = icmp eq i32 %133, 0
%135 = ptrtoint i8* %10 to i64
%136 = ptrtoint i8* %0 to i64
%137 = sub i64 %135, %136
%138 = add i64 %137, %132
%139 = trunc i64 %138 to i32
%140 = select i1 %134, i32 0, i32 %139
ret i32 %140
}