#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 */
typedef int /*<<< orphan*/ tags;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ do_config(char *, char *, int /*<<< orphan*/ *, char *,
                             char *, char *);
int /*<<< orphan*/ do_echo(char *, char *, int /*<<< orphan*/ *, char *, char *,
                           char *);
int /*<<< orphan*/ do_flastmod(char *, char *, int /*<<< orphan*/ *, char *,
                               char *, char *);
int /*<<< orphan*/ do_fsize(char *, char *, int /*<<< orphan*/ *, char *,
                            char *, char *);
int /*<<< orphan*/ do_include(char *, char *, int /*<<< orphan*/ *, char *,
                              char *, char *);
int /*<<< orphan*/ putchar(char);
char *strchr(char *, char);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
char *strpbrk(char *, char *);
int /*<<< orphan*/ strspn(char *, char *);
int /*<<< orphan*/ unknown_directive(char *, char *);
void parse(char *vfilename, char *filename, FILE *fp, char *str) {
  char *directive;
  char *cp;
  int ntags;
  char *tags[200];
  int dirn;
  int i;
  char *val;
  directive = str;
  directive += strspn(directive, " \t\n\r");
  ntags = 0;
  cp = directive;
  for (;;) {
    cp = strpbrk(cp, " \t\n\r\"");
    if (cp == (char *)0)
      break;
    if (*cp == '"') {
      cp = strpbrk(cp + 1, "\"");
      ++cp;
      if (*cp == '\0')
        break;
    }
    *cp++ = '\0';
    cp += strspn(cp, " \t\n\r");
    if (*cp == '\0')
      break;
    if (ntags < sizeof(tags) / sizeof(*tags))
      tags[ntags++] = cp;
  }
  if (strcmp(directive, "config") == 0)
    dirn = 0;
  else if (strcmp(directive, "include") == 0)
    dirn = 1;
  else if (strcmp(directive, "echo") == 0)
    dirn = 2;
  else if (strcmp(directive, "fsize") == 0)
    dirn = 3;
  else if (strcmp(directive, "flastmod") == 0)
    dirn = 4;
  else {
    unknown_directive(filename, directive);
    return;
  }
  for (i = 0; i < ntags; ++i) {
    if (i > 0)
      putchar(' ');
    val = strchr(tags[i], '=');
    if (val == (char *)0)
      val = "";
    else
      *val++ = '\0';
    if (*val == '"' && val[strlen(val) - 1] == '"') {
      val[strlen(val) - 1] = '\0';
      ++val;
    }
    switch (dirn) {
    case 0:
      do_config(vfilename, filename, fp, directive, tags[i], val);
      break;
    case 1:
      do_include(vfilename, filename, fp, directive, tags[i], val);
      break;
    case 2:
      do_echo(vfilename, filename, fp, directive, tags[i], val);
      break;
    case 3:
      do_fsize(vfilename, filename, fp, directive, tags[i], val);
      break;
    case 4:
      do_flastmod(vfilename, filename, fp, directive, tags[i], val);
      break;
    }
  }
}


