int word_split(the_line, the_array, the_buffer)
char *the_line, *the_buffer;
char **the_array;
{
  int wordnr, inside_quotes;
  register char *line_cp, *buffer_cp;
  line_cp = the_line;
  buffer_cp = the_buffer;
  wordnr = 0;
  inside_quotes = 0;
  while (*line_cp) {
    while (*line_cp && isspace(*line_cp))
      ++line_cp;
    if (!*line_cp)
      return wordnr;
    else if (inside_quotes)
      error("This cannot happen: a word started inside a string: %s", line_cp);
    else if (*line_cp == '$') {
      ++line_cp;
      if (*line_cp == 'n') {
        return -line_split(the_line, the_array, the_buffer);
      } else if (*line_cp == '\0') {
        message("Malformed line: Tried to quote newline (last char on line was "
                "$).");
        return 0;
      } else {
        the_array[wordnr++] = buffer_cp;
        *buffer_cp++ = *line_cp++;
      }
    } else if (*line_cp == '"') {
      inside_quotes = 1;
      ++line_cp;
      the_array[wordnr++] = buffer_cp;
    } else {
      the_array[wordnr++] = buffer_cp;
    }
    while (*line_cp && *line_cp != '"' &&
           (inside_quotes || !isspace(*line_cp))) {
      if (*line_cp == '$') {
        ++line_cp;
        if (*line_cp == 'n' && !inside_quotes) {
          return line_split(the_line, the_array, the_buffer);
        } else if (*line_cp == '\0') {
          message("Malformed line: Tried to quote newline (last char on line "
                  "was $).");
          return 0;
        } else if (*line_cp == '"') {
          *buffer_cp++ = *line_cp++;
        } else {
          if (inside_quotes) {
            *buffer_cp++ = '$';
            *buffer_cp++ = *line_cp++;
          } else
            *buffer_cp++ = *line_cp++;
        }
      } else {
        *buffer_cp++ = *line_cp++;
      }
    }
    if (!*line_cp && inside_quotes) {
      message("Malformed line: String does not end (mismatched \" on input "
              "line: %s).",
              the_line);
      return 0;
    } else if (*line_cp == '"') {
      inside_quotes = 0;
      ++line_cp;
    }
    *buffer_cp++ = '\0';
  }
  if (inside_quotes)
    error("Ooops: Take care of this, Padrone!");
  return wordnr;
}


