#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*/ ErrorX(char *);
int /*<<< orphan*/ strcmp(char *, char *);
size_t strlen(char *);
int strtol(char *, char **, int);
char toupper(char);
void ParseLine(char *s, int *token, int *value) {
  size_t i, len = strlen(s);
  char *s1;
  *token = 99;
  *value = 0;
  for (i = 0; i < len; i++) {
    s[i] = toupper(s[i]);
    if (s[i] == ' ' || s[i] == 9) {
      s[i] = 0;
      if (!strcmp(s, "FONTTYPE"))
        *token = 0;
      if (!strcmp(s, "MAXWIDTH"))
        *token = 3;
      if (!strcmp(s, "KERNMAX"))
        *token = 4;
      if (!strcmp(s, "NDESCENT"))
        *token = 5;
      if (!strcmp(s, "FRECTWIDTH"))
        *token = 6;
      if (!strcmp(s, "FRECTHEIGHT"))
        *token = 7;
      if (!strcmp(s, "ASCENT"))
        *token = 9;
      if (!strcmp(s, "DESCENT"))
        *token = 10;
      if (!strcmp(s, "LEADING"))
        *token = 11;
      if (!strcmp(s, "FIRSTCHAR"))
        *token = 1;
      if (!strcmp(s, "LASTCHAR"))
        *token = 2;
      if (!strcmp(s, "GLYPH"))
        *token = 20;
      if (!strcmp(s, "OFFSET"))
        *token = 21;
      if (!strcmp(s, "WIDTH"))
        *token = 22;
      if (*token == 99)
        ErrorX("Invalid Token");
      break;
    }
  }
  if (*token != 99) {
    i++;
    if ((len - i) == 3 && s[i] == 39 && s[i + 2] == 39)
      *value = s[i + 1];
    else {
      *value = strtol(s + i, &s1, 10);
      if (s1[0] != 0)
        ErrorX("Invalid Value");
    }
  }
}


