#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*/ parseAnn(struct gff3File *, char *);
int /*<<< orphan*/ parseMeta(struct gff3File *, char *);
scalar_t__ startsWith(char *, char *);
scalar_t__ strlen(char *);
void parseLine(struct gff3File *g3f, char *line) {
  if (startsWith("##", line))
    parseMeta(g3f, line);
  else if (!startsWith("#", line) && (strlen(line) > 0))
    parseAnn(g3f, line);
}


x86 assembly (clang, -O0):
<parseLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xea5(%rip),%rdi
call   1030 <startsWith@plt>
cmp    $0x0,%rax
je     117c <parseLine+0x3c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <parseMeta@plt>
jmp    11bb <parseLine+0x7b>
mov    -0x10(%rbp),%rsi
lea    0xe7a(%rip),%rdi
call   1030 <startsWith@plt>
cmp    $0x0,%rax
jne    11b6 <parseLine+0x76>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
jle    11b6 <parseLine+0x76>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <parseAnn@plt>
jmp    11bb <parseLine+0x7b>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseLine>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xeaf(%rip),%rdi
call   1030 <startsWith@plt>
test   %rax,%rax
je     116d <parseLine+0x2d>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <parseMeta@plt>
lea    0xe8d(%rip),%rdi
mov    %rbx,%rsi
call   1030 <startsWith@plt>
test   %rax,%rax
je     1189 <parseLine+0x49>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %rax,%rax
jle    1181 <parseLine+0x41>
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <parseAnn@plt>

LLVM IR (-O0):
%struct.gff3File = type { i32 }
@.str = [3 x i8] c"##\00"
@.str.1 = [2 x i8] c"#\00"
define void @parseLine(%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 i64 @startsWith(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load %struct.gff3File*, %struct.gff3File** %3
%10 = load i8*, i8** %4
%11 = call i32 @parseMeta(%struct.gff3File* %9, i8* %10)
br label %25
12: ; preds = %2
%13 = load i8*, i8** %4
%14 = call i64 @startsWith(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %24, label %16
16: ; preds = %12
%17 = load i8*, i8** %4
%18 = call i64 @strlen(i8* %17)
%19 = icmp sgt i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load %struct.gff3File*, %struct.gff3File** %3
%22 = load i8*, i8** %4
%23 = call i32 @parseAnn(%struct.gff3File* %21, i8* %22)
br label %24
24: ; preds = %20, %16, %12
br label %25
25: ; preds = %24, %8
ret void
}

LLVM IR (-O2):
%struct.gff3File = type { i32 }
@.str = [3 x i8] c"##\00"
@.str.1 = [2 x i8] c"#\00"
define void @parseLine(%struct.gff3File* %0, i8* %1) {
%3 = tail call i64 @startsWith(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @parseMeta(%struct.gff3File* %0, i8* %1)
br label %15
7: ; preds = %2
%8 = tail call i64 @startsWith(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 @parseAnn(%struct.gff3File* %0, i8* %1)
br label %15
15: ; preds = %7, %10, %13, %5
ret void
}