x86 assembly (clang, -O0):
<word_split>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x30(%rbp),%rax
cmpb   $0x0,(%rax)
je     1561 <word_split+0x421>
jmp    1184 <word_split+0x44>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x39(%rbp)
je     11ae <word_split+0x6e>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isspace@plt>
cmp    $0x0,%eax
setne  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    11be <word_split+0x7e>
jmp    11cf <word_split+0x8f>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1184 <word_split+0x44>
mov    -0x30(%rbp),%rax
cmpb   $0x0,(%rax)
jne    11e7 <word_split+0xa7>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    157f <word_split+0x43f>
cmpl   $0x0,-0x28(%rbp)
je     1208 <word_split+0xc8>
mov    -0x30(%rbp),%rsi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1050 <error@plt>
jmp    132b <word_split+0x1eb>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x24,%eax
jne    12c5 <word_split+0x185>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x6e,%eax
jne    1255 <word_split+0x115>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1060 <line_split@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    157f <word_split+0x43f>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    127f <word_split+0x13f>
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1030 <message@plt>
movl   $0x0,-0x4(%rbp)
jmp    157f <word_split+0x43f>
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x24(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
mov    %cl,(%rax)
jmp    12c0 <word_split+0x180>
jmp    1326 <word_split+0x1e6>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1307 <word_split+0x1c7>
movl   $0x1,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x24(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    1321 <word_split+0x1e1>
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x24(%rbp)
movslq %ecx,%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    1326 <word_split+0x1e6>
jmp    132b <word_split+0x1eb>
jmp    1330 <word_split+0x1f0>
jmp    1335 <word_split+0x1f5>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x3a(%rbp)
je     138b <word_split+0x24b>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x3a(%rbp)
je     138b <word_split+0x24b>
mov    $0x1,%al
cmpl   $0x0,-0x28(%rbp)
mov    %al,-0x3b(%rbp)
jne    1385 <word_split+0x245>
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isspace@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x3b(%rbp)
mov    -0x3b(%rbp),%al
mov    %al,-0x3a(%rbp)
mov    -0x3a(%rbp),%al
test   $0x1,%al
jne    139b <word_split+0x25b>
jmp    14ed <word_split+0x3ad>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x24,%eax
jne    14c6 <word_split+0x386>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x6e,%eax
jne    13ec <word_split+0x2ac>
cmpl   $0x0,-0x28(%rbp)
jne    13ec <word_split+0x2ac>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1060 <line_split@plt>
mov    %eax,-0x4(%rbp)
jmp    157f <word_split+0x43f>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1416 <word_split+0x2d6>
lea    0xc34(%rip),%rdi
mov    $0x0,%al
call   1030 <message@plt>
movl   $0x0,-0x4(%rbp)
jmp    157f <word_split+0x43f>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    144d <word_split+0x30d>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
mov    %cl,(%rax)
jmp    14b7 <word_split+0x377>
cmpl   $0x0,-0x28(%rbp)
je     1490 <word_split+0x350>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
movb   $0x24,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
mov    %cl,(%rax)
jmp    14b2 <word_split+0x372>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
mov    %cl,(%rax)
jmp    14b7 <word_split+0x377>
jmp    14bc <word_split+0x37c>
jmp    14c1 <word_split+0x381>
jmp    14e8 <word_split+0x3a8>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x38(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
mov    %cl,(%rax)
jmp    1335 <word_split+0x1f5>
mov    -0x30(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1522 <word_split+0x3e2>
cmpl   $0x0,-0x28(%rbp)
je     1522 <word_split+0x3e2>
mov    -0x10(%rbp),%rsi
lea    0xb6a(%rip),%rdi
mov    $0x0,%al
call   1030 <message@plt>
movl   $0x0,-0x4(%rbp)
jmp    157f <word_split+0x43f>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1545 <word_split+0x405>
movl   $0x0,-0x28(%rbp)
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    154a <word_split+0x40a>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x38(%rbp)
movb   $0x0,(%rax)
jmp    1172 <word_split+0x32>
cmpl   $0x0,-0x28(%rbp)
je     1579 <word_split+0x439>
lea    0xb4d(%rip),%rdi
mov    $0x0,%al
call   1050 <error@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<word_split>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    (%rdi),%bl
test   %bl,%bl
je     133e <word_split+0x1fe>
mov    %rsi,%r15
mov    %rdx,0x18(%rsp)
mov    %rdx,%r14
mov    %rdi,0x10(%rsp)
mov    %rdi,%rbp
xor    %r13d,%r13d
xor    %r12d,%r12d
add    $0x1,%rbp
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %bl,%edi
call   1040 <isspace@plt>
test   %eax,%eax
je     11a0 <word_split+0x60>
movzbl 0x0(%rbp),%ebx
add    $0x1,%rbp
test   %bl,%bl
jne    1180 <word_split+0x40>
jmp    1341 <word_split+0x201>
nopl   (%rax)
mov    %r15,%rsi
lea    -0x1(%rbp),%r15
test   %r13d,%r13d
mov    %rsi,0x20(%rsp)
je     11d4 <word_split+0x94>
mov    %r12d,0xc(%rsp)
lea    0xe43(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <error@plt>
mov    $0x1,%ebx
mov    $0x1,%r13b
jmp    125a <word_split+0x11a>
cmp    $0x22,%bl
je     1219 <word_split+0xd9>
cmp    $0x24,%bl
jne    1236 <word_split+0xf6>
mov    0x0(%rbp),%al
test   %al,%al
je     1377 <word_split+0x237>
cmp    $0x6e,%al
je     13a2 <word_split+0x262>
movslq %r12d,%rax
add    $0x1,%r12d
mov    %r12d,0xc(%rsp)
mov    %r14,(%rsi,%rax,8)
mov    0x0(%rbp),%al
add    $0x1,%rbp
mov    %al,(%r14)
add    $0x1,%r14
xor    %r13d,%r13d
xor    %ebx,%ebx
mov    %rbp,%r15
jmp    125a <word_split+0x11a>
movslq %r12d,%rax
add    $0x1,%r12d
mov    %r12d,0xc(%rsp)
mov    %r14,(%rsi,%rax,8)
mov    $0x1,%ebx
mov    $0x1,%r13b
mov    %rbp,%r15
jmp    125a <word_split+0x11a>
movslq %r12d,%rax
add    $0x1,%r12d
mov    %r12d,0xc(%rsp)
mov    %r14,(%rsi,%rax,8)
xor    %r13d,%r13d
xor    %ebx,%ebx
jmp    125a <word_split+0x11a>
nopl   (%rax)
mov    %r12b,(%r14)
add    $0x1,%r14
mov    %rax,%r15
movsbl (%r15),%r12d
test   %r12d,%r12d
je     12e0 <word_split+0x1a0>
cmp    $0x22,%r12b
je     12e0 <word_split+0x1a0>
test   %r13b,%r13b
jne    127a <word_split+0x13a>
mov    %r12d,%edi
call   1040 <isspace@plt>
test   %eax,%eax
jne    12f3 <word_split+0x1b3>
lea    0x1(%r15),%rax
cmp    $0x24,%r12b
jne    1250 <word_split+0x110>
movzbl (%rax),%eax
cmp    $0x6e,%al
setne  %cl
or     %r13b,%cl
je     1353 <word_split+0x213>
cmp    $0x22,%al
je     12c0 <word_split+0x180>
test   %al,%al
je     1377 <word_split+0x237>
test   %r13b,%r13b
je     12ce <word_split+0x18e>
movb   $0x24,(%r14)
movzbl 0x1(%r15),%eax
add    $0x2,%r15
mov    %al,0x1(%r14)
add    $0x2,%r14
jmp    125a <word_split+0x11a>
nopl   (%rax)
add    $0x2,%r15
movb   $0x22,(%r14)
add    $0x1,%r14
jmp    125a <word_split+0x11a>
add    $0x2,%r15
mov    %al,(%r14)
add    $0x1,%r14
jmp    125a <word_split+0x11a>
xchg   %ax,%ax
test   %r12b,%r12b
setne  %al
xor    $0x1,%r13b
or     %al,%r13b
je     138a <word_split+0x24a>
xor    %eax,%eax
cmp    $0x22,%r12b
sete   %al
mov    $0x0,%ecx
cmove  %ecx,%ebx
mov    %ebx,%r13d
lea    (%r15,%rax,1),%rbp
movb   $0x0,(%r14)
add    $0x1,%r14
mov    (%r15,%rax,1),%bl
test   %bl,%bl
mov    0xc(%rsp),%r12d
mov    0x20(%rsp),%r15
jne    1171 <word_split+0x31>
test   %r13d,%r13d
je     1341 <word_split+0x201>
lea    0xd8a(%rip),%rdi
xor    %eax,%eax
call   1050 <error@plt>
jmp    1341 <word_split+0x201>
xor    %r12d,%r12d
mov    %r12d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x18(%rsp),%rdx
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <line_split@plt>
lea    0xcb9(%rip),%rdi
xor    %r12d,%r12d
xor    %eax,%eax
call   1030 <message@plt>
jmp    1341 <word_split+0x201>
lea    0xce8(%rip),%rdi
xor    %r12d,%r12d
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1030 <message@plt>
jmp    1341 <word_split+0x201>
mov    0x10(%rsp),%rdi
mov    0x18(%rsp),%rdx
xor    %eax,%eax
call   1060 <line_split@plt>
mov    %eax,%r12d
neg    %r12d
jmp    1341 <word_split+0x201>

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

LLVM IR (-O2):
@.str = [55 x i8] c"This cannot happen: a word started inside a string: %s\00"
@.str.1 = [66 x i8] c"Malformed line: Tried to quote newline (last char on line was $).\00"
@.str.2 = [70 x i8] c"Malformed line: String does not end (mismatched \22 on input line: %s).\00"
@.str.3 = [35 x i8] c"Ooops: Take care of this, Padrone!\00"
define i32 @word_split(i8* %0, i8** %1, i8* %2) {
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %112, label %6
6: ; preds = %3, %100
%7 = phi i8 [ %106, %100 ], [ %4, %3 ]
%8 = phi i8* [ %105, %100 ], [ %2, %3 ]
%9 = phi i8* [ %104, %100 ], [ %0, %3 ]
%10 = phi i32 [ %102, %100 ], [ 0, %3 ]
%11 = phi i32 [ %52, %100 ], [ 0, %3 ]
br label %12
12: ; preds = %6, %18
%13 = phi i8* [ %9, %6 ], [ %19, %18 ]
%14 = phi i8 [ %7, %6 ], [ %20, %18 ]
%15 = sext i8 %14 to i32
%16 = tail call i32 @isspace(i32 %15)
%17 = icmp eq i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %12
%19 = getelementptr inbounds i8, i8* %13, i64 1
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 0
br i1 %21, label %112, label %12
22: ; preds = %12
%23 = icmp eq i32 %10, 0
br i1 %23, label %26, label %24
24: ; preds = %22
%25 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i8* %13)
br label %51
26: ; preds = %22
switch i8 %14, label %47 [
i8 36, label %27
i8 34, label %42
]
27: ; preds = %26
%28 = getelementptr inbounds i8, i8* %13, i64 1
%29 = load i8, i8* %28
switch i8 %29, label %35 [
i8 110, label %30
i8 0, label %33
]
30: ; preds = %27
%31 = tail call i32 (i8*, i8**, i8*, ...) bitcast (i32 (...)* @line_split to i32 (i8*, i8**, i8*, ...)*)(i8* %0, i8** %1, i8* %2)
%32 = sub nsw i32 0, %31
br label %112
33: ; preds = %27
%34 = tail call i32 (i8*, ...) bitcast (i32 (...)* @message to i32 (i8*, ...)*)(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
br label %112
35: ; preds = %27
%36 = add nsw i32 %11, 1
%37 = sext i32 %11 to i64
%38 = getelementptr inbounds i8*, i8** %1, i64 %37
store i8* %8, i8** %38
%39 = getelementptr inbounds i8, i8* %13, i64 2
%40 = load i8, i8* %28
%41 = getelementptr inbounds i8, i8* %8, i64 1
store i8 %40, i8* %8
br label %51
42: ; preds = %26
%43 = getelementptr inbounds i8, i8* %13, i64 1
%44 = add nsw i32 %11, 1
%45 = sext i32 %11 to i64
%46 = getelementptr inbounds i8*, i8** %1, i64 %45
store i8* %8, i8** %46
br label %51
47: ; preds = %26
%48 = add nsw i32 %11, 1
%49 = sext i32 %11 to i64
%50 = getelementptr inbounds i8*, i8** %1, i64 %49
store i8* %8, i8** %50
br label %51
51: ; preds = %24, %42, %47, %35
%52 = phi i32 [ %11, %24 ], [ %36, %35 ], [ %44, %42 ], [ %48, %47 ]
%53 = phi i1 [ true, %24 ], [ false, %35 ], [ true, %42 ], [ false, %47 ]
%54 = phi i32 [ 1, %24 ], [ 0, %35 ], [ 1, %42 ], [ 0, %47 ]
%55 = phi i8* [ %13, %24 ], [ %39, %35 ], [ %43, %42 ], [ %13, %47 ]
%56 = phi i8* [ %8, %24 ], [ %41, %35 ], [ %8, %42 ], [ %8, %47 ]
br label %57
57: ; preds = %81, %51
%58 = phi i8* [ %55, %51 ], [ %82, %81 ]
%59 = phi i8* [ %56, %51 ], [ %83, %81 ]
%60 = load i8, i8* %58
%61 = sext i8 %60 to i32
switch i8 %60, label %62 [
i8 0, label %95
i8 34, label %95
]
62: ; preds = %57
br i1 %53, label %66, label %63
63: ; preds = %62
%64 = tail call i32 @isspace(i32 %61)
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %100
66: ; preds = %62, %63
%67 = icmp eq i8 %60, 36
%68 = getelementptr inbounds i8, i8* %58, i64 1
br i1 %67, label %69, label %93
69: ; preds = %66
%70 = load i8, i8* %68
%71 = icmp ne i8 %70, 110
%72 = or i1 %53, %71
br i1 %72, label %75, label %73
73: ; preds = %69
%74 = tail call i32 (i8*, i8**, i8*, ...) bitcast (i32 (...)* @line_split to i32 (i8*, i8**, i8*, ...)*)(i8* %0, i8** %1, i8* %2)
br label %112
75: ; preds = %69
switch i8 %70, label %84 [
i8 0, label %76
i8 34, label %78
]
76: ; preds = %75
%77 = tail call i32 (i8*, ...) bitcast (i32 (...)* @message to i32 (i8*, ...)*)(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
br label %112
78: ; preds = %75
%79 = getelementptr inbounds i8, i8* %58, i64 2
%80 = getelementptr inbounds i8, i8* %59, i64 1
store i8 34, i8* %59
br label %81
81: ; preds = %78, %90, %85, %93
%82 = phi i8* [ %79, %78 ], [ %87, %85 ], [ %91, %90 ], [ %68, %93 ]
%83 = phi i8* [ %80, %78 ], [ %89, %85 ], [ %92, %90 ], [ %94, %93 ]
br label %57
84: ; preds = %75
br i1 %53, label %85, label %90
85: ; preds = %84
%86 = getelementptr inbounds i8, i8* %59, i64 1
store i8 36, i8* %59
%87 = getelementptr inbounds i8, i8* %58, i64 2
%88 = load i8, i8* %68
%89 = getelementptr inbounds i8, i8* %59, i64 2
store i8 %88, i8* %86
br label %81
90: ; preds = %84
%91 = getelementptr inbounds i8, i8* %58, i64 2
%92 = getelementptr inbounds i8, i8* %59, i64 1
store i8 %70, i8* %59
br label %81
93: ; preds = %66
%94 = getelementptr inbounds i8, i8* %59, i64 1
store i8 %60, i8* %59
br label %81
95: ; preds = %57, %57
%96 = icmp eq i8 %60, 0
%97 = and i1 %53, %96
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @message to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %112
100: ; preds = %63, %95
%101 = icmp eq i8 %60, 34
%102 = select i1 %101, i32 0, i32 %54
%103 = zext i1 %101 to i64
%104 = getelementptr i8, i8* %58, i64 %103
%105 = getelementptr inbounds i8, i8* %59, i64 1
store i8 0, i8* %59
%106 = load i8, i8* %104
%107 = icmp eq i8 %106, 0
br i1 %107, label %108, label %6
108: ; preds = %100
%109 = icmp eq i32 %102, 0
br i1 %109, label %112, label %110
110: ; preds = %108
%111 = tail call i32 (i8*, ...) bitcast (i32 (...)* @error to i32 (i8*, ...)*)(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
br label %112
112: ; preds = %18, %3, %108, %110, %98, %76, %73, %33, %30
%113 = phi i32 [ 0, %76 ], [ %74, %73 ], [ 0, %98 ], [ %32, %30 ], [ 0, %33 ], [ %52, %110 ], [ %52, %108 ], [ 0, %3 ], [ %11, %18 ]
ret i32 %113
}