#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*/ check_symbols();
int /*<<< orphan*/ create_symbol_table();
int /*<<< orphan*/ free_symbol_table();
int /*<<< orphan*/ free_symbols();
int /*<<< orphan*/ free_tags();
int /*<<< orphan*/ pack_grammar();
int /*<<< orphan*/ pack_names();
int /*<<< orphan*/ pack_symbols();
int /*<<< orphan*/ print_grammar();
int /*<<< orphan*/ read_declarations();
int /*<<< orphan*/ read_grammar();
reader() {
  create_symbol_table();
  read_declarations();
  read_grammar();
  free_symbol_table();
  free_tags();
  pack_names();
  check_symbols();
  pack_symbols();
  pack_grammar();
  free_symbols();
  print_grammar();
}


x86 assembly (clang, -O0):
<reader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   10c0 <create_symbol_table@plt>
mov    $0x0,%al
call   1030 <read_declarations@plt>
mov    $0x0,%al
call   1090 <read_grammar@plt>
mov    $0x0,%al
call   10d0 <free_symbol_table@plt>
mov    $0x0,%al
call   1070 <free_tags@plt>
mov    $0x0,%al
call   10a0 <pack_names@plt>
mov    $0x0,%al
call   1060 <check_symbols@plt>
mov    $0x0,%al
call   1050 <pack_symbols@plt>
mov    $0x0,%al
call   10b0 <pack_grammar@plt>
mov    $0x0,%al
call   1040 <free_symbols@plt>
mov    $0x0,%al
call   1080 <print_grammar@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reader>:
push   %rax
xor    %eax,%eax
call   10c0 <create_symbol_table@plt>
xor    %eax,%eax
call   1030 <read_declarations@plt>
xor    %eax,%eax
call   1090 <read_grammar@plt>
xor    %eax,%eax
call   10d0 <free_symbol_table@plt>
xor    %eax,%eax
call   1070 <free_tags@plt>
xor    %eax,%eax
call   10a0 <pack_names@plt>
xor    %eax,%eax
call   1060 <check_symbols@plt>
xor    %eax,%eax
call   1050 <pack_symbols@plt>
xor    %eax,%eax
call   10b0 <pack_grammar@plt>
xor    %eax,%eax
call   1040 <free_symbols@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <print_grammar@plt>

LLVM IR (-O0):
define i32 @reader() {
%1 = alloca i32
%2 = call i32 (...) @create_symbol_table()
%3 = call i32 (...) @read_declarations()
%4 = call i32 (...) @read_grammar()
%5 = call i32 (...) @free_symbol_table()
%6 = call i32 (...) @free_tags()
%7 = call i32 (...) @pack_names()
%8 = call i32 (...) @check_symbols()
%9 = call i32 (...) @pack_symbols()
%10 = call i32 (...) @pack_grammar()
%11 = call i32 (...) @free_symbols()
%12 = call i32 (...) @print_grammar()
%13 = load i32, i32* %1
ret i32 %13
}

LLVM IR (-O2):
define i32 @reader() {
%1 = tail call i32 (...) @create_symbol_table()
%2 = tail call i32 (...) @read_declarations()
%3 = tail call i32 (...) @read_grammar()
%4 = tail call i32 (...) @free_symbol_table()
%5 = tail call i32 (...) @free_tags()
%6 = tail call i32 (...) @pack_names()
%7 = tail call i32 (...) @check_symbols()
%8 = tail call i32 (...) @pack_symbols()
%9 = tail call i32 (...) @pack_grammar()
%10 = tail call i32 (...) @free_symbols()
%11 = tail call i32 (...) @print_grammar()
ret i32 undef
}