#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*/ printf(char *);
int /*<<< orphan*/ testAllWhitespace();
int /*<<< orphan*/ testCommentLine();
int /*<<< orphan*/ testConfigLine();
int /*<<< orphan*/ testNotConfigLine();
int /*<<< orphan*/ testParseBool();
int /*<<< orphan*/ testSplitLine0();
int /*<<< orphan*/ testSplitLine1();
int /*<<< orphan*/ testTrimWhitespace0();
int /*<<< orphan*/ testTrimWhitespace1();
int main(int argc, char **argv) {
  int retval = 0;
  printf("testParseBool:\n");
  if (!testParseBool()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testAllWhitespace:\n");
  if (!testAllWhitespace()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testTrimWhitespace0:\n");
  if (!testTrimWhitespace0()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testTrimWhitespace1:\n");
  if (!testTrimWhitespace1()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testCommentLine:\n");
  if (!testCommentLine()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testConfigLine:\n");
  if (!testConfigLine()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testNotConfigLine:\n");
  if (!testNotConfigLine()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testSplitLine0:\n");
  if (!testSplitLine0()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  printf("testSplitLine1:\n");
  if (!testSplitLine1()) {
    printf("\tFAILED\n");
    retval = 1;
  } else {
    printf("\tPASSED\n");
  }
  return retval;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xe3c(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <testParseBool@plt>
cmp    $0x0,%eax
jne    11f1 <main+0x51>
lea    0xe30(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    11fd <main+0x5d>
lea    0xe21(%rip),%rdi
call   1050 <printf@plt>
lea    0xe1e(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10c0 <testAllWhitespace@plt>
cmp    $0x0,%eax
jne    1231 <main+0x91>
lea    0xdf0(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    123d <main+0x9d>
lea    0xde1(%rip),%rdi
call   1050 <printf@plt>
lea    0xdf2(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <testTrimWhitespace0@plt>
cmp    $0x0,%eax
jne    1271 <main+0xd1>
lea    0xdb0(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    127d <main+0xdd>
lea    0xda1(%rip),%rdi
call   1050 <printf@plt>
lea    0xdc8(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10b0 <testTrimWhitespace1@plt>
cmp    $0x0,%eax
jne    12b1 <main+0x111>
lea    0xd70(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    12bd <main+0x11d>
lea    0xd61(%rip),%rdi
call   1050 <printf@plt>
lea    0xd9e(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <testCommentLine@plt>
cmp    $0x0,%eax
jne    12f1 <main+0x151>
lea    0xd30(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    12fd <main+0x15d>
lea    0xd21(%rip),%rdi
call   1050 <printf@plt>
lea    0xd70(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <testConfigLine@plt>
cmp    $0x0,%eax
jne    1331 <main+0x191>
lea    0xcf0(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    133d <main+0x19d>
lea    0xce1(%rip),%rdi
call   1050 <printf@plt>
lea    0xd41(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <testNotConfigLine@plt>
cmp    $0x0,%eax
jne    1371 <main+0x1d1>
lea    0xcb0(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    137d <main+0x1dd>
lea    0xca1(%rip),%rdi
call   1050 <printf@plt>
lea    0xd15(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <testSplitLine0@plt>
cmp    $0x0,%eax
jne    13b1 <main+0x211>
lea    0xc70(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    13bd <main+0x21d>
lea    0xc61(%rip),%rdi
call   1050 <printf@plt>
lea    0xce6(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <testSplitLine1@plt>
cmp    $0x0,%eax
jne    13f1 <main+0x251>
lea    0xc30(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x14(%rbp)
jmp    13fd <main+0x25d>
lea    0xc21(%rip),%rdi
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe4e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <testParseBool@plt>
test   %eax,%eax
sete   0x7(%rsp)
lea    0xed4(%rip),%rbp
lea    0xed5(%rip),%rbx
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xe29(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10c0 <testAllWhitespace@plt>
test   %eax,%eax
sete   %r15b
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xe17(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <testTrimWhitespace0@plt>
test   %eax,%eax
sete   0x6(%rsp)
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xe06(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10b0 <testTrimWhitespace1@plt>
test   %eax,%eax
sete   0x5(%rsp)
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xdf5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1090 <testCommentLine@plt>
test   %eax,%eax
sete   %r14b
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xde1(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <testConfigLine@plt>
test   %eax,%eax
sete   0x4(%rsp)
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xdcb(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <testNotConfigLine@plt>
test   %eax,%eax
sete   %r13b
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xdb9(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <testSplitLine0@plt>
test   %eax,%eax
sete   %r12b
mov    %rbx,%rdi
cmove  %rbp,%rdi
call   1030 <puts@plt>
lea    0xda4(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   10a0 <testSplitLine1@plt>
test   %eax,%eax
sete   %al
cmove  %rbp,%rbx
or     %r12b,%al
or     0x4(%rsp),%r13b
or     %al,%r13b
or     0x5(%rsp),%r14b
or     0x6(%rsp),%r14b
or     %r13b,%r14b
or     0x7(%rsp),%r15b
or     %r14b,%r15b
movzbl %r15b,%ebp
and    $0x1,%ebp
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"testParseBool:\0A\00"
@.str.1 = [9 x i8] c"\09FAILED\0A\00"
@.str.2 = [9 x i8] c"\09PASSED\0A\00"
@.str.3 = [20 x i8] c"testAllWhitespace:\0A\00"
@.str.4 = [22 x i8] c"testTrimWhitespace0:\0A\00"
@.str.5 = [22 x i8] c"testTrimWhitespace1:\0A\00"
@.str.6 = [18 x i8] c"testCommentLine:\0A\00"
@.str.7 = [17 x i8] c"testConfigLine:\0A\00"
@.str.8 = [20 x i8] c"testNotConfigLine:\0A\00"
@.str.9 = [17 x i8] c"testSplitLine0:\0A\00"
@.str.10 = [17 x i8] c"testSplitLine1:\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @testParseBool()
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %14
12: ; preds = %2
%13 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %14
14: ; preds = %12, %10
%15 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (...) @testAllWhitespace()
%17 = icmp ne i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %22
20: ; preds = %14
%21 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %20, %18
%23 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%24 = call i32 (...) @testTrimWhitespace0()
%25 = icmp ne i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %22
%27 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %30
28: ; preds = %22
%29 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
%31 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%32 = call i32 (...) @testTrimWhitespace1()
%33 = icmp ne i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %30
%35 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %38
36: ; preds = %30
%37 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %36, %34
%39 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%40 = call i32 (...) @testCommentLine()
%41 = icmp ne i32 %40, 0
br i1 %41, label %44, label %42
42: ; preds = %38
%43 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %46
44: ; preds = %38
%45 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %46
46: ; preds = %44, %42
%47 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%48 = call i32 (...) @testConfigLine()
%49 = icmp ne i32 %48, 0
br i1 %49, label %52, label %50
50: ; preds = %46
%51 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %54
52: ; preds = %46
%53 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %54
54: ; preds = %52, %50
%55 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%56 = call i32 (...) @testNotConfigLine()
%57 = icmp ne i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %54
%59 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %62
60: ; preds = %54
%61 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %62
62: ; preds = %60, %58
%63 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%64 = call i32 (...) @testSplitLine0()
%65 = icmp ne i32 %64, 0
br i1 %65, label %68, label %66
66: ; preds = %62
%67 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %70
68: ; preds = %62
%69 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %70
70: ; preds = %68, %66
%71 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%72 = call i32 (...) @testSplitLine1()
%73 = icmp ne i32 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %70
%75 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %6
br label %78
76: ; preds = %70
%77 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %78
78: ; preds = %76, %74
%79 = load i32, i32* %6
ret i32 %79
}

LLVM IR (-O2):
@str = [15 x i8] c"testParseBool:\00"
@str.12 = [19 x i8] c"testAllWhitespace:\00"
@str.14 = [21 x i8] c"testTrimWhitespace0:\00"
@str.16 = [21 x i8] c"testTrimWhitespace1:\00"
@str.18 = [17 x i8] c"testCommentLine:\00"
@str.20 = [16 x i8] c"testConfigLine:\00"
@str.22 = [19 x i8] c"testNotConfigLine:\00"
@str.24 = [16 x i8] c"testSplitLine0:\00"
@str.26 = [16 x i8] c"testSplitLine1:\00"
@str.27 = [8 x i8] c"\09FAILED\00"
@str.36 = [8 x i8] c"\09PASSED\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @testParseBool()
%5 = icmp eq i32 %4, 0
%6 = select i1 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%7 = tail call i32 @puts(i8* dereferenceable(1) %6)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 (...) @testAllWhitespace()
%10 = icmp eq i32 %9, 0
%11 = select i1 %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%12 = tail call i32 @puts(i8* dereferenceable(1) %11)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.14, i64 0, i64 0))
%14 = tail call i32 (...) @testTrimWhitespace0()
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%17 = tail call i32 @puts(i8* dereferenceable(1) %16)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.16, i64 0, i64 0))
%19 = tail call i32 (...) @testTrimWhitespace1()
%20 = icmp eq i32 %19, 0
%21 = select i1 %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%22 = tail call i32 @puts(i8* dereferenceable(1) %21)
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.18, i64 0, i64 0))
%24 = tail call i32 (...) @testCommentLine()
%25 = icmp eq i32 %24, 0
%26 = select i1 %25, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%27 = tail call i32 @puts(i8* dereferenceable(1) %26)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.20, i64 0, i64 0))
%29 = tail call i32 (...) @testConfigLine()
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%32 = tail call i32 @puts(i8* dereferenceable(1) %31)
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.22, i64 0, i64 0))
%34 = tail call i32 (...) @testNotConfigLine()
%35 = icmp eq i32 %34, 0
%36 = select i1 %35, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%37 = tail call i32 @puts(i8* dereferenceable(1) %36)
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.24, i64 0, i64 0))
%39 = tail call i32 (...) @testSplitLine0()
%40 = icmp eq i32 %39, 0
%41 = select i1 %40, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%42 = tail call i32 @puts(i8* dereferenceable(1) %41)
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.26, i64 0, i64 0))
%44 = tail call i32 (...) @testSplitLine1()
%45 = icmp eq i32 %44, 0
%46 = select i1 %45, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @str.36, i64 0, i64 0)
%47 = select i1 %45, i1 true, i1 %40
%48 = select i1 %47, i1 true, i1 %35
%49 = select i1 %48, i1 true, i1 %30
%50 = select i1 %49, i1 true, i1 %25
%51 = select i1 %50, i1 true, i1 %20
%52 = select i1 %51, i1 true, i1 %15
%53 = select i1 %52, i1 true, i1 %10
%54 = select i1 %53, i1 true, i1 %5
%55 = zext i1 %54 to i32
%56 = tail call i32 @puts(i8* dereferenceable(1) %46)
ret i32 %55
}