x86 assembly (clang, -O0):
<parse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x6b0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xe26(%rip),%rsi
call   1080 <strspn@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xdfc(%rip),%rsi
call   10c0 <strpbrk@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1236 <parse+0x76>
jmp    12f9 <parse+0x139>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1284 <parse+0xc4>
mov    -0x30(%rbp),%rdi
add    $0x1,%rdi
lea    0xdc8(%rip),%rsi
call   10c0 <strpbrk@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    127f <parse+0xbf>
jmp    12f9 <parse+0x139>
jmp    1284 <parse+0xc4>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rdi
lea    0xd73(%rip),%rsi
call   1080 <strspn@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    12cb <parse+0x10b>
jmp    12f9 <parse+0x139>
movslq -0x34(%rbp),%rax
cmp    $0xc8,%rax
jae    12f4 <parse+0x134>
mov    -0x30(%rbp),%rcx
mov    -0x34(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
cltq
mov    %rcx,-0x680(%rbp,%rax,8)
ff
jmp    1212 <parse+0x52>
mov    -0x28(%rbp),%rdi
lea    0xd1b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1322 <parse+0x162>
movl   $0x0,-0x684(%rbp)
jmp    13ec <parse+0x22c>
mov    -0x28(%rbp),%rdi
lea    0xcf9(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    134b <parse+0x18b>
movl   $0x1,-0x684(%rbp)
jmp    13e7 <parse+0x227>
mov    -0x28(%rbp),%rdi
lea    0xcd8(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1374 <parse+0x1b4>
movl   $0x2,-0x684(%rbp)
jmp    13e2 <parse+0x222>
mov    -0x28(%rbp),%rdi
lea    0xcb4(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    139d <parse+0x1dd>
movl   $0x3,-0x684(%rbp)
jmp    13dd <parse+0x21d>
mov    -0x28(%rbp),%rdi
lea    0xc91(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13c6 <parse+0x206>
movl   $0x4,-0x684(%rbp)
jmp    13d8 <parse+0x218>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   10e0 <unknown_directive@plt>
jmp    162f <parse+0x46f>
jmp    13dd <parse+0x21d>
jmp    13e2 <parse+0x222>
jmp    13e7 <parse+0x227>
jmp    13ec <parse+0x22c>
movl   $0x0,-0x688(%rbp)
mov    -0x688(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    162f <parse+0x46f>
cmpl   $0x0,-0x688(%rbp)
jle    141c <parse+0x25c>
mov    $0x20,%edi
call   1030 <putchar@plt>
movslq -0x688(%rbp),%rax
mov    -0x680(%rbp,%rax,8),%rdi
ff
mov    $0x3d,%esi
call   1070 <strchr@plt>
mov    %rax,-0x690(%rbp)
cmpq   $0x0,-0x690(%rbp)
jne    145d <parse+0x29d>
lea    0xbc7(%rip),%rax
mov    %rax,-0x690(%rbp)
jmp    1475 <parse+0x2b5>
mov    -0x690(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x690(%rbp)
movb   $0x0,(%rax)
mov    -0x690(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    14fd <parse+0x33d>
mov    -0x690(%rbp),%rax
mov    %rax,-0x698(%rbp)
mov    -0x690(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x698(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x22,%eax
jne    14fd <parse+0x33d>
mov    -0x690(%rbp),%rax
mov    %rax,-0x6a0(%rbp)
mov    -0x690(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x6a0(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x690(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x690(%rbp)
mov    -0x684(%rbp),%eax
mov    %rax,-0x6a8(%rbp)
sub    $0x4,%rax
ja     1616 <parse+0x456>
mov    -0x6a8(%rbp),%rax
lea    0xade(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%rcx
movslq -0x688(%rbp),%rax
mov    -0x680(%rbp,%rax,8),%r8
ff
mov    -0x690(%rbp),%r9
call   10d0 <do_config@plt>
jmp    1616 <parse+0x456>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%rcx
movslq -0x688(%rbp),%rax
mov    -0x680(%rbp,%rax,8),%r8
ff
mov    -0x690(%rbp),%r9
call   1040 <do_include@plt>
jmp    1616 <parse+0x456>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%rcx
movslq -0x688(%rbp),%rax
mov    -0x680(%rbp,%rax,8),%r8
ff
mov    -0x690(%rbp),%r9
call   1050 <do_echo@plt>
jmp    1616 <parse+0x456>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%rcx
movslq -0x688(%rbp),%rax
mov    -0x680(%rbp,%rax,8),%r8
ff
mov    -0x690(%rbp),%r9
call   1090 <do_fsize@plt>
jmp    1616 <parse+0x456>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%rcx
movslq -0x688(%rbp),%rax
mov    -0x680(%rbp,%rax,8),%r8
ff
mov    -0x690(%rbp),%r9
call   10b0 <do_flastmod@plt>
jmp    161b <parse+0x45b>
mov    -0x688(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x688(%rbp)
jmp    13f6 <parse+0x236>
add    $0x6b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x678,%rsp
mov    %rcx,%rbx
mov    %rdx,0x20(%rsp)
mov    %rsi,0x10(%rsp)
mov    %rdi,0x18(%rsp)
lea    0xe3e(%rip),%rsi
mov    %rcx,%rdi
call   1080 <strspn@plt>
movslq %eax,%r15
add    %rbx,%r15
lea    0xe2e(%rip),%rsi
mov    %r15,%rdi
call   10c0 <strpbrk@plt>
movl   $0x0,0xc(%rsp)
mov    $0x0,%r12d
test   %rax,%rax
je     12ad <parse+0xed>
mov    %rax,%r14
xor    %r12d,%r12d
lea    0xdfd(%rip),%rbx
lea    0xdfb(%rip),%rbp
jmp    1250 <parse+0x90>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rsi
call   10c0 <strpbrk@plt>
mov    %rax,%r14
test   %rax,%rax
je     12ad <parse+0xed>
cmpb   $0x22,(%r14)
jne    1274 <parse+0xb4>
add    $0x1,%r14
mov    %r14,%rdi
mov    $0x22,%esi
call   1070 <strchr@plt>
cmpb   $0x0,0x1(%rax)
je     12ad <parse+0xed>
mov    %rax,%r14
add    $0x1,%r14
lea    0x1(%r14),%rdi
movb   $0x0,(%r14)
mov    %rbx,%rsi
call   1080 <strspn@plt>
cltq
cmpb   $0x0,0x1(%r14,%rax,1)
je     12ad <parse+0xed>
lea    (%r14,%rax,1),%rdi
add    $0x1,%rdi
cmp    $0xc7,%r12d
ja     1240 <parse+0x80>
mov    %r12d,%eax
add    $0x1,%r12d
mov    %rdi,0x30(%rsp,%rax,8)
jmp    1240 <parse+0x80>
lea    0xd7f(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1359 <parse+0x199>
lea    0xd6e(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1333 <parse+0x173>
lea    0xd62(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     133d <parse+0x17d>
lea    0xd53(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1347 <parse+0x187>
lea    0xd45(%rip),%rsi
mov    %r15,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1351 <parse+0x191>
mov    0x10(%rsp),%rdi
mov    %r15,%rsi
add    $0x678,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10e0 <unknown_directive@plt>
movl   $0x1,0xc(%rsp)
jmp    1359 <parse+0x199>
movl   $0x2,0xc(%rsp)
jmp    1359 <parse+0x199>
movl   $0x3,0xc(%rsp)
jmp    1359 <parse+0x199>
movl   $0x4,0xc(%rsp)
mov    %r15,0x28(%rsp)
test   %r12d,%r12d
jle    1474 <parse+0x2b4>
mov    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x3d,%esi
call   1070 <strchr@plt>
test   %rax,%rax
je     138a <parse+0x1ca>
mov    %rax,%rbx
add    $0x1,%rbx
movb   $0x0,(%rax)
jmp    1391 <parse+0x1d1>
lea    0xc9b(%rip),%rbx
mov    0x28(%rsp),%r15
cmpb   $0x22,(%rbx)
jne    13bf <parse+0x1ff>
mov    %rbx,%rdi
call   1060 <strlen@plt>
cltq
cmpb   $0x22,-0x1(%rax,%rbx,1)
jne    13bf <parse+0x1ff>
mov    %rbx,%rdi
call   1060 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
add    $0x1,%rbx
mov    0xc(%rsp),%eax
mov    %eax,%r14d
cmp    $0x4,%eax
ja     146e <parse+0x2ae>
lea    0xc2a(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %rbx,%r9
call   10d0 <do_config@plt>
cmp    $0x1,%r12d
je     1474 <parse+0x2b4>
jmp    14a9 <parse+0x2e9>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %rbx,%r9
call   1040 <do_include@plt>
cmp    $0x1,%r12d
je     1474 <parse+0x2b4>
jmp    14a9 <parse+0x2e9>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %rbx,%r9
call   1050 <do_echo@plt>
cmp    $0x1,%r12d
je     1474 <parse+0x2b4>
jmp    14a9 <parse+0x2e9>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %rbx,%r9
call   1090 <do_fsize@plt>
cmp    $0x1,%r12d
jne    14a9 <parse+0x2e9>
add    $0x678,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %rbx,%r9
call   10b0 <do_flastmod@plt>
cmp    $0x1,%r12d
je     1474 <parse+0x2b4>
mov    %r12d,%r12d
mov    $0x1,%r15d
lea    0xb5b(%rip),%r13
jmp    14e9 <parse+0x329>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   10b0 <do_flastmod@plt>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r15
cmp    %r15,%r12
je     1474 <parse+0x2b4>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    0x30(%rsp,%r15,8),%rbx
mov    %rbx,%rdi
mov    $0x3d,%esi
call   1070 <strchr@plt>
lea    0xb20(%rip),%rbp
test   %rax,%rax
je     151b <parse+0x35b>
mov    %rax,%rbp
add    $0x1,%rbp
movb   $0x0,(%rax)
cmpb   $0x22,0x0(%rbp)
jne    1545 <parse+0x385>
mov    %rbp,%rdi
call   1060 <strlen@plt>
cltq
cmpb   $0x22,-0x1(%rax,%rbp,1)
jne    1545 <parse+0x385>
mov    %rbp,%rdi
call   1060 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbp,1)
add    $0x1,%rbp
cmpl   $0x4,0xc(%rsp)
ja     14e0 <parse+0x320>
movslq 0x0(%r13,%r14,4),%rax
add    %r13,%rax
jmp    *%rax
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   10d0 <do_config@plt>
jmp    14e0 <parse+0x320>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   1040 <do_include@plt>
jmp    14e0 <parse+0x320>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   1050 <do_echo@plt>
jmp    14e0 <parse+0x320>
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rcx
mov    %rbx,%r8
mov    %rbp,%r9
call   1090 <do_fsize@plt>
jmp    14e0 <parse+0x320>

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

LLVM IR (-O2):
@.str = [5 x i8] c" \09\0A\0D\00"
@.str.1 = [6 x i8] c" \09\0A\0D\22\00"
@.str.3 = [7 x i8] c"config\00"
@.str.4 = [8 x i8] c"include\00"
@.str.5 = [5 x i8] c"echo\00"
@.str.6 = [6 x i8] c"fsize\00"
@.str.7 = [9 x i8] c"flastmod\00"
@.str.8 = [1 x i8] zeroinitializer
define void @parse(i8* %0, i8* %1, i32* %2, i8* %3) {
%5 = alloca [200 x i8*]
%6 = bitcast [200 x i8*]* %5 to i8*
%7 = tail call i32 @strspn(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, i8* %3, i64 %8
%10 = tail call i8* @strpbrk(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i8* %10, null
br i1 %11, label %41, label %12
12: ; preds = %4, %37
%13 = phi i8* [ %39, %37 ], [ %10, %4 ]
%14 = phi i32 [ %38, %37 ], [ 0, %4 ]
%15 = load i8, i8* %13
%16 = icmp eq i8 %15, 34
br i1 %16, label %17, label %23
17: ; preds = %12
%18 = getelementptr inbounds i8, i8* %13, i64 1
%19 = tail call i8* bitcast (i8* (i8*, i8)* @strchr to i8* (i8*, i32)*)(i8* %18, i32 34)
%20 = getelementptr inbounds i8, i8* %19, i64 1
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 0
br i1 %22, label %41, label %23
23: ; preds = %17, %12
%24 = phi i8* [ %20, %17 ], [ %13, %12 ]
%25 = getelementptr inbounds i8, i8* %24, i64 1
store i8 0, i8* %24
%26 = tail call i32 @strspn(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, i8* %25, i64 %27
%29 = load i8, i8* %28
%30 = icmp eq i8 %29, 0
br i1 %30, label %41, label %31
31: ; preds = %23
%32 = icmp ult i32 %14, 200
br i1 %32, label %33, label %37
33: ; preds = %31
%34 = zext i32 %14 to i64
%35 = add nuw nsw i32 %14, 1
%36 = getelementptr inbounds [200 x i8*], [200 x i8*]* %5, i64 0, i64 %34
store i8* %28, i8** %36
br label %37
37: ; preds = %33, %31
%38 = phi i32 [ %35, %33 ], [ %14, %31 ]
%39 = tail call i8* @strpbrk(i8* %28, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%40 = icmp eq i8* %39, null
br i1 %40, label %41, label %12
41: ; preds = %37, %17, %23, %4
%42 = phi i32 [ 0, %4 ], [ %14, %23 ], [ %14, %17 ], [ %38, %37 ]
%43 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %59, label %45
45: ; preds = %41
%46 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %59, label %48
48: ; preds = %45
%49 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %59, label %51
51: ; preds = %48
%52 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %59, label %54
54: ; preds = %51
%55 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %54
%58 = tail call i32 @unknown_directive(i8* %1, i8* %9)
br label %142
59: ; preds = %54, %51, %48, %45, %41
%60 = phi i32 [ 0, %41 ], [ 1, %45 ], [ 2, %48 ], [ 3, %51 ], [ 4, %54 ]
%61 = icmp sgt i32 %42, 0
br i1 %61, label %62, label %142
62: ; preds = %59
%63 = zext i32 %42 to i64
%64 = getelementptr inbounds [200 x i8*], [200 x i8*]* %5, i64 0, i64 0
%65 = load i8*, i8** %64
%66 = tail call i8* @strchr(i8* dereferenceable(1) %65, i8 signext 61)
%67 = icmp eq i8* %66, null
br i1 %67, label %70, label %68
68: ; preds = %62
%69 = getelementptr inbounds i8, i8* %66, i64 1
store i8 0, i8* %66
br label %70
70: ; preds = %68, %62
%71 = phi i8* [ %69, %68 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), %62 ]
%72 = load i8, i8* %71
%73 = icmp eq i8 %72, 34
br i1 %73, label %74, label %87
74: ; preds = %70
%75 = tail call i32 @strlen(i8* %71)
%76 = add nsw i32 %75, -1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %71, i64 %77
%79 = load i8, i8* %78
%80 = icmp eq i8 %79, 34
br i1 %80, label %81, label %87
81: ; preds = %74
%82 = tail call i32 @strlen(i8* %71)
%83 = add nsw i32 %82, -1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %71, i64 %84
store i8 0, i8* %85
%86 = getelementptr inbounds i8, i8* %71, i64 1
br label %87
87: ; preds = %81, %74, %70
%88 = phi i8* [ %86, %81 ], [ %71, %74 ], [ %71, %70 ]
switch i32 %60, label %99 [
i32 0, label %97
i32 1, label %95
i32 2, label %93
i32 3, label %91
i32 4, label %89
]
89: ; preds = %87
%90 = tail call i32 @do_flastmod(i8* %0, i8* %1, i32* %2, i8* %9, i8* %65, i8* %88)
br label %99
91: ; preds = %87
%92 = tail call i32 @do_fsize(i8* %0, i8* %1, i32* %2, i8* %9, i8* %65, i8* %88)
br label %99
93: ; preds = %87
%94 = tail call i32 @do_echo(i8* %0, i8* %1, i32* %2, i8* %9, i8* %65, i8* %88)
br label %99
95: ; preds = %87
%96 = tail call i32 @do_include(i8* %0, i8* %1, i32* %2, i8* %9, i8* %65, i8* %88)
br label %99
97: ; preds = %87
%98 = tail call i32 @do_config(i8* %0, i8* %1, i32* %2, i8* %9, i8* %65, i8* %88)
br label %99
99: ; preds = %97, %95, %93, %91, %89, %87
%100 = icmp eq i32 %42, 1
br i1 %100, label %142, label %101
101: ; preds = %99, %139
%102 = phi i64 [ %140, %139 ], [ 1, %99 ]
%103 = tail call i32 @putchar(i8 signext 32)
%104 = getelementptr inbounds [200 x i8*], [200 x i8*]* %5, i64 0, i64 %102
%105 = load i8*, i8** %104
%106 = tail call i8* @strchr(i8* dereferenceable(1) %105, i8 signext 61)
%107 = icmp eq i8* %106, null
br i1 %107, label %110, label %108
108: ; preds = %101
%109 = getelementptr inbounds i8, i8* %106, i64 1
store i8 0, i8* %106
br label %110
110: ; preds = %101, %108
%111 = phi i8* [ %109, %108 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), %101 ]
%112 = load i8, i8* %111
%113 = icmp eq i8 %112, 34
br i1 %113, label %114, label %127
114: ; preds = %110
%115 = tail call i32 @strlen(i8* %111)
%116 = add nsw i32 %115, -1
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, i8* %111, i64 %117
%119 = load i8, i8* %118
%120 = icmp eq i8 %119, 34
br i1 %120, label %121, label %127
121: ; preds = %114
%122 = tail call i32 @strlen(i8* %111)
%123 = add nsw i32 %122, -1
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, i8* %111, i64 %124
store i8 0, i8* %125
%126 = getelementptr inbounds i8, i8* %111, i64 1
br label %127
127: ; preds = %121, %114, %110
%128 = phi i8* [ %126, %121 ], [ %111, %114 ], [ %111, %110 ]
switch i32 %60, label %139 [
i32 0, label %129
i32 1, label %131
i32 2, label %133
i32 3, label %135
i32 4, label %137
]
129: ; preds = %127
%130 = tail call i32 @do_config(i8* %0, i8* %1, i32* %2, i8* %9, i8* %105, i8* %128)
br label %139
131: ; preds = %127
%132 = tail call i32 @do_include(i8* %0, i8* %1, i32* %2, i8* %9, i8* %105, i8* %128)
br label %139
133: ; preds = %127
%134 = tail call i32 @do_echo(i8* %0, i8* %1, i32* %2, i8* %9, i8* %105, i8* %128)
br label %139
135: ; preds = %127
%136 = tail call i32 @do_fsize(i8* %0, i8* %1, i32* %2, i8* %9, i8* %105, i8* %128)
br label %139
137: ; preds = %127
%138 = tail call i32 @do_flastmod(i8* %0, i8* %1, i32* %2, i8* %9, i8* %105, i8* %128)
br label %139
139: ; preds = %129, %131, %133, %135, %137, %127
%140 = add nuw nsw i64 %102, 1
%141 = icmp eq i64 %140, %63
br i1 %141, label %142, label %101
142: ; preds = %139, %99, %59, %57
ret void
}