#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*/ EXIT_FAILURE;
int /*<<< orphan*/ def_colors();
int /*<<< orphan*/ draw_static();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ game_loop();
int /*<<< orphan*/ init_ncenv();
int /*<<< orphan*/ init_start_var();
int /*<<< orphan*/ parse_options(int, char **);
int /*<<< orphan*/ refresh_snake();
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  parse_options(argc, argv);
  srand((unsigned int)time(NULL));
  init_ncenv();
  init_start_var();
  def_colors();
  draw_static();
  refresh_snake();
  game_loop();
  exit(EXIT_FAILURE);
}


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    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <parse_options@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
mov    $0x0,%al
call   10b0 <init_ncenv@plt>
mov    $0x0,%al
call   1050 <init_start_var@plt>
mov    $0x0,%al
call   10a0 <def_colors@plt>
mov    $0x0,%al
call   1080 <draw_static@plt>
mov    $0x0,%al
call   1060 <refresh_snake@plt>
mov    $0x0,%al
call   1030 <game_loop@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1040 <parse_options@plt>
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
xor    %eax,%eax
call   10b0 <init_ncenv@plt>
xor    %eax,%eax
call   1050 <init_start_var@plt>
xor    %eax,%eax
call   10a0 <def_colors@plt>
xor    %eax,%eax
call   1080 <draw_static@plt>
xor    %eax,%eax
call   1060 <refresh_snake@plt>
xor    %eax,%eax
call   1030 <game_loop@plt>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @parse_options(i32 %6, i8** %7)
%9 = call i64 @time(i32* null)
%10 = trunc i64 %9 to i32
%11 = call i32 @srand(i32 %10)
%12 = call i32 (...) @init_ncenv()
%13 = call i32 (...) @init_start_var()
%14 = call i32 (...) @def_colors()
%15 = call i32 (...) @draw_static()
%16 = call i32 (...) @refresh_snake()
%17 = call i32 (...) @game_loop()
%18 = load i32, i32* @EXIT_FAILURE
%19 = call i32 @exit(i32 %18)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @parse_options(i32 %0, i8** %1)
%4 = tail call i64 @time(i32* null)
%5 = trunc i64 %4 to i32
%6 = tail call i32 @srand(i32 %5)
%7 = tail call i32 (...) @init_ncenv()
%8 = tail call i32 (...) @init_start_var()
%9 = tail call i32 (...) @def_colors()
%10 = tail call i32 (...) @draw_static()
%11 = tail call i32 (...) @refresh_snake()
%12 = tail call i32 (...) @game_loop()
%13 = load i32, i32* @EXIT_FAILURE
%14 = tail call i32 @exit(i32 %13)
unreachable
}