#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_leaks();
int /*<<< orphan*/ clear_leaks();
int /*<<< orphan*/ enable_logging();
int /*<<< orphan*/ ensure_console();
int /*<<< orphan*/ kmod_selftests();
int /*<<< orphan*/ launch_tests();
int /*<<< orphan*/ mount_filesystems();
int /*<<< orphan*/ poweroff();
int /*<<< orphan*/ print_banner();
int /*<<< orphan*/ seed_rng();
int main(int argc, char *argv[]) {
  seed_rng();
  ensure_console();
  print_banner();
  mount_filesystems();
  kmod_selftests();
  enable_logging();
  clear_leaks();
  launch_tests();
  check_leaks();
  poweroff();
  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   1070 <seed_rng@plt>
mov    $0x0,%al
call   1060 <ensure_console@plt>
mov    $0x0,%al
call   10a0 <print_banner@plt>
mov    $0x0,%al
call   1040 <mount_filesystems@plt>
mov    $0x0,%al
call   1030 <kmod_selftests@plt>
mov    $0x0,%al
call   10c0 <enable_logging@plt>
mov    $0x0,%al
call   1050 <clear_leaks@plt>
mov    $0x0,%al
call   1090 <launch_tests@plt>
mov    $0x0,%al
call   1080 <check_leaks@plt>
mov    $0x0,%al
call   10b0 <poweroff@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1070 <seed_rng@plt>
xor    %eax,%eax
call   1060 <ensure_console@plt>
xor    %eax,%eax
call   10a0 <print_banner@plt>
xor    %eax,%eax
call   1040 <mount_filesystems@plt>
xor    %eax,%eax
call   1030 <kmod_selftests@plt>
xor    %eax,%eax
call   10c0 <enable_logging@plt>
xor    %eax,%eax
call   1050 <clear_leaks@plt>
xor    %eax,%eax
call   1090 <launch_tests@plt>
xor    %eax,%eax
call   1080 <check_leaks@plt>
xor    %eax,%eax
call   10b0 <poweroff@plt>
mov    $0x1,%eax
pop    %rcx
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 (...) @seed_rng()
%7 = call i32 (...) @ensure_console()
%8 = call i32 (...) @print_banner()
%9 = call i32 (...) @mount_filesystems()
%10 = call i32 (...) @kmod_selftests()
%11 = call i32 (...) @enable_logging()
%12 = call i32 (...) @clear_leaks()
%13 = call i32 (...) @launch_tests()
%14 = call i32 (...) @check_leaks()
%15 = call i32 (...) @poweroff()
ret i32 1
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @seed_rng()
%4 = tail call i32 (...) @ensure_console()
%5 = tail call i32 (...) @print_banner()
%6 = tail call i32 (...) @mount_filesystems()
%7 = tail call i32 (...) @kmod_selftests()
%8 = tail call i32 (...) @enable_logging()
%9 = tail call i32 (...) @clear_leaks()
%10 = tail call i32 (...) @launch_tests()
%11 = tail call i32 (...) @check_leaks()
%12 = tail call i32 (...) @poweroff()
ret i32 1
}