#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 */
struct gff3File {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ eraseTrailingSpaces(char *);
int /*<<< orphan*/ gff3FileErr(struct gff3File *, char *, char *);
int /*<<< orphan*/ parseAttributeOntology(struct gff3File *, char *);
int /*<<< orphan*/ parseFasta(struct gff3File *);
int /*<<< orphan*/ parseFeatureOntology(struct gff3File *, char *);
int /*<<< orphan*/ parseGenomeBuild(struct gff3File *, char *);
int /*<<< orphan*/ parseSequenceRegion(struct gff3File *, char *);
int /*<<< orphan*/ parseSourceOntology(struct gff3File *, char *);
int /*<<< orphan*/ parseSpecies(struct gff3File *, char *);
scalar_t__ startsWithWord(char *, char *);
scalar_t__ strcmp(char *, char *);
void parseMeta(struct gff3File *g3f, char *line) {
  eraseTrailingSpaces(line);
  if ((strcmp("###", line) == 0))
    ;
  else if ((strcmp("##FASTA", line) == 0))
    parseFasta(g3f);
  else if (startsWithWord("##sequence-region", line))
    parseSequenceRegion(g3f, line);
  else if (startsWithWord("##feature-ontology", line))
    parseFeatureOntology(g3f, line);
  else if (startsWithWord("##attribute-ontology", line))
    parseAttributeOntology(g3f, line);
  else if (startsWithWord("##source-ontology", line))
    parseSourceOntology(g3f, line);
  else if (startsWithWord("##species", line))
    parseSpecies(g3f, line);
  else if (startsWithWord("##genome-build", line))
    parseGenomeBuild(g3f, line);
  else if (startsWithWord("##gff-spec-version", line) ||
           startsWithWord("##source-version", line) ||
           startsWithWord("##date", line) || startsWithWord("##Type", line))
    ;
  else
    gff3FileErr(g3f, "invalid meta line: %s", line);
}


x86 assembly (clang, -O0):
<parseMeta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <eraseTrailingSpaces@plt>
mov    -0x10(%rbp),%rsi
lea    0xe2c(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11e8 <parseMeta+0x38>
jmp    13c1 <parseMeta+0x211>
mov    -0x10(%rbp),%rsi
lea    0xe11(%rip),%rdi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1210 <parseMeta+0x60>
mov    -0x8(%rbp),%rdi
call   10b0 <parseFasta@plt>
jmp    13bc <parseMeta+0x20c>
mov    -0x10(%rbp),%rsi
lea    0xdf1(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
je     123c <parseMeta+0x8c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1070 <parseSequenceRegion@plt>
jmp    13b7 <parseMeta+0x207>
mov    -0x10(%rbp),%rsi
lea    0xdd7(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
je     1268 <parseMeta+0xb8>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <parseFeatureOntology@plt>
jmp    13b2 <parseMeta+0x202>
mov    -0x10(%rbp),%rsi
lea    0xdbe(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
je     1294 <parseMeta+0xe4>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1080 <parseAttributeOntology@plt>
jmp    13ad <parseMeta+0x1fd>
mov    -0x10(%rbp),%rsi
lea    0xda7(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
je     12c0 <parseMeta+0x110>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   10d0 <parseSourceOntology@plt>
jmp    13a8 <parseMeta+0x1f8>
mov    -0x10(%rbp),%rsi
lea    0xd8d(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
je     12ec <parseMeta+0x13c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   10c0 <parseSpecies@plt>
jmp    13a3 <parseMeta+0x1f3>
mov    -0x10(%rbp),%rsi
lea    0xd6b(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
je     1318 <parseMeta+0x168>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <parseGenomeBuild@plt>
jmp    139e <parseMeta+0x1ee>
mov    -0x10(%rbp),%rsi
lea    0xd4e(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
jne    1380 <parseMeta+0x1d0>
mov    -0x10(%rbp),%rsi
lea    0xd47(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
jne    1380 <parseMeta+0x1d0>
mov    -0x10(%rbp),%rsi
lea    0xd3e(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
jne    1380 <parseMeta+0x1d0>
mov    -0x10(%rbp),%rsi
lea    0xd2b(%rip),%rdi
call   1030 <startsWithWord@plt>
cmp    $0x0,%rax
je     1385 <parseMeta+0x1d5>
jmp    1399 <parseMeta+0x1e9>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xd0f(%rip),%rsi
call   10a0 <gff3FileErr@plt>
jmp    139e <parseMeta+0x1ee>
jmp    13a3 <parseMeta+0x1f3>
jmp    13a8 <parseMeta+0x1f8>
jmp    13ad <parseMeta+0x1fd>
jmp    13b2 <parseMeta+0x202>
jmp    13b7 <parseMeta+0x207>
jmp    13bc <parseMeta+0x20c>
jmp    13c1 <parseMeta+0x211>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseMeta>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1050 <eraseTrailingSpaces@plt>
lea    0xe37(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1331 <parseMeta+0x181>
lea    0xe23(%rip),%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1214 <parseMeta+0x64>
lea    0xe17(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
je     1223 <parseMeta+0x73>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <parseSequenceRegion@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    10b0 <parseFasta@plt>
lea    0xdf4(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
je     1249 <parseMeta+0x99>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <parseFeatureOntology@plt>
lea    0xde1(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
je     126f <parseMeta+0xbf>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1080 <parseAttributeOntology@plt>
lea    0xdd0(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
je     1295 <parseMeta+0xe5>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    10d0 <parseSourceOntology@plt>
lea    0xdbc(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
je     12bb <parseMeta+0x10b>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    10c0 <parseSpecies@plt>
lea    0xda0(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
je     12e1 <parseMeta+0x131>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1090 <parseGenomeBuild@plt>
lea    0xd89(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
jne    1331 <parseMeta+0x181>
lea    0xd88(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
jne    1331 <parseMeta+0x181>
lea    0xd85(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
jne    1331 <parseMeta+0x181>
lea    0xd78(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWithWord@plt>
test   %rax,%rax
je     1339 <parseMeta+0x189>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xd63(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    10a0 <gff3FileErr@plt>

LLVM IR (-O0):
%struct.gff3File = type { i32 }
@.str = [4 x i8] c"###\00"
@.str.1 = [8 x i8] c"##FASTA\00"
@.str.2 = [18 x i8] c"##sequence-region\00"
@.str.3 = [19 x i8] c"##feature-ontology\00"
@.str.4 = [21 x i8] c"##attribute-ontology\00"
@.str.5 = [18 x i8] c"##source-ontology\00"
@.str.6 = [10 x i8] c"##species\00"
@.str.7 = [15 x i8] c"##genome-build\00"
@.str.8 = [19 x i8] c"##gff-spec-version\00"
@.str.9 = [17 x i8] c"##source-version\00"
@.str.10 = [7 x i8] c"##date\00"
@.str.11 = [7 x i8] c"##Type\00"
@.str.12 = [22 x i8] c"invalid meta line: %s\00"
define void @parseMeta(%struct.gff3File* %0, i8* %1) {
%3 = alloca %struct.gff3File*
%4 = alloca i8*
store %struct.gff3File* %0, %struct.gff3File** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i32 @eraseTrailingSpaces(i8* %5)
%7 = load i8*, i8** %4
%8 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
br label %95
11: ; preds = %2
%12 = load i8*, i8** %4
%13 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load %struct.gff3File*, %struct.gff3File** %3
%17 = call i32 @parseFasta(%struct.gff3File* %16)
br label %94
18: ; preds = %11
%19 = load i8*, i8** %4
%20 = call i64 @startsWithWord(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load %struct.gff3File*, %struct.gff3File** %3
%24 = load i8*, i8** %4
%25 = call i32 @parseSequenceRegion(%struct.gff3File* %23, i8* %24)
br label %93
26: ; preds = %18
%27 = load i8*, i8** %4
%28 = call i64 @startsWithWord(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load %struct.gff3File*, %struct.gff3File** %3
%32 = load i8*, i8** %4
%33 = call i32 @parseFeatureOntology(%struct.gff3File* %31, i8* %32)
br label %92
34: ; preds = %26
%35 = load i8*, i8** %4
%36 = call i64 @startsWithWord(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = load %struct.gff3File*, %struct.gff3File** %3
%40 = load i8*, i8** %4
%41 = call i32 @parseAttributeOntology(%struct.gff3File* %39, i8* %40)
br label %91
42: ; preds = %34
%43 = load i8*, i8** %4
%44 = call i64 @startsWithWord(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i8* %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load %struct.gff3File*, %struct.gff3File** %3
%48 = load i8*, i8** %4
%49 = call i32 @parseSourceOntology(%struct.gff3File* %47, i8* %48)
br label %90
50: ; preds = %42
%51 = load i8*, i8** %4
%52 = call i64 @startsWithWord(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = load %struct.gff3File*, %struct.gff3File** %3
%56 = load i8*, i8** %4
%57 = call i32 @parseSpecies(%struct.gff3File* %55, i8* %56)
br label %89
58: ; preds = %50
%59 = load i8*, i8** %4
%60 = call i64 @startsWithWord(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %58
%63 = load %struct.gff3File*, %struct.gff3File** %3
%64 = load i8*, i8** %4
%65 = call i32 @parseGenomeBuild(%struct.gff3File* %63, i8* %64)
br label %88
66: ; preds = %58
%67 = load i8*, i8** %4
%68 = call i64 @startsWithWord(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %82, label %70
70: ; preds = %66
%71 = load i8*, i8** %4
%72 = call i64 @startsWithWord(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %82, label %74
74: ; preds = %70
%75 = load i8*, i8** %4
%76 = call i64 @startsWithWord(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %82, label %78
78: ; preds = %74
%79 = load i8*, i8** %4
%80 = call i64 @startsWithWord(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %78, %74, %70, %66
br label %87
83: ; preds = %78
%84 = load %struct.gff3File*, %struct.gff3File** %3
%85 = load i8*, i8** %4
%86 = call i32 @gff3FileErr(%struct.gff3File* %84, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8* %85)
br label %87
87: ; preds = %83, %82
br label %88
88: ; preds = %87, %62
br label %89
89: ; preds = %88, %54
br label %90
90: ; preds = %89, %46
br label %91
91: ; preds = %90, %38
br label %92
92: ; preds = %91, %30
br label %93
93: ; preds = %92, %22
br label %94
94: ; preds = %93, %15
br label %95
95: ; preds = %94, %10
ret void
}

LLVM IR (-O2):
%struct.gff3File = type { i32 }
@.str = [4 x i8] c"###\00"
@.str.1 = [8 x i8] c"##FASTA\00"
@.str.2 = [18 x i8] c"##sequence-region\00"
@.str.3 = [19 x i8] c"##feature-ontology\00"
@.str.4 = [21 x i8] c"##attribute-ontology\00"
@.str.5 = [18 x i8] c"##source-ontology\00"
@.str.6 = [10 x i8] c"##species\00"
@.str.7 = [15 x i8] c"##genome-build\00"
@.str.8 = [19 x i8] c"##gff-spec-version\00"
@.str.9 = [17 x i8] c"##source-version\00"
@.str.10 = [7 x i8] c"##date\00"
@.str.11 = [7 x i8] c"##Type\00"
@.str.12 = [22 x i8] c"invalid meta line: %s\00"
define void @parseMeta(%struct.gff3File* %0, i8* %1) {
%3 = tail call i32 @eraseTrailingSpaces(i8* %1)
%4 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %55, label %6
6: ; preds = %2
%7 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @parseFasta(%struct.gff3File* %0)
br label %55
11: ; preds = %6
%12 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 @parseSequenceRegion(%struct.gff3File* %0, i8* %1)
br label %55
16: ; preds = %11
%17 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %1)
%18 = icmp eq i64 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = tail call i32 @parseFeatureOntology(%struct.gff3File* %0, i8* %1)
br label %55
21: ; preds = %16
%22 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %1)
%23 = icmp eq i64 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = tail call i32 @parseAttributeOntology(%struct.gff3File* %0, i8* %1)
br label %55
26: ; preds = %21
%27 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i8* %1)
%28 = icmp eq i64 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = tail call i32 @parseSourceOntology(%struct.gff3File* %0, i8* %1)
br label %55
31: ; preds = %26
%32 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %1)
%33 = icmp eq i64 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = tail call i32 @parseSpecies(%struct.gff3File* %0, i8* %1)
br label %55
36: ; preds = %31
%37 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %1)
%38 = icmp eq i64 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = tail call i32 @parseGenomeBuild(%struct.gff3File* %0, i8* %1)
br label %55
41: ; preds = %36
%42 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %1)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %55
44: ; preds = %41
%45 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8* %1)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %55
47: ; preds = %44
%48 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %1)
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %47
%51 = tail call i64 @startsWithWord(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* %1)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = tail call i32 @gff3FileErr(%struct.gff3File* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i8* %1)
br label %55
55: ; preds = %9, %19, %29, %39, %41, %44, %47, %50, %53, %34, %24, %14, %2
ret void
}