#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*/ goback();
int /*<<< orphan*/ init_keywords();
scalar_t__ isrelevant(char *);
char *nextline();
int /*<<< orphan*/ parseline(char *);
int /*<<< orphan*/ puts(char *);
int main(void) {
  char *line;
  init_keywords();
  while ((line = nextline()) != NULL) {
    parseline(line);
  }
  goback();
  while ((line = nextline()) != NULL) {
    if (isrelevant(line))
      puts(line);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <init_keywords@plt>
mov    $0x0,%al
call   1070 <nextline@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1199 <main+0x39>
mov    -0x10(%rbp),%rdi
call   1050 <parseline@plt>
jmp    1176 <main+0x16>
mov    $0x0,%al
call   1080 <goback@plt>
mov    $0x0,%al
call   1070 <nextline@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     11d6 <main+0x76>
mov    -0x10(%rbp),%rdi
call   1060 <isrelevant@plt>
cmp    $0x0,%rax
je     11d1 <main+0x71>
mov    -0x10(%rbp),%rdi
call   1040 <puts@plt>
jmp    11a0 <main+0x40>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <init_keywords@plt>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <nextline@plt>
test   %rax,%rax
je     1186 <main+0x26>
mov    %rax,%rdi
call   1050 <parseline@plt>
jmp    1170 <main+0x10>
xor    %eax,%eax
call   1080 <goback@plt>
xor    %eax,%eax
call   1070 <nextline@plt>
test   %rax,%rax
je     11c6 <main+0x66>
mov    %rax,%rbx
jmp    11af <main+0x4f>
xchg   %ax,%ax
xor    %eax,%eax
call   1070 <nextline@plt>
mov    %rax,%rbx
test   %rax,%rax
je     11c6 <main+0x66>
mov    %rbx,%rdi
call   1060 <isrelevant@plt>
test   %rax,%rax
je     11a0 <main+0x40>
mov    %rbx,%rdi
call   1040 <puts@plt>
jmp    11a0 <main+0x40>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
%3 = call i32 (...) @init_keywords()
br label %4
4: ; preds = %7, %0
%5 = call i8* (...) @nextline()
store i8* %5, i8** %2
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %10
7: ; preds = %4
%8 = load i8*, i8** %2
%9 = call i32 @parseline(i8* %8)
br label %4
10: ; preds = %4
%11 = call i32 (...) @goback()
br label %12
12: ; preds = %22, %10
%13 = call i8* (...) @nextline()
store i8* %13, i8** %2
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = load i8*, i8** %2
%17 = call i64 @isrelevant(i8* %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i8*, i8** %2
%21 = call i32 @puts(i8* %20)
br label %22
22: ; preds = %19, %15
br label %12
23: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @init_keywords()
%2 = tail call i8* (...) @nextline()
%3 = icmp eq i8* %2, null
br i1 %3, label %9, label %4
4: ; preds = %0, %4
%5 = phi i8* [ %7, %4 ], [ %2, %0 ]
%6 = tail call i32 @parseline(i8* %5)
%7 = tail call i8* (...) @nextline()
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %4
9: ; preds = %4, %0
%10 = tail call i32 (...) @goback()
%11 = tail call i8* (...) @nextline()
%12 = icmp eq i8* %11, null
br i1 %12, label %22, label %13
13: ; preds = %9, %19
%14 = phi i8* [ %20, %19 ], [ %11, %9 ]
%15 = tail call i64 @isrelevant(i8* %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = tail call i32 @puts(i8* %14)
br label %19
19: ; preds = %17, %13
%20 = tail call i8* (...) @nextline()
%21 = icmp eq i8* %20, null
br i1 %21, label %22, label %13
22: ; preds = %19, %9
ret i32 0
}