#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*/ done(int /*<<< orphan*/);
int /*<<< orphan*/ getargs(int, char **);
int /*<<< orphan*/ lalr();
int /*<<< orphan*/ lr0();
int /*<<< orphan*/ make_parser();
int /*<<< orphan*/ open_files();
int /*<<< orphan*/ output();
int /*<<< orphan*/ reader();
int /*<<< orphan*/ set_signals();
int /*<<< orphan*/ verbose();
int /*<<< orphan*/ write_temporary_output();
int main(int argc, char **argv) {
  set_signals();
  getargs(argc, argv);
  open_files();
  reader();
  write_temporary_output();
  lr0();
  lalr();
  make_parser();
  verbose();
  output();
  done(0);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   10d0 <set_signals@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10c0 <getargs@plt>
mov    $0x0,%al
call   1070 <open_files@plt>
mov    $0x0,%al
call   1060 <reader@plt>
mov    $0x0,%al
call   10b0 <write_temporary_output@plt>
mov    $0x0,%al
call   1030 <lr0@plt>
mov    $0x0,%al
call   1090 <lalr@plt>
mov    $0x0,%al
call   1080 <make_parser@plt>
mov    $0x0,%al
call   10a0 <verbose@plt>
mov    $0x0,%al
call   1040 <output@plt>
xor    %edi,%edi
call   1050 <done@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   10d0 <set_signals@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   10c0 <getargs@plt>
xor    %eax,%eax
call   1070 <open_files@plt>
xor    %eax,%eax
call   1060 <reader@plt>
xor    %eax,%eax
call   10b0 <write_temporary_output@plt>
xor    %eax,%eax
call   1030 <lr0@plt>
xor    %eax,%eax
call   1090 <lalr@plt>
xor    %eax,%eax
call   1080 <make_parser@plt>
xor    %eax,%eax
call   10a0 <verbose@plt>
xor    %eax,%eax
call   1040 <output@plt>
xor    %edi,%edi
call   1050 <done@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @set_signals()
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = call i32 @getargs(i32 %7, i8** %8)
%10 = call i32 (...) @open_files()
%11 = call i32 (...) @reader()
%12 = call i32 (...) @write_temporary_output()
%13 = call i32 (...) @lr0()
%14 = call i32 (...) @lalr()
%15 = call i32 (...) @make_parser()
%16 = call i32 (...) @verbose()
%17 = call i32 (...) @output()
%18 = call i32 @done(i32 0)
ret i32 1
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @set_signals()
%4 = tail call i32 @getargs(i32 %0, i8** %1)
%5 = tail call i32 (...) @open_files()
%6 = tail call i32 (...) @reader()
%7 = tail call i32 (...) @write_temporary_output()
%8 = tail call i32 (...) @lr0()
%9 = tail call i32 (...) @lalr()
%10 = tail call i32 (...) @make_parser()
%11 = tail call i32 (...) @verbose()
%12 = tail call i32 (...) @output()
%13 = tail call i32 @done(i32 0)
ret i32 1
}