x86 assembly (clang, -O0):
<ParseLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x63,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    140d <ParseLine+0x2bd>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <toupper@plt>
mov    %al,%dl
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
je     11e3 <ParseLine+0x93>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x9,%eax
jne    13f7 <ParseLine+0x2a7>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1212 <ParseLine+0xc2>
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xdec(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1235 <ParseLine+0xe5>
mov    -0x10(%rbp),%rax
movl   $0x3,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xdd2(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1258 <ParseLine+0x108>
mov    -0x10(%rbp),%rax
movl   $0x4,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xdb7(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    127b <ParseLine+0x12b>
mov    -0x10(%rbp),%rax
movl   $0x5,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xd9d(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    129e <ParseLine+0x14e>
mov    -0x10(%rbp),%rax
movl   $0x6,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xd85(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12c1 <ParseLine+0x171>
mov    -0x10(%rbp),%rax
movl   $0x7,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xd6e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12e4 <ParseLine+0x194>
mov    -0x10(%rbp),%rax
movl   $0x9,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xd2c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1307 <ParseLine+0x1b7>
mov    -0x10(%rbp),%rax
movl   $0xa,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xd2f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    132a <ParseLine+0x1da>
mov    -0x10(%rbp),%rax
movl   $0xb,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xd14(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    134d <ParseLine+0x1fd>
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xcfb(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1370 <ParseLine+0x220>
mov    -0x10(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xce1(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1393 <ParseLine+0x243>
mov    -0x10(%rbp),%rax
movl   $0x14,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xcc4(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13b6 <ParseLine+0x266>
mov    -0x10(%rbp),%rax
movl   $0x15,(%rax)
mov    -0x8(%rbp),%rdi
lea    0xc67(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    13d9 <ParseLine+0x289>
mov    -0x10(%rbp),%rax
movl   $0x16,(%rax)
mov    -0x10(%rbp),%rax
cmpl   $0x63,(%rax)
jne    13f2 <ParseLine+0x2a2>
lea    0xc7c(%rip),%rdi
call   1040 <ErrorX@plt>
jmp    140d <ParseLine+0x2bd>
jmp    13fc <ParseLine+0x2ac>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    118d <ParseLine+0x3d>
mov    -0x10(%rbp),%rax
cmpl   $0x63,(%rax)
je     14bf <ParseLine+0x36f>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
sub    -0x20(%rbp),%rax
cmp    $0x3,%rax
jne    147b <ParseLine+0x32b>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x27,%eax
jne    147b <ParseLine+0x32b>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl 0x2(%rax,%rcx,1),%eax
cmp    $0x27,%eax
jne    147b <ParseLine+0x32b>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl 0x1(%rax,%rcx,1),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    14ba <ParseLine+0x36a>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0xa,%edx
call   1070 <strtol@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     14b5 <ParseLine+0x365>
lea    0xbc7(%rip),%rdi
call   1040 <ErrorX@plt>
jmp    14ba <ParseLine+0x36a>
jmp    14bf <ParseLine+0x36f>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ParseLine>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r14
mov    %rsi,%r12
mov    %rdi,%r13
call   1050 <strlen@plt>
mov    %rax,%r15
movl   $0x63,(%r12)
movl   $0x0,(%r14)
xor    %ebx,%ebx
test   %rax,%rax
je     11b4 <ParseLine+0x64>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl 0x0(%r13,%rbx,1),%edi
call   1030 <toupper@plt>
mov    %al,0x0(%r13,%rbx,1)
cmp    $0x20,%al
je     11c4 <ParseLine+0x74>
cmp    $0x9,%al
je     11c4 <ParseLine+0x74>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1190 <ParseLine+0x40>
mov    %r15,%rbx
cmpl   $0x63,(%r12)
jne    1360 <ParseLine+0x210>
jmp    13c3 <ParseLine+0x273>
movb   $0x0,0x0(%r13,%rbx,1)
lea    0xe2f(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    11e5 <ParseLine+0x95>
movl   $0x0,(%r12)
lea    0xe1d(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1200 <ParseLine+0xb0>
movl   $0x3,(%r12)
lea    0xe0b(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    121b <ParseLine+0xcb>
movl   $0x4,(%r12)
lea    0xdf8(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1236 <ParseLine+0xe6>
movl   $0x5,(%r12)
lea    0xde6(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1251 <ParseLine+0x101>
movl   $0x6,(%r12)
lea    0xdd6(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    126c <ParseLine+0x11c>
movl   $0x7,(%r12)
lea    0xdc7(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1287 <ParseLine+0x137>
movl   $0x9,(%r12)
lea    0xd8d(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    12a2 <ParseLine+0x152>
movl   $0xa,(%r12)
lea    0xd98(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    12bd <ParseLine+0x16d>
movl   $0xb,(%r12)
lea    0xd85(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    12d8 <ParseLine+0x188>
movl   $0x1,(%r12)
lea    0xd74(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    12f3 <ParseLine+0x1a3>
movl   $0x2,(%r12)
lea    0xd62(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    130e <ParseLine+0x1be>
movl   $0x14,(%r12)
lea    0xd4d(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    1329 <ParseLine+0x1d9>
movl   $0x15,(%r12)
lea    0xcf8(%rip),%rsi
mov    %r13,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     1358 <ParseLine+0x208>
cmpl   $0x63,(%r12)
jne    1360 <ParseLine+0x210>
lea    0xd1f(%rip),%rdi
call   1040 <ErrorX@plt>
cmpl   $0x63,(%r12)
jne    1360 <ParseLine+0x210>
jmp    13c3 <ParseLine+0x273>
movl   $0x16,(%r12)
lea    0x1(%rbx),%rax
sub    %rax,%r15
cmp    $0x3,%r15
jne    1388 <ParseLine+0x238>
cmpb   $0x27,0x0(%r13,%rax,1)
jne    1388 <ParseLine+0x238>
cmpb   $0x27,0x3(%rbx,%r13,1)
jne    1388 <ParseLine+0x238>
movsbl 0x2(%rbx,%r13,1),%eax
mov    %eax,(%r14)
jmp    13c3 <ParseLine+0x273>
add    %rax,%r13
lea    0x8(%rsp),%rsi
mov    %r13,%rdi
mov    $0xa,%edx
call   1070 <strtol@plt>
mov    %eax,(%r14)
mov    0x8(%rsp),%rax
cmpb   $0x0,(%rax)
je     13c3 <ParseLine+0x273>
lea    0xcc6(%rip),%rdi
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <ErrorX@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [9 x i8] c"FONTTYPE\00"
@.str.1 = [9 x i8] c"MAXWIDTH\00"
@.str.2 = [8 x i8] c"KERNMAX\00"
@.str.3 = [9 x i8] c"NDESCENT\00"
@.str.4 = [11 x i8] c"FRECTWIDTH\00"
@.str.5 = [12 x i8] c"FRECTHEIGHT\00"
@.str.6 = [7 x i8] c"ASCENT\00"
@.str.7 = [8 x i8] c"DESCENT\00"
@.str.8 = [8 x i8] c"LEADING\00"
@.str.9 = [10 x i8] c"FIRSTCHAR\00"
@.str.10 = [9 x i8] c"LASTCHAR\00"
@.str.11 = [6 x i8] c"GLYPH\00"
@.str.12 = [7 x i8] c"OFFSET\00"
@.str.13 = [6 x i8] c"WIDTH\00"
@.str.14 = [14 x i8] c"Invalid Token\00"
@.str.15 = [14 x i8] c"Invalid Value\00"
define void @ParseLine(i8* %0, i32* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i64
%8 = alloca i64
%9 = alloca i8*
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%10 = load i8*, i8** %4
%11 = call i64 @strlen(i8* %10)
store i64 %11, i64* %8
%12 = load i32*, i32** %5
store i32 99, i32* %12
%13 = load i32*, i32** %6
store i32 0, i32* %13
store i64 0, i64* %7
br label %14
14: ; preds = %135, %3
%15 = load i64, i64* %7
%16 = load i64, i64* %8
%17 = icmp ult i64 %15, %16
br i1 %17, label %18, label %138
18: ; preds = %14
%19 = load i8*, i8** %4
%20 = load i64, i64* %7
%21 = getelementptr inbounds i8, i8* %19, i64 %20
%22 = load i8, i8* %21
%23 = call signext i8 @toupper(i8 signext %22)
%24 = load i8*, i8** %4
%25 = load i64, i64* %7
%26 = getelementptr inbounds i8, i8* %24, i64 %25
store i8 %23, i8* %26
%27 = load i8*, i8** %4
%28 = load i64, i64* %7
%29 = getelementptr inbounds i8, i8* %27, i64 %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 32
br i1 %32, label %40, label %33
33: ; preds = %18
%34 = load i8*, i8** %4
%35 = load i64, i64* %7
%36 = getelementptr inbounds i8, i8* %34, i64 %35
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 9
br i1 %39, label %40, label %134
40: ; preds = %33, %18
%41 = load i8*, i8** %4
%42 = load i64, i64* %7
%43 = getelementptr inbounds i8, i8* %41, i64 %42
store i8 0, i8* %43
%44 = load i8*, i8** %4
%45 = call i32 @strcmp(i8* %44, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%46 = icmp ne i32 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %40
%48 = load i32*, i32** %5
store i32 0, i32* %48
br label %49
49: ; preds = %47, %40
%50 = load i8*, i8** %4
%51 = call i32 @strcmp(i8* %50, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%52 = icmp ne i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %49
%54 = load i32*, i32** %5
store i32 3, i32* %54
br label %55
55: ; preds = %53, %49
%56 = load i8*, i8** %4
%57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %55
%60 = load i32*, i32** %5
store i32 4, i32* %60
br label %61
61: ; preds = %59, %55
%62 = load i8*, i8** %4
%63 = call i32 @strcmp(i8* %62, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%64 = icmp ne i32 %63, 0
br i1 %64, label %67, label %65
65: ; preds = %61
%66 = load i32*, i32** %5
store i32 5, i32* %66
br label %67
67: ; preds = %65, %61
%68 = load i8*, i8** %4
%69 = call i32 @strcmp(i8* %68, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%70 = icmp ne i32 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %67
%72 = load i32*, i32** %5
store i32 6, i32* %72
br label %73
73: ; preds = %71, %67
%74 = load i8*, i8** %4
%75 = call i32 @strcmp(i8* %74, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%76 = icmp ne i32 %75, 0
br i1 %76, label %79, label %77
77: ; preds = %73
%78 = load i32*, i32** %5
store i32 7, i32* %78
br label %79
79: ; preds = %77, %73
%80 = load i8*, i8** %4
%81 = call i32 @strcmp(i8* %80, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%82 = icmp ne i32 %81, 0
br i1 %82, label %85, label %83
83: ; preds = %79
%84 = load i32*, i32** %5
store i32 9, i32* %84
br label %85
85: ; preds = %83, %79
%86 = load i8*, i8** %4
%87 = call i32 @strcmp(i8* %86, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%88 = icmp ne i32 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %85
%90 = load i32*, i32** %5
store i32 10, i32* %90
br label %91
91: ; preds = %89, %85
%92 = load i8*, i8** %4
%93 = call i32 @strcmp(i8* %92, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%94 = icmp ne i32 %93, 0
br i1 %94, label %97, label %95
95: ; preds = %91
%96 = load i32*, i32** %5
store i32 11, i32* %96
br label %97
97: ; preds = %95, %91
%98 = load i8*, i8** %4
%99 = call i32 @strcmp(i8* %98, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%100 = icmp ne i32 %99, 0
br i1 %100, label %103, label %101
101: ; preds = %97
%102 = load i32*, i32** %5
store i32 1, i32* %102
br label %103
103: ; preds = %101, %97
%104 = load i8*, i8** %4
%105 = call i32 @strcmp(i8* %104, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%106 = icmp ne i32 %105, 0
br i1 %106, label %109, label %107
107: ; preds = %103
%108 = load i32*, i32** %5
store i32 2, i32* %108
br label %109
109: ; preds = %107, %103
%110 = load i8*, i8** %4
%111 = call i32 @strcmp(i8* %110, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%112 = icmp ne i32 %111, 0
br i1 %112, label %115, label %113
113: ; preds = %109
%114 = load i32*, i32** %5
store i32 20, i32* %114
br label %115
115: ; preds = %113, %109
%116 = load i8*, i8** %4
%117 = call i32 @strcmp(i8* %116, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%118 = icmp ne i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %115
%120 = load i32*, i32** %5
store i32 21, i32* %120
br label %121
121: ; preds = %119, %115
%122 = load i8*, i8** %4
%123 = call i32 @strcmp(i8* %122, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%124 = icmp ne i32 %123, 0
br i1 %124, label %127, label %125
125: ; preds = %121
%126 = load i32*, i32** %5
store i32 22, i32* %126
br label %127
127: ; preds = %125, %121
%128 = load i32*, i32** %5
%129 = load i32, i32* %128
%130 = icmp eq i32 %129, 99
br i1 %130, label %131, label %133
131: ; preds = %127
%132 = call i32 @ErrorX(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
br label %133
133: ; preds = %131, %127
br label %138
134: ; preds = %33
br label %135
135: ; preds = %134
%136 = load i64, i64* %7
%137 = add i64 %136, 1
store i64 %137, i64* %7
br label %14
138: ; preds = %133, %14
%139 = load i32*, i32** %5
%140 = load i32, i32* %139
%141 = icmp ne i32 %140, 99
br i1 %141, label %142, label %187
142: ; preds = %138
%143 = load i64, i64* %7
%144 = add i64 %143, 1
store i64 %144, i64* %7
%145 = load i64, i64* %8
%146 = load i64, i64* %7
%147 = sub i64 %145, %146
%148 = icmp eq i64 %147, 3
br i1 %148, label %149, label %172
149: ; preds = %142
%150 = load i8*, i8** %4
%151 = load i64, i64* %7
%152 = getelementptr inbounds i8, i8* %150, i64 %151
%153 = load i8, i8* %152
%154 = sext i8 %153 to i32
%155 = icmp eq i32 %154, 39
br i1 %155, label %156, label %172
156: ; preds = %149
%157 = load i8*, i8** %4
%158 = load i64, i64* %7
%159 = add i64 %158, 2
%160 = getelementptr inbounds i8, i8* %157, i64 %159
%161 = load i8, i8* %160
%162 = sext i8 %161 to i32
%163 = icmp eq i32 %162, 39
br i1 %163, label %164, label %172
164: ; preds = %156
%165 = load i8*, i8** %4
%166 = load i64, i64* %7
%167 = add i64 %166, 1
%168 = getelementptr inbounds i8, i8* %165, i64 %167
%169 = load i8, i8* %168
%170 = sext i8 %169 to i32
%171 = load i32*, i32** %6
store i32 %170, i32* %171
br label %186
172: ; preds = %156, %149, %142
%173 = load i8*, i8** %4
%174 = load i64, i64* %7
%175 = getelementptr inbounds i8, i8* %173, i64 %174
%176 = call i32 @strtol(i8* %175, i8** %9, i32 10)
%177 = load i32*, i32** %6
store i32 %176, i32* %177
%178 = load i8*, i8** %9
%179 = getelementptr inbounds i8, i8* %178, i64 0
%180 = load i8, i8* %179
%181 = sext i8 %180 to i32
%182 = icmp ne i32 %181, 0
br i1 %182, label %183, label %185
183: ; preds = %172
%184 = call i32 @ErrorX(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
br label %185
185: ; preds = %183, %172
br label %186
186: ; preds = %185, %164
br label %187
187: ; preds = %186, %138
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"FONTTYPE\00"
@.str.1 = [9 x i8] c"MAXWIDTH\00"
@.str.2 = [8 x i8] c"KERNMAX\00"
@.str.3 = [9 x i8] c"NDESCENT\00"
@.str.4 = [11 x i8] c"FRECTWIDTH\00"
@.str.5 = [12 x i8] c"FRECTHEIGHT\00"
@.str.6 = [7 x i8] c"ASCENT\00"
@.str.7 = [8 x i8] c"DESCENT\00"
@.str.8 = [8 x i8] c"LEADING\00"
@.str.9 = [10 x i8] c"FIRSTCHAR\00"
@.str.10 = [9 x i8] c"LASTCHAR\00"
@.str.11 = [6 x i8] c"GLYPH\00"
@.str.12 = [7 x i8] c"OFFSET\00"
@.str.13 = [6 x i8] c"WIDTH\00"
@.str.14 = [14 x i8] c"Invalid Token\00"
@.str.15 = [14 x i8] c"Invalid Value\00"
define void @ParseLine(i8* %0, i32* nocapture %1, i32* nocapture writeonly %2) {
%4 = alloca i8*
%5 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%6 = bitcast i8** %4 to i8*
store i32 99, i32* %1
store i32 0, i32* %2
%7 = icmp eq i64 %5, 0
br i1 %7, label %78, label %8
8: ; preds = %3, %75
%9 = phi i64 [ %76, %75 ], [ 0, %3 ]
%10 = getelementptr inbounds i8, i8* %0, i64 %9
%11 = load i8, i8* %10
%12 = tail call signext i8 @toupper(i8 signext %11)
store i8 %12, i8* %10
switch i8 %12, label %75 [
i8 32, label %13
i8 9, label %13
]
13: ; preds = %8, %8
%14 = getelementptr inbounds i8, i8* %0, i64 %9
store i8 0, i8* %14
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 0, i32* %1
br label %18
18: ; preds = %17, %13
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %18
store i32 3, i32* %1
br label %22
22: ; preds = %21, %18
%23 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %22
store i32 4, i32* %1
br label %26
26: ; preds = %25, %22
%27 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %26
store i32 5, i32* %1
br label %30
30: ; preds = %29, %26
%31 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %30
store i32 6, i32* %1
br label %34
34: ; preds = %33, %30
%35 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(12) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
store i32 7, i32* %1
br label %38
38: ; preds = %37, %34
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %38
store i32 9, i32* %1
br label %42
42: ; preds = %41, %38
%43 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %42
store i32 10, i32* %1
br label %46
46: ; preds = %45, %42
%47 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
store i32 11, i32* %1
br label %50
50: ; preds = %49, %46
%51 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %54
53: ; preds = %50
store i32 1, i32* %1
br label %54
54: ; preds = %53, %50
%55 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %54
store i32 2, i32* %1
br label %58
58: ; preds = %57, %54
%59 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %58
store i32 20, i32* %1
br label %62
62: ; preds = %61, %58
%63 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %62
store i32 21, i32* %1
br label %66
66: ; preds = %65, %62
%67 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %66
store i32 22, i32* %1
br label %82
70: ; preds = %66
%71 = load i32, i32* %1
%72 = icmp eq i32 %71, 99
br i1 %72, label %73, label %82
73: ; preds = %70
%74 = tail call i32 @ErrorX(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
br label %78
75: ; preds = %8
%76 = add nuw i64 %9, 1
%77 = icmp eq i64 %76, %5
br i1 %77, label %78, label %8
78: ; preds = %75, %3, %73
%79 = phi i64 [ %9, %73 ], [ 0, %3 ], [ %5, %75 ]
%80 = load i32, i32* %1
%81 = icmp eq i32 %80, 99
br i1 %81, label %109, label %82
82: ; preds = %70, %69, %78
%83 = phi i64 [ %9, %70 ], [ %9, %69 ], [ %79, %78 ]
%84 = add i64 %83, 1
%85 = sub i64 %5, %84
%86 = icmp eq i64 %85, 3
br i1 %86, label %87, label %101
87: ; preds = %82
%88 = getelementptr inbounds i8, i8* %0, i64 %84
%89 = load i8, i8* %88
%90 = icmp eq i8 %89, 39
br i1 %90, label %91, label %101
91: ; preds = %87
%92 = add i64 %83, 3
%93 = getelementptr inbounds i8, i8* %0, i64 %92
%94 = load i8, i8* %93
%95 = icmp eq i8 %94, 39
br i1 %95, label %96, label %101
96: ; preds = %91
%97 = add i64 %83, 2
%98 = getelementptr inbounds i8, i8* %0, i64 %97
%99 = load i8, i8* %98
%100 = sext i8 %99 to i32
store i32 %100, i32* %2
br label %109
101: ; preds = %91, %87, %82
%102 = getelementptr inbounds i8, i8* %0, i64 %84
%103 = call i32 @strtol(i8* %102, i8** %4, i32 10)
store i32 %103, i32* %2
%104 = load i8*, i8** %4
%105 = load i8, i8* %104
%106 = icmp eq i8 %105, 0
br i1 %106, label %109, label %107
107: ; preds = %101
%108 = tail call i32 @ErrorX(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
br label %109
109: ; preds = %96, %107, %101, %78
ret